plotline-engage 1.0.1 → 1.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/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -12,7 +12,6 @@ class plotline {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
init (apiKey, refId, endpoint = null) {
|
|
15
|
-
console.log("[Plotline] init called");
|
|
16
15
|
RNPlotline.init(apiKey, refId, endpoint);
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -33,9 +32,12 @@ class plotline {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
trackPage (pageId) {
|
|
36
|
-
console.log("[Plotline] track called");
|
|
37
35
|
RNPlotline.trackPage(pageId);
|
|
38
36
|
}
|
|
37
|
+
|
|
38
|
+
debug () {
|
|
39
|
+
RNPlotline.debug();
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
const Plotline = new plotline();
|
package/ios/RNPlotline.m
CHANGED
|
@@ -6,15 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
RCT_EXPORT_METHOD(init:(NSString *)apiKey userId:(NSString *)userId endpoint:(NSString *)endpoint)
|
|
8
8
|
{
|
|
9
|
-
printf("Plotline Init Called");
|
|
10
|
-
[Plotline debugWithShouldDebug:true];
|
|
11
9
|
if (endpoint != nil) {
|
|
12
10
|
[Plotline initializeWithApiKey:apiKey userId:userId endpoint:endpoint];
|
|
13
11
|
} else {
|
|
14
12
|
[Plotline initializeWithApiKey:apiKey userId:userId];
|
|
15
13
|
}
|
|
16
14
|
[Plotline setPlotlineFrameworkWithFramework:@"REACT_NATIVE"];
|
|
17
|
-
// [Plotline trackPageWithPageName:@"MainActivity"];
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
RCT_EXPORT_METHOD(track:(NSString *)eventName properties: (NSDictionary *) properties)
|
|
@@ -54,7 +51,6 @@ RCT_EXPORT_METHOD(debug)
|
|
|
54
51
|
|
|
55
52
|
RCT_EXPORT_METHOD(trackPage:(NSString *)pageName)
|
|
56
53
|
{
|
|
57
|
-
printf("Plotline Track Page Called");
|
|
58
54
|
[Plotline trackPageWithPageName:pageName];
|
|
59
55
|
}
|
|
60
56
|
|