plotline-engage 4.0.1 → 4.0.2
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/android/build.gradle
CHANGED
|
@@ -47,8 +47,8 @@ public class RNPlotline extends ReactContextBaseJavaModule {
|
|
|
47
47
|
@ReactMethod
|
|
48
48
|
public void init(String apiKey, String userId, String endpoint) {
|
|
49
49
|
final Activity activity = getCurrentActivity();
|
|
50
|
-
Plotline.init(activity, apiKey, userId, endpoint);
|
|
51
50
|
Plotline.setFramework("REACT_NATIVE");
|
|
51
|
+
Plotline.init(activity, apiKey, userId, endpoint);
|
|
52
52
|
Plotline.setPlotlineEventsListener((eventName, eventProperties) -> {
|
|
53
53
|
try {
|
|
54
54
|
WritableMap writableMap = Arguments.createMap();
|
package/ios/RNPlotline.m
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
RCT_EXPORT_METHOD(init:(NSString *)apiKey userId:(NSString *)userId endpoint:(NSString *)endpoint)
|
|
13
13
|
{
|
|
14
|
+
[Plotline setPlotlineFrameworkWithFramework:@"REACT_NATIVE"];
|
|
14
15
|
if (endpoint != nil) {
|
|
15
16
|
[Plotline initializeWithApiKey:apiKey userId:userId endpoint:endpoint];
|
|
16
17
|
} else {
|
|
17
18
|
[Plotline initializeWithApiKey:apiKey userId:userId];
|
|
18
19
|
}
|
|
19
|
-
[Plotline setPlotlineFrameworkWithFramework:@"REACT_NATIVE"];
|
|
20
20
|
[Plotline setPlotlineEventsListenerWithListener:^(NSString *eventName, NSDictionary *eventProperties) {
|
|
21
21
|
NSDictionary *event = @{
|
|
22
22
|
@"eventName": eventName,
|