react-native-hyperkyc-sdk 0.29.1 → 0.29.3

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.
@@ -56,7 +56,7 @@ repositories {
56
56
  dependencies {
57
57
  //noinspection GradleDynamicVersion
58
58
  implementation "com.facebook.react:react-native:+" // From node_modules
59
- implementation('co.hyperverge:hyperkyc:0.29.1@aar', {
59
+ implementation('co.hyperverge:hyperkyc:0.29.2@aar', {
60
60
  transitive = true
61
61
  })
62
62
 
@@ -105,8 +105,8 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
105
105
  }
106
106
  }
107
107
 
108
- private Map<String, String> processReadableMap(ReadableMap rm) {
109
- Map<String, Any> map = new HashMap<>();
108
+ private Map<String, Object> processReadableMap(ReadableMap rm) {
109
+ Map<String, Object> map = new HashMap<>();
110
110
  ReadableMapKeySetIterator iterator = rm.keySetIterator();
111
111
  while (iterator.hasNextKey()) {
112
112
  String key = iterator.nextKey();
@@ -127,7 +127,7 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
127
127
  Boolean useLocation = kycConfig.hasKey("useLocation") ? kycConfig.getBoolean("useLocation") : null;
128
128
  String uniqueId = kycConfig.hasKey("uniqueId") ? kycConfig.getString("uniqueId") : null;
129
129
  Map<String, String> metadata = new HashMap<>();
130
- metadata.put("sdk-version", "0.29.1");
130
+ metadata.put("sdk-version", "0.29.3");
131
131
  metadata.put("sdk-type", "React Native");
132
132
  if (accessToken == null) {
133
133
  assert appId != null;
@@ -1,6 +1,5 @@
1
1
  package com.reactnativehyperkycsdk;
2
2
 
3
-
4
3
  import androidx.annotation.NonNull;
5
4
 
6
5
  import com.facebook.react.ReactPackage;
@@ -14,22 +13,21 @@ import java.util.Collections;
14
13
  import java.util.List;
15
14
 
16
15
  public class HyperkycSdkPackage implements ReactPackage {
17
- @NonNull
18
- @Override
19
- public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
20
- List<NativeModule> modules = new ArrayList<>();
21
- modules.add(new HyperkycSdkModule(reactContext));
22
- return modules;
23
- }
24
-
16
+ @NonNull
17
+ @Override
18
+ public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
19
+ List<NativeModule> modules = new ArrayList<>();
20
+ modules.add(new HyperkycSdkModule(reactContext));
21
+ return modules;
22
+ }
25
23
 
26
24
  public List<Class<? extends JavaScriptModule>> createJSModules() {
27
25
  return null;
28
26
  }
29
27
 
30
28
  @NonNull
31
- @Override
32
- public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
33
- return Collections.emptyList();
34
- }
29
+ @Override
30
+ public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
31
+ return Collections.emptyList();
32
+ }
35
33
  }
@@ -32,7 +32,7 @@ class Hyperkyc: NSObject {
32
32
  let useLocation = _config["useLocation"] as? Bool
33
33
  let uniqueId = _config["uniqueId"] as? String
34
34
  let metadata: [String: String] = [
35
- "sdk-version": "0.29.1",
35
+ "sdk-version": "0.29.3",
36
36
  "sdk-type": "React Native"
37
37
  ]
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.29.1",
3
+ "version": "0.29.3",
4
4
  "description": "React Native wrapper for HyperKYC SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.static_framework = true
18
18
  s.weak_frameworks = ['CoreNFC', 'CryptoKit']
19
19
  s.dependency "React-Core"
20
- s.dependency "HyperKYC", "0.29.1"
20
+ s.dependency "HyperKYC", "0.29.2"
21
21
  # Need these lines to support HyperKYC framework
22
22
  s.preserve_paths = 'HyperKYC.framework'
23
23
  s.xcconfig = { 'OTHER_LDFLAGS' => '-framework HyperKYC' }