@sodyo/react-native-sodyo-sdk 3.14.4 → 3.15.4

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.
@@ -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.66.05') {
58
+ implementation ('com.sodyo:sodyo-android-sdk:3.67.01') {
59
59
  transitive = true
60
60
  exclude group: 'com.parse.bolts', module: 'bolts-android'
61
61
  }
@@ -288,6 +288,14 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
288
288
  Sodyo.stopScanning();
289
289
  }
290
290
 
291
+ @ReactMethod
292
+ public void setDynamicProfile(ReadableMap profile) {
293
+ Log.i(TAG, "setDynamicProfile()");
294
+ if (profile != null) {
295
+ Sodyo.setDynamicProfile(ConversionUtil.toHashMap(profile));
296
+ }
297
+ }
298
+
291
299
  @ReactMethod
292
300
  public void setDynamicProfileValue(String key, String value) {
293
301
  Log.i(TAG, "setDynamicProfileValue()");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sodyo/react-native-sodyo-sdk",
3
- "version": "3.14.4",
3
+ "version": "3.15.4",
4
4
  "description": "RNSodyoSdk",
5
5
  "main": "sodyosdk.js",
6
6
  "typings": "./sodyosdk.d.ts",
package/sodyosdk.d.ts CHANGED
@@ -14,6 +14,7 @@ declare const _default: {
14
14
  setUserInfo (userInfo: { [key: string]: string | number }): void
15
15
  setScannerParams (scannerPreferences: { [key: string]: string }): void
16
16
  addScannerParam (key: string, value: string): void
17
+ setDynamicProfile (profile: { [key: string]: any }): void,
17
18
  setDynamicProfileValue (key: string, value: string): void
18
19
  setCustomAdLabel (label: string): void
19
20
  setAppUserId (appUserId: string): void
package/sodyosdk.js CHANGED
@@ -161,6 +161,10 @@ export default {
161
161
  return RNSodyoSdk.setDynamicProfileValue(key, value);
162
162
  },
163
163
 
164
+ setDynamicProfile: (profile) => {
165
+ return RNSodyoSdk.setDynamicProfile(profile);
166
+ },
167
+
164
168
  setCustomAdLabel: (label) => {
165
169
  return RNSodyoSdk.setCustomAdLabel(label);
166
170
  },
@@ -196,7 +200,7 @@ export class Scanner extends Component {
196
200
  isTroubleShootingEnabled: false,
197
201
  };
198
202
 
199
- componentDidUpdate(prevProps: Readonly<P>, prevState: Readonly<S>, snapshot: SS) {
203
+ componentDidUpdate(prevProps, prevState, snapshot) {
200
204
  if (this.props.isTroubleShootingEnabled) {
201
205
  if (Platform.OS !== 'ios') {
202
206
  return RNSodyoSdk.startTroubleshoot()