Android DC SDK Migration Guides
Version 5.1.0
API Changes
-
Remote credential identifier is used to retrive proper configuration from wallet configuration. This changes required API modificaitons:
Credentialinterface got a new property:
Kotlin1sealed interface Credential {2 val remoteCredentialId: String3}AdditionalCredentialCandidatealso was extended:
Kotlin1interface AdditionalCredentialCandidate {2 val remoteCredentialId: String3}CredentialTypeclass changed its signature,idrepresents value of RemoteCredential.id from wallet configuration:
Kotlin1// was2class CredentialType(val jurisdictionId: String, val documentType: String)3// is4class CredentialType(val id: String)- Above changes also affected Enrollment Candidate interface. Since this version
EnrollmentCandidatehas not been usingdocumentTypeandjurisdictionId
Kotlin1// was2interface EnrollmentCandidate {3 val isRemoteEnrollmentAvailable: Boolean4 val isActivationTokenEnrollmentAvailable: Boolean5 val friendlyNames: Map<String, String>6 val credentialType: CredentialType7}8// is9interface EnrollmentCandidate {10 val remoteCredentialId: String11 val isRemoteEnrollmentAvailable: Boolean12 val isActivationTokenEnrollmentAvailable: Boolean13 val friendlyNames: Map<String, String>14} -
SDK provides more context about exception while request authorisation failed
RequestAuthorizationFailedExceptionsignature has changed:Kotlin1// was2class RequestAuthorizationFailedException(failedOnStep: String, cause: Throwable? = null)3// is4class RequestAuthorizationFailedException(val requestAuthorizationError: RequestAuthorizationError, cause: Throwable? = null)5// where6sealed interface RequestAuthorizationError {7 object WeakOemBioVerification : RequestAuthorizationError8 object OemBioVerification : RequestAuthorizationError9 class CameraPermissionNotGranted(val step: String) : RequestAuthorizationError10 class PinVerification(val step: String) : RequestAuthorizationError11 class FaceThresholdNotReached(val step: String, val score: Long, val threshold: Long?) : RequestAuthorizationError12 class FaceVerification(val step: String) : RequestAuthorizationError13}