plotline-engage 4.0.1 → 4.0.3

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.
@@ -39,6 +39,6 @@ repositories {
39
39
 
40
40
  dependencies {
41
41
  implementation 'com.facebook.react:react-native:+'
42
- implementation 'com.gitlab.plotline:plotline-android-sdk:3.0.0'
42
+ implementation 'com.gitlab.plotline:plotline-android-sdk:3.0.3'
43
43
  }
44
44
 
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotline-engage",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "React Native plugin for Plotline",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"