@attentive-mobile/attentive-react-native-sdk 1.0.3-beta.1 → 1.0.5
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/README.md +24 -0
- package/android/build.gradle +3 -0
- package/android/src/main/java/com/attentivereactnativesdk/AttentiveReactNativeSdkModule.java +63 -0
- package/android/src/main/kotlin/com/attentivereactnativesdk/debug/AttentiveDebugHelper.kt +422 -0
- package/android/src/main/kotlin/com/attentivereactnativesdk/debug/DebugEvent.kt +76 -0
- package/attentive-react-native-sdk.podspec +1 -2
- package/ios/AttentiveReactNativeSdk.h +6 -6
- package/ios/AttentiveReactNativeSdk.mm +18 -8
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.pbxproj +2 -2
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/AttentiveReactNativeSdk.xcodeproj/project.xcworkspace/xcuserdata/zheref.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/AttentiveReactNativeSdk.xcodeproj/xcuserdata/zheref.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/Bridging/ATTNNativeSDK.swift +770 -2
- package/ios/Podfile +1 -1
- package/lib/commonjs/eventTypes.js.map +1 -1
- package/lib/commonjs/index.js +16 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/eventTypes.js.map +1 -1
- package/lib/module/index.js +14 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +8 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +14 -0
package/ios/Podfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
2
2
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
3
3
|
|
|
4
|
-
platform :ios,
|
|
4
|
+
platform :ios, '14.0'
|
|
5
5
|
prepare_react_native_project!
|
|
6
6
|
|
|
7
7
|
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["eventTypes.tsx"],"mappings":""
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["eventTypes.tsx"],"mappings":""}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -14,11 +14,12 @@ const AttentiveReactNativeSdk = _reactNative.NativeModules.AttentiveReactNativeS
|
|
|
14
14
|
throw new Error(LINKING_ERROR);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
let Mode =
|
|
17
|
+
let Mode = /*#__PURE__*/function (Mode) {
|
|
18
18
|
Mode["Production"] = "production";
|
|
19
19
|
Mode["Debug"] = "debug";
|
|
20
20
|
return Mode;
|
|
21
21
|
}({});
|
|
22
|
+
exports.Mode = Mode;
|
|
22
23
|
class Attentive {
|
|
23
24
|
static initialize(configuration) {
|
|
24
25
|
AttentiveReactNativeSdk.initialize(configuration);
|
|
@@ -29,7 +30,8 @@ class Attentive {
|
|
|
29
30
|
static clearUser() {
|
|
30
31
|
AttentiveReactNativeSdk.clearUser();
|
|
31
32
|
}
|
|
32
|
-
static triggerCreative(
|
|
33
|
+
static triggerCreative() {
|
|
34
|
+
let creativeId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
33
35
|
AttentiveReactNativeSdk.triggerCreative(creativeId);
|
|
34
36
|
}
|
|
35
37
|
static destroyCreative() {
|
|
@@ -50,6 +52,18 @@ class Attentive {
|
|
|
50
52
|
static recordCustomEvent(customEvent) {
|
|
51
53
|
AttentiveReactNativeSdk.recordCustomEvent(customEvent);
|
|
52
54
|
}
|
|
55
|
+
static invokeAttentiveDebugHelper() {
|
|
56
|
+
AttentiveReactNativeSdk.invokeAttentiveDebugHelper();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Exports debug logs as a formatted string for sharing or analysis
|
|
61
|
+
* Only available when debugging is enabled
|
|
62
|
+
* @returns Promise<string> A formatted string containing all debug events in the current session
|
|
63
|
+
*/
|
|
64
|
+
static async exportDebugLogs() {
|
|
65
|
+
return AttentiveReactNativeSdk.exportDebugLogs();
|
|
66
|
+
}
|
|
53
67
|
}
|
|
54
68
|
exports.Attentive = Attentive;
|
|
55
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","AttentiveReactNativeSdk","NativeModules","Proxy","get","Error","Mode","exports","Attentive","initialize","configuration","identify","userIdentifiers","clearUser","triggerCreative","creativeId","destroyCreative","updateDomain","domain","recordProductViewEvent","productViewEvent","recordAddToCartEvent","addToCartEvent","recordPurchaseEvent","purchaseEvent","recordCustomEvent","customEvent"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQA,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","AttentiveReactNativeSdk","NativeModules","Proxy","get","Error","Mode","exports","Attentive","initialize","configuration","identify","userIdentifiers","clearUser","triggerCreative","creativeId","arguments","length","undefined","destroyCreative","updateDomain","domain","recordProductViewEvent","productViewEvent","recordAddToCartEvent","addToCartEvent","recordPurchaseEvent","purchaseEvent","recordCustomEvent","customEvent","invokeAttentiveDebugHelper","exportDebugLogs"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQA,MAAMC,aAAa,GAChB,qFAAoF,GACrFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,uBAAuB,GAAGC,0BAAa,CAACD,uBAAuB,GACjEC,0BAA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OC,iBAAiBA,CAACC,WAAwB,EAAQ;IACvD5B,uBAAuB,CAAC2B,iBAAiB,CAACC,WAAW,CAAC;EACxD;EAEA,OAAOC,0BAA0BA,CAAA,EAAS;IACxC7B,uBAAuB,CAAC6B,0BAA0B,EAAE;EACtD;;EAEA;AACF;AACA;AACA;AACA;EACE,aAAaC,eAAeA,CAAA,EAAoB;IAC9C,OAAO9B,uBAAuB,CAAC8B,eAAe,EAAE;EAClD;AACF;AAACxB,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["eventTypes.tsx"],"mappings":""
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["eventTypes.tsx"],"mappings":""}
|
package/lib/module/index.js
CHANGED
|
@@ -23,7 +23,8 @@ export class Attentive {
|
|
|
23
23
|
static clearUser() {
|
|
24
24
|
AttentiveReactNativeSdk.clearUser();
|
|
25
25
|
}
|
|
26
|
-
static triggerCreative(
|
|
26
|
+
static triggerCreative() {
|
|
27
|
+
let creativeId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
27
28
|
AttentiveReactNativeSdk.triggerCreative(creativeId);
|
|
28
29
|
}
|
|
29
30
|
static destroyCreative() {
|
|
@@ -44,5 +45,17 @@ export class Attentive {
|
|
|
44
45
|
static recordCustomEvent(customEvent) {
|
|
45
46
|
AttentiveReactNativeSdk.recordCustomEvent(customEvent);
|
|
46
47
|
}
|
|
48
|
+
static invokeAttentiveDebugHelper() {
|
|
49
|
+
AttentiveReactNativeSdk.invokeAttentiveDebugHelper();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Exports debug logs as a formatted string for sharing or analysis
|
|
54
|
+
* Only available when debugging is enabled
|
|
55
|
+
* @returns Promise<string> A formatted string containing all debug events in the current session
|
|
56
|
+
*/
|
|
57
|
+
static async exportDebugLogs() {
|
|
58
|
+
return AttentiveReactNativeSdk.exportDebugLogs();
|
|
59
|
+
}
|
|
47
60
|
}
|
|
48
61
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","AttentiveReactNativeSdk","Proxy","get","Error","Mode","Attentive","initialize","configuration","identify","userIdentifiers","clearUser","triggerCreative","creativeId","destroyCreative","updateDomain","domain","recordProductViewEvent","productViewEvent","recordAddToCartEvent","addToCartEvent","recordPurchaseEvent","purchaseEvent","recordCustomEvent","customEvent"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAQtD,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","AttentiveReactNativeSdk","Proxy","get","Error","Mode","Attentive","initialize","configuration","identify","userIdentifiers","clearUser","triggerCreative","creativeId","arguments","length","undefined","destroyCreative","updateDomain","domain","recordProductViewEvent","productViewEvent","recordAddToCartEvent","addToCartEvent","recordPurchaseEvent","purchaseEvent","recordCustomEvent","customEvent","invokeAttentiveDebugHelper","exportDebugLogs"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAQtD,MAAMC,aAAa,GAChB,qFAAoF,GACrFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,uBAAuB,GAAGN,aAAa,CAACM,uBAAuB,GACjEN,aAAa,CAACM,uBAAuB,GACrC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,WAAYQ,IAAI,0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,aAAaC,eAAeA,CAAA,EAAoB;IAC9C,OAAO5B,uBAAuB,CAAC4B,eAAe,EAAE;EAClD;AACF"}
|
|
@@ -7,6 +7,7 @@ export type AttentiveConfiguration = {
|
|
|
7
7
|
attentiveDomain: string;
|
|
8
8
|
mode: Mode;
|
|
9
9
|
skipFatigueOnCreatives?: boolean;
|
|
10
|
+
enableDebugger?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export type UserIdentifiers = {
|
|
12
13
|
phone?: string;
|
|
@@ -29,6 +30,13 @@ export declare class Attentive {
|
|
|
29
30
|
static recordAddToCartEvent(addToCartEvent: AddToCartEvent): void;
|
|
30
31
|
static recordPurchaseEvent(purchaseEvent: PurchaseEvent): void;
|
|
31
32
|
static recordCustomEvent(customEvent: CustomEvent): void;
|
|
33
|
+
static invokeAttentiveDebugHelper(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Exports debug logs as a formatted string for sharing or analysis
|
|
36
|
+
* Only available when debugging is enabled
|
|
37
|
+
* @returns Promise<string> A formatted string containing all debug events in the current session
|
|
38
|
+
*/
|
|
39
|
+
static exportDebugLogs(): Promise<string>;
|
|
32
40
|
}
|
|
33
41
|
export type { AddToCartEvent, ProductViewEvent, PurchaseEvent, CustomEvent };
|
|
34
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,WAAW,EACZ,MAAM,cAAc,CAAC;AAmBtB,oBAAY,IAAI;IACd,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,sBAAsB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../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iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAIxD,MAAM,CAAC,0BAA0B,IAAI,IAAI;IAIzC;;;;OAIG;WACU,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;CAGhD;AAED,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attentive-mobile/attentive-react-native-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "React Native Module for the Attentive SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
64
64
|
"@types/jest": "^28.1.2",
|
|
65
65
|
"@types/react": "~17.0.21",
|
|
66
|
-
"@types/react-native": "0.
|
|
66
|
+
"@types/react-native": "0.75.5",
|
|
67
67
|
"commitlint": "^17.0.2",
|
|
68
68
|
"del-cli": "^5.0.0",
|
|
69
69
|
"eslint": "^8.4.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"pod-install": "^0.1.0",
|
|
74
74
|
"prettier": "^2.0.5",
|
|
75
75
|
"react": "18.2.0",
|
|
76
|
-
"react-native": "0.
|
|
76
|
+
"react-native": "0.75.5",
|
|
77
77
|
"react-native-builder-bob": "^0.20.4",
|
|
78
78
|
"release-it": "^15.0.0",
|
|
79
79
|
"typescript": "^4.5.2"
|
package/src/index.tsx
CHANGED
|
@@ -32,6 +32,7 @@ export type AttentiveConfiguration = {
|
|
|
32
32
|
attentiveDomain: string;
|
|
33
33
|
mode: Mode;
|
|
34
34
|
skipFatigueOnCreatives?: boolean;
|
|
35
|
+
enableDebugger?: boolean;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
export type UserIdentifiers = {
|
|
@@ -83,6 +84,19 @@ export class Attentive {
|
|
|
83
84
|
static recordCustomEvent(customEvent: CustomEvent): void {
|
|
84
85
|
AttentiveReactNativeSdk.recordCustomEvent(customEvent);
|
|
85
86
|
}
|
|
87
|
+
|
|
88
|
+
static invokeAttentiveDebugHelper(): void {
|
|
89
|
+
AttentiveReactNativeSdk.invokeAttentiveDebugHelper();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Exports debug logs as a formatted string for sharing or analysis
|
|
94
|
+
* Only available when debugging is enabled
|
|
95
|
+
* @returns Promise<string> A formatted string containing all debug events in the current session
|
|
96
|
+
*/
|
|
97
|
+
static async exportDebugLogs(): Promise<string> {
|
|
98
|
+
return AttentiveReactNativeSdk.exportDebugLogs();
|
|
99
|
+
}
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
export type { AddToCartEvent, ProductViewEvent, PurchaseEvent, CustomEvent };
|