plotline-engage 4.4.5 → 4.4.6

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.9.1'
42
+ implementation 'com.gitlab.plotline:plotline-android-sdk:3.9.4'
43
43
  }
44
44
 
@@ -178,7 +178,8 @@ public class RNPlotline extends ReactContextBaseJavaModule {
178
178
 
179
179
  @ReactMethod
180
180
  public void setLocale(String locale) {
181
- Plotline.setLocale(locale);
181
+ final Activity activity = getCurrentActivity();
182
+ Plotline.setLocale(activity, locale);
182
183
  }
183
184
 
184
185
  @ReactMethod
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { NavigationContainer as RNNavigationContainer } from '@react-navigation/
3
3
 
4
4
  declare class plotline {
5
5
  track(eventName: string, properties: {[key: string]: any}): void;
6
- init(apiKey: string, refId: string, endpoint?: string): void;
6
+ init(apiKey: string, refId?: string, endpoint?: string): void;
7
7
  identify(attributes: {[key: string]: any}): void;
8
8
  setLocale(locale: string): void;
9
9
  showMockStudy(): void;
package/index.js CHANGED
@@ -82,7 +82,7 @@ class plotline {
82
82
  RNPlotline.track(eventName, null);
83
83
  }
84
84
 
85
- init (apiKey, refId, endpoint = null) {
85
+ init (apiKey, refId = "", endpoint = null) {
86
86
  RNPlotline.init(apiKey, refId, endpoint);
87
87
  }
88
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotline-engage",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "description": "React Native plugin for Plotline",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"