@identomat-inc/react-native-identomat 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -43,6 +43,6 @@ dependencies {
|
|
|
43
43
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
44
44
|
// implementation 'com.android.support:recyclerview-v7:28.0.0'
|
|
45
45
|
implementation 'com.android.support:design:28.0.0'
|
|
46
|
-
implementation 'com.identomat:identomat-sdk:1.1.
|
|
46
|
+
implementation 'com.identomat:identomat-sdk:1.1.99'
|
|
47
47
|
implementation 'androidx.fragment:fragment:1.1.0-alpha05'
|
|
48
48
|
}
|
|
@@ -120,6 +120,10 @@ public class BridgeModule extends ReactContextBaseJavaModule {
|
|
|
120
120
|
identomatSDK.setBaseUrl(baseUrl);
|
|
121
121
|
}
|
|
122
122
|
@ReactMethod
|
|
123
|
+
public void finish(){
|
|
124
|
+
identomatSDK.finish();
|
|
125
|
+
}
|
|
126
|
+
@ReactMethod
|
|
123
127
|
public void start(String mSessionKey){
|
|
124
128
|
callback();
|
|
125
129
|
identomatSDK.setUp(mSessionKey);
|
package/index.js
CHANGED
|
@@ -43,6 +43,11 @@ class Identomat {
|
|
|
43
43
|
NativeModules.Identomat.start(sessionKey);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
async finish() {
|
|
47
|
+
if(Platform.OS == "android"){
|
|
48
|
+
NativeModules.BridgeModule.finish();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
46
51
|
setCallback(Callback){
|
|
47
52
|
if (Platform.OS=="android"){
|
|
48
53
|
BatchedBridge.registerCallableModule('JavaScriptVisibleToJava', Callback);
|
package/package.json
CHANGED