plotline-engage 4.2.7 → 4.2.9

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.5.0'
42
+ implementation 'com.gitlab.plotline:plotline-android-sdk:3.6.2'
43
43
  }
44
44
 
@@ -149,6 +149,11 @@ public class RNPlotline extends ReactContextBaseJavaModule {
149
149
  Plotline.track(eventName, properties, activity);
150
150
  }
151
151
 
152
+ @ReactMethod
153
+ public void setShouldDisablePlotline(boolean shouldDisablePlotline){
154
+ Plotline.setShouldDisablePlotline(shouldDisablePlotline);
155
+ }
156
+
152
157
  @ReactMethod
153
158
  public void showStory(String storyId, String slideId){
154
159
  final Activity activity = getCurrentActivity();
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@ declare class plotline {
9
9
  showMockStudy(): void;
10
10
  setColor(colors: {[key: string]: string}): void;
11
11
  trackPage(pageId: string): void;
12
+ setShouldDisablePlotline(shouldDisablePlotline: boolean): void;
12
13
  showStory(storyId: string, slideId?: string): void;
13
14
  debug(): void;
14
15
  notifyScroll(): void;
package/index.js CHANGED
@@ -106,6 +106,10 @@ class plotline {
106
106
  RNPlotline.trackPage(pageId);
107
107
  }
108
108
 
109
+ setShouldDisablePlotline (shouldDisablePlotline) {
110
+ RNPlotline.setShouldDisablePlotline(shouldDisablePlotline);
111
+ }
112
+
109
113
  showStory (storyId, slideId) {
110
114
  if (slideId) {
111
115
  RNPlotline.showStory(storyId, slideId);
package/ios/RNPlotline.m CHANGED
@@ -63,6 +63,11 @@ RCT_EXPORT_METHOD(setColor:(NSDictionary *)colors)
63
63
  [Plotline setColorWithColors:colors];
64
64
  }
65
65
 
66
+ RCT_EXPORT_METHOD(setShouldDisablePlotline:(NSNumber *)shouldDisablePlotline)
67
+ {
68
+ [Plotline setShouldDisablePlotlineWithShouldDisablePlotline:shouldDisablePlotline];
69
+ }
70
+
66
71
  RCT_EXPORT_METHOD(debug)
67
72
  {
68
73
  [Plotline debugWithShouldDebug:true];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotline-engage",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "description": "React Native plugin for Plotline",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"