From aedf7aac0d6489ae2017fe247928e11c677e250f Mon Sep 17 00:00:00 2001 From: Gaurav Sarma Date: Thu, 11 Aug 2022 23:11:24 +0530 Subject: [PATCH 1/4] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 83a8fb3..0519fa7 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,12 @@ ### Integration into Android version of KMP project 1. Generate JWT token in your backend which is required to access the Ballerine KYC flow APIs. Here is the link to the documentation on how to generate token. + + 2. Add gradle dependency for Ballerine webview in your app-level `build.gradle` file ```kt dependencies { - implementation("com.github.gau4sar:Ballerine-android-webview:1.0.0") + implementation 'com.github.ballerine-io:ballerine-android-sdk:1.0.4' } ``` We need to add the maven dependency for jitpack in settings.gradle @@ -19,7 +21,7 @@ allprojects { } ``` 3. Add `BallerineKYCFlowWebview` composable to your Activity/Fragment to initiate the web KYC verification flow process. - Then we receive the result of the callback function `onVerificationComplete` in your Activity/Fragment. + Then we receive the result of the callback function `onVerificationComplete` in your Compose Activity/Fragment. #### MainActivity.kt ```kt BallerineKYCFlowWebView( From a55e4f16d3f0d993ccca11eaf5a36a23d8f8593c Mon Sep 17 00:00:00 2001 From: Gaurav Sarma Date: Thu, 11 Aug 2022 23:12:30 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0519fa7..463e544 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,9 @@ BallerineKYCFlowWebView( (As shown above in Point 3) + + + ### Integration into iOS 1. Add the NSCameraUsageDescription key into Info.plist file. It's needed in order to use the camera. From e423ba93b6ea90265c7ca7b73df44f9b418b4c62 Mon Sep 17 00:00:00 2001 From: Gaurav Sarma Date: Thu, 11 Aug 2022 23:12:53 +0530 Subject: [PATCH 3/4] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 463e544..a81b5d1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ allprojects { ``` 3. Add `BallerineKYCFlowWebview` composable to your Activity/Fragment to initiate the web KYC verification flow process. Then we receive the result of the callback function `onVerificationComplete` in your Compose Activity/Fragment. -#### MainActivity.kt ```kt BallerineKYCFlowWebView( outputFileDirectory = outputFileDirectory, From 34385fff94d7241ea07120539c8057fb22567d2e Mon Sep 17 00:00:00 2001 From: Gaurav Sarma Date: Thu, 11 Aug 2022 23:13:26 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a81b5d1..5dc0200 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ BallerineKYCFlowWebView( // Here we are just displaying the verification result as Text on the screen Toast.makeText(this, toastMessage, Toast.LENGTH_LONG).show() - }) + } +) ``` 4. Once you have received the `VerificationResult` we can do further checks on the different values of the `VerificationResult` like `status`|`idvResult`|`code`|`isSync`. (As shown above in Point 3)