plotline-engage 3.1.9 → 3.2.1

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:2.9.1'
42
+ implementation 'com.gitlab.plotline:plotline-android-sdk:2.9.2'
43
43
  }
44
44
 
@@ -135,4 +135,9 @@ public class RNPlotline extends ReactContextBaseJavaModule {
135
135
  public void notifyScroll() {
136
136
  Plotline.notifyScroll();
137
137
  }
138
+
139
+ @ReactMethod
140
+ public void logout() {
141
+ Plotline.logout();
142
+ }
138
143
  }
package/index.d.ts CHANGED
@@ -12,6 +12,7 @@ declare class plotline {
12
12
  trackPage(pageId: string): void;
13
13
  debug(): void;
14
14
  notifyScroll(): void;
15
+ logout(): void;
15
16
  }
16
17
  declare class ScrollView extends React.Component<ScrollViewProps> {
17
18
  }
package/index.js CHANGED
@@ -64,6 +64,10 @@ class plotline {
64
64
  notifyScroll() {
65
65
  this.throttledNotifyScroll();
66
66
  }
67
+
68
+ logout() {
69
+ RNPlotline.logout();
70
+ }
67
71
  }
68
72
 
69
73
  const Plotline = new plotline();
package/ios/RNPlotline.m CHANGED
@@ -58,6 +58,11 @@ RCT_EXPORT_METHOD(trackPage:(NSString *)pageName)
58
58
  [Plotline trackPageWithPageName:pageName];
59
59
  }
60
60
 
61
+ RCT_EXPORT_METHOD(logout)
62
+ {
63
+ [Plotline logout];
64
+ }
65
+
61
66
  RCT_EXPORT_MODULE();
62
67
 
63
68
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotline-engage",
3
- "version": "3.1.9",
3
+ "version": "3.2.1",
4
4
  "description": "React Native plugin for Plotline",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"