@sodyo/react-native-sodyo-sdk 3.7.2 → 3.8.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.
|
@@ -283,10 +283,10 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
@ReactMethod
|
|
286
|
-
public void performMarker(String markerId) {
|
|
286
|
+
public void performMarker(String markerId, ReadableMap customProperties) {
|
|
287
287
|
Log.i(TAG, "performMarker()");
|
|
288
288
|
Activity activity = getCurrentActivity();
|
|
289
|
-
Sodyo.performMarker(markerId, activity);
|
|
289
|
+
Sodyo.performMarker(markerId, activity, ConversionUtil.toMap(customProperties));
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
@ReactMethod
|
package/ios/RNSodyoSdk.m
CHANGED
|
@@ -83,12 +83,12 @@ RCT_EXPORT_METHOD(setDynamicProfileValue:(NSString *) key value:(NSString *) val
|
|
|
83
83
|
[SodyoSDK setDynamicProfileValue:key value:value];
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
RCT_EXPORT_METHOD(performMarker:(NSString *) markerId)
|
|
86
|
+
RCT_EXPORT_METHOD(performMarker:(NSString *) markerId customProperties:(NSDictionary *) customProperties)
|
|
87
87
|
{
|
|
88
88
|
NSLog(@"performMarker");
|
|
89
89
|
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
90
90
|
[SodyoSDK setPresentingViewController:rootViewController];
|
|
91
|
-
[SodyoSDK performMarker:markerId];
|
|
91
|
+
[SodyoSDK performMarker:markerId customProperties:customProperties];
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
RCT_EXPORT_METHOD(startTroubleshoot)
|
package/package.json
CHANGED
package/sodyosdk.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
removeAllListeners (eventType?: string): void
|
|
19
19
|
onMarkerContent (callback: (markerId: string, data: { [key: string]: any }) => void): () => void,
|
|
20
20
|
onModeChange (callback: (data: ISodyoMode) => void): () => void,
|
|
21
|
-
performMarker (markerId: string): void,
|
|
21
|
+
performMarker (markerId: string, customProperties: { [key: string]: any }): void,
|
|
22
22
|
startTroubleshoot (): void,
|
|
23
23
|
setSodyoLogoVisible (isVisible: boolean): void,
|
|
24
24
|
setTroubleshootMode (): void,
|
package/sodyosdk.js
CHANGED
|
@@ -99,8 +99,8 @@ export default {
|
|
|
99
99
|
};
|
|
100
100
|
},
|
|
101
101
|
|
|
102
|
-
performMarker: (markerId) => {
|
|
103
|
-
return RNSodyoSdk.performMarker(markerId);
|
|
102
|
+
performMarker: (markerId, customProperties) => {
|
|
103
|
+
return RNSodyoSdk.performMarker(markerId, customProperties);
|
|
104
104
|
},
|
|
105
105
|
|
|
106
106
|
startTroubleshoot: () => {
|