@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.
@@ -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.81'
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@identomat-inc/react-native-identomat",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "identomat bridge module",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,6 +22,6 @@ Pod::Spec.new do |s|
22
22
  s.swift_version = "5"
23
23
  s.requires_arc = true
24
24
  s.dependency "React"
25
- s.dependency "identomat-inc", "1.1.84"
25
+ s.dependency "identomat-inc", "1.1.89"
26
26
  end
27
27