Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.miracl.trust.registration.VerificationException
import com.miracl.trust.registration.QuickCodeException
import com.miracl.trust.registration.RegistrationException
import com.miracl.trust.session.AuthenticationSessionException
import com.miracl.trust.session.SigningSessionException
import com.miracl.trust.signing.SigningException

internal val ConfigurationException.flutterExceptionCodeRepresentation: MConfigurationExceptionCode
Expand Down Expand Up @@ -79,17 +78,6 @@ internal val AuthenticationSessionException.flutterExceptionCodeRepresentation:
AuthenticationSessionException.InvalidSessionDetails -> MAuthenticationSessionDetailsExceptionCode.INVALID_AUTHENTICATION_SESSION_DETAILS
}

internal val SigningSessionException.flutterExceptionCodeRepresentation: MSigningSessionDetailsExceptionCode
get() = when (this) {
is SigningSessionException.AbortSigningSessionFail -> MSigningSessionDetailsExceptionCode.ABORT_SIGNING_SESSION_FAIL
is SigningSessionException.CompleteSigningSessionFail -> MSigningSessionDetailsExceptionCode.COMPLETE_SIGNING_SESSION_FAIL
is SigningSessionException.GetSigningSessionDetailsFail -> MSigningSessionDetailsExceptionCode.GET_SIGNING_SESSION_DETAILS_FAIL
SigningSessionException.InvalidAppLink -> MSigningSessionDetailsExceptionCode.INVALID_LINK
SigningSessionException.InvalidQRCode -> MSigningSessionDetailsExceptionCode.INVALID_QRCODE
SigningSessionException.InvalidSigningSession -> MSigningSessionDetailsExceptionCode.INVALID_SIGNING_SESSION
SigningSessionException.InvalidSigningSessionDetails -> MSigningSessionDetailsExceptionCode.INVALID_SIGNING_SESSION_DETAILS
}

internal val SigningException.flutterExceptionCodeRepresentation: MSigningExceptionCode
get() = when (this) {
SigningException.EmptyMessageHash -> MSigningExceptionCode.EMPTY_MESSAGE_HASH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,7 @@ class FlutterMiraclSdkPlugin : FlutterPlugin, MiraclSdk {
sdkHandler.getAuthenticationSessionDetailsFromPayload(payload, callback)
}


override fun getSigningDetailsFromQRCode(
qrCode: String, callback: (kotlin.Result<MSigningSessionDetails>) -> Unit
) {
sdkHandler.getSigningSessionDetailsFromQRCode(qrCode, callback)
}

override fun getSigningSessionDetailsFromLink(
link: String,
callback: (kotlin.Result<MSigningSessionDetails>) -> Unit
) {
sdkHandler.getSigningSessionDetailsFromLink(link, callback)
}

override fun getUser(userId: String, callback: (kotlin.Result<MUser?>) -> Unit) {
sdkHandler.getUser(userId, callback)
}

}
Loading