@thegrizzlylabs/react-native-genius-scan 6.3.0 → 6.4.0
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 +1 -1
- package/android/build.gradle +2 -1
- package/android/src/main/AndroidManifest.xml +0 -1
- package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +4 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/package.json +1 -1
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 `
|
|
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 {
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
46
|
+
implementation 'com.geniusscansdk:gssdk:6.4.0'
|
|
46
47
|
}
|
|
@@ -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
|
-
|
|
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
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/react-native-genius-scan",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
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",
|