diff --git a/MobileSdk/build.gradle.kts b/MobileSdk/build.gradle.kts index 62fb571..0507d87 100644 --- a/MobileSdk/build.gradle.kts +++ b/MobileSdk/build.gradle.kts @@ -118,7 +118,7 @@ android { } dependencies { - api("com.spruceid.mobile.sdk.rs:mobilesdkrs:0.0.30") + api("com.spruceid.mobile.sdk.rs:mobilesdkrs:0.0.31") //noinspection GradleCompatible implementation("com.android.support:appcompat-v7:28.0.0") /* Begin UI dependencies */ diff --git a/MobileSdk/src/main/java/com/spruceid/mobile/sdk/MDoc.kt b/MobileSdk/src/main/java/com/spruceid/mobile/sdk/MDoc.kt index c7e1c53..7e2529e 100644 --- a/MobileSdk/src/main/java/com/spruceid/mobile/sdk/MDoc.kt +++ b/MobileSdk/src/main/java/com/spruceid/mobile/sdk/MDoc.kt @@ -1,14 +1,14 @@ package com.spruceid.mobile.sdk import android.util.Log -import com.spruceid.mobile.sdk.rs.MDoc as InnerMDoc +import com.spruceid.mobile.sdk.rs.Mdoc as InnerMDoc class MDoc(id: String, issuerAuth: ByteArray, val keyAlias: String) : BaseCredential(id) { val inner: InnerMDoc init { try { - inner = InnerMDoc.fromCbor(issuerAuth) + inner = InnerMDoc.fromCborEncodedDocument(issuerAuth, keyAlias) } catch (e: Throwable) { Log.e("MDoc.init", e.toString()) throw e