react-native-okhi 1.2.25 → 1.2.26

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.
@@ -126,8 +126,8 @@ repositories {
126
126
  dependencies {
127
127
  //noinspection GradleDynamicVersion
128
128
  implementation "com.facebook.react:react-native:+"
129
- implementation 'io.okhi.android:core:1.7.38'
130
- implementation 'io.okhi.android:okverify:1.9.72'
129
+ implementation 'io.okhi.android:core:1.7.39'
130
+ implementation 'io.okhi.android:okverify:1.9.73'
131
131
  // From node_modules
132
132
  }
133
133
 
@@ -161,9 +161,7 @@ public class OkhiModule extends ReactContextBaseJavaModule {
161
161
  String branchId = config.getJSONObject("credentials").getString("branchId");
162
162
  String clientKey = config.getJSONObject("credentials").getString("clientKey");
163
163
  String mode = config.getJSONObject("context").getString("mode");
164
- String developer = config.getJSONObject("context").optString("developer", "external");
165
- OkHiAppContext context = new OkHiAppContext(getReactApplicationContext(), mode, "react-native", developer);
166
- auth = new OkHiAuth(getReactApplicationContext(), branchId, clientKey, context);
164
+ auth = new OkHiAuth(getReactApplicationContext(), branchId, clientKey, mode);
167
165
  if (getCurrentActivity() != null && getCurrentActivity().getApplicationContext() != null) {
168
166
  okVerify = new OkVerify.Builder(getCurrentActivity(), auth).build();
169
167
  if (config.has("notification")) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.25"
3
+ "version": "1.2.26"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.25"
3
+ "version": "1.2.26"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-okhi",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "The OkHi React Native library enables you to collect and verify addresses from your users",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.25"
3
+ "version": "1.2.26"
4
4
  }