@sodyo/react-native-sodyo-sdk 3.11.10 → 3.12.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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
[SodyoSDK for iOS](https://github.com/sodyo-ltd/SodyoSDKPod) v3.64.02
|
|
5
5
|
|
|
6
|
-
[SodyoSDK for Android](https://search.maven.org/search?q=a:sodyo-android-sdk) 3.64.
|
|
6
|
+
[SodyoSDK for Android](https://search.maven.org/search?q=a:sodyo-android-sdk) 3.64.14
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
## Install
|
package/android/build.gradle
CHANGED
|
@@ -55,7 +55,7 @@ repositories {
|
|
|
55
55
|
|
|
56
56
|
dependencies {
|
|
57
57
|
implementation ('com.facebook.react:react-native:+')
|
|
58
|
-
implementation ('com.sodyo:sodyo-android-sdk:3.64.
|
|
58
|
+
implementation ('com.sodyo:sodyo-android-sdk:3.64.19') {
|
|
59
59
|
transitive = true
|
|
60
60
|
exclude group: 'com.parse.bolts', module: 'bolts-android'
|
|
61
61
|
}
|
|
@@ -276,6 +276,18 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
|
|
|
276
276
|
Sodyo.addScannerParams(key, value);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
+
@ReactMethod
|
|
280
|
+
public void startScanning() {
|
|
281
|
+
Log.i(TAG, "startScanning()");
|
|
282
|
+
Sodyo.startScanning();
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
@ReactMethod
|
|
286
|
+
public void stopScanning() {
|
|
287
|
+
Log.i(TAG, "stopScanning()");
|
|
288
|
+
Sodyo.stopScanning();
|
|
289
|
+
}
|
|
290
|
+
|
|
279
291
|
@ReactMethod
|
|
280
292
|
public void setDynamicProfileValue(String key, String value) {
|
|
281
293
|
Log.i(TAG, "setDynamicProfileValue()");
|
package/package.json
CHANGED
package/sodyosdk.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare const _default: {
|
|
|
7
7
|
onError (callback: (err: string) => void): () => void,
|
|
8
8
|
onCloseScanner (callback: () => void): () => void,
|
|
9
9
|
onCloseContent (callback: () => void): () => void,
|
|
10
|
+
startScanning (): void
|
|
11
|
+
stopScanning (): void
|
|
10
12
|
start (successCallback?: (immediateData?: string) => void, errorCallback?: (msg: string) => void): void
|
|
11
13
|
close (): void
|
|
12
14
|
setUserInfo (userInfo: { [key: string]: string | number }): void
|
package/sodyosdk.js
CHANGED
|
@@ -137,6 +137,14 @@ export default {
|
|
|
137
137
|
return RNSodyoSdk.close();
|
|
138
138
|
},
|
|
139
139
|
|
|
140
|
+
startScanning: () => {
|
|
141
|
+
return RNSodyoSdk.startScanning();
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
stopScanning: () => {
|
|
145
|
+
return RNSodyoSdk.stopScanning();
|
|
146
|
+
},
|
|
147
|
+
|
|
140
148
|
setUserInfo: (userInfo) => {
|
|
141
149
|
return RNSodyoSdk.setUserInfo(userInfo);
|
|
142
150
|
},
|