Skip to content

Commit

Permalink
Merge branch 'sample-app--v5.0.2' into 'main'
Browse files Browse the repository at this point in the history
sample app - v5.0.2

See merge request product/docv/mobile/socure-docv-sdk-android!10
  • Loading branch information
josh-socure committed Dec 9, 2024
2 parents 1a211ad + 9644343 commit 76cd9f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sample-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdk 22
targetSdk 34
versionCode 11
versionName "5.0.0"
versionName "5.0.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down Expand Up @@ -39,7 +39,7 @@ dependencies {
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

def sdk_version = "5.0.1"
def sdk_version = "5.0.2"
implementation "com.socure.android:docv-capture:$sdk_version"

def retrofit_version = "2.9.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class MainActivity : AppCompatActivity() {
SocureDocVContext(
it.data.docvTransactionToken,
PUBLIC_KEY,
false
false,
null,
null
)
)
)
Expand All @@ -101,14 +103,14 @@ class MainActivity : AppCompatActivity() {
if (result is SocureDocVSuccess) {
Toast.makeText(
this@MainActivity,
"onSuccess called: ${result.sessionToken}",
"onSuccess called: ${result.deviceSessionToken}",
Toast.LENGTH_SHORT
).show()
} else {
val error = result as? SocureDocVFailure
Toast.makeText(
this@MainActivity,
"onError called: ${error?.sessionToken}, ${error?.error}",
"onError called: ${error?.deviceSessionToken}, ${error?.error}",
Toast.LENGTH_SHORT
).show()
}
Expand Down

0 comments on commit 76cd9f6

Please sign in to comment.