@thegrizzlylabs/react-native-genius-scan 6.3.0 → 6.4.1

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/README.md CHANGED
@@ -45,7 +45,7 @@ $ react-native link @thegrizzlylabs/react-native-genius-scan
45
45
 
46
46
  ### Additional steps on Android
47
47
 
48
- - Open the `android/build.gradle` file, change `minSdkVersion` to `21` and add the following repository:
48
+ - Open the `android/build.gradle` file, change `minSdkVersion` to `23`, set `compileSdkVersion` to `36`, and add the following repository:
49
49
 
50
50
  ```
51
51
  allprojects {
@@ -14,6 +14,7 @@ apply plugin: 'com.android.library'
14
14
 
15
15
  android {
16
16
  compileSdkVersion 36
17
+ namespace "com.geniusscansdk.reactnative"
17
18
 
18
19
  defaultConfig {
19
20
  minSdkVersion 23
@@ -42,5 +43,5 @@ rootProject.allprojects {
42
43
 
43
44
  dependencies {
44
45
  implementation 'com.facebook.react:react-native:+'
45
- implementation 'com.geniusscansdk:gssdk:6.3.0'
46
+ implementation 'com.geniusscansdk:gssdk:6.4.1'
46
47
  }
@@ -1,6 +1,5 @@
1
1
  <manifest
2
2
  xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.geniusscansdk.reactnative"
4
3
  >
5
4
 
6
5
  <application>
@@ -20,6 +20,7 @@ import com.geniusscansdk.scanflow.PluginBridge;
20
20
  import com.geniusscansdk.scanflow.PromiseResult;
21
21
  import com.geniusscansdk.scanflow.ScanFlow;
22
22
 
23
+ import java.util.HashMap;
23
24
  import java.util.Map;
24
25
 
25
26
  public class RNGeniusScanModule extends ReactContextBaseJavaModule {
@@ -44,7 +45,9 @@ public class RNGeniusScanModule extends ReactContextBaseJavaModule {
44
45
  if (promiseResult.isError) {
45
46
  Map<String, String> error = promiseResult.error;
46
47
  if (error != null) {
47
- promise.reject(error.get("code"), error.get("message"), Arguments.makeNativeMap(error));
48
+ // RN 0.81 exposes makeNativeMap with Map<String, Object>, so copy the string map first.
49
+ Map<String, Object> errorPayload = new HashMap<>(error);
50
+ promise.reject(error.get("code"), error.get("message"), Arguments.makeNativeMap(errorPayload));
48
51
  } else {
49
52
  promise.reject("internal_error", "No error payload");
50
53
  }
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>GSSDK.framework/GSSDK</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>GSSDK.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>GSSDK.framework/GSSDK</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>GSSDK.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegrizzlylabs/react-native-genius-scan",
3
- "version": "6.3.0",
3
+ "version": "6.4.1",
4
4
  "description": "React Native Plugin for Genius Scan SDK",
5
5
  "author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
6
6
  "homepage": "https://geniusscansdk.com",