affise-attribution-lib 1.6.33 → 1.6.35
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 +83 -12
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/lib/commonjs/AffiseInitProperties.js +4 -1
- package/lib/commonjs/AffiseInitProperties.js.map +1 -1
- package/lib/commonjs/Export.js +15 -4
- package/lib/commonjs/Export.js.map +1 -1
- package/lib/commonjs/debug/AffiseDebug.js +49 -0
- package/lib/commonjs/debug/AffiseDebug.js.map +1 -0
- package/lib/commonjs/debug/AffiseDebugApi.js +6 -0
- package/lib/commonjs/debug/AffiseDebugApi.js.map +1 -0
- package/lib/commonjs/debug/internal.js +28 -0
- package/lib/commonjs/debug/internal.js.map +1 -0
- package/lib/commonjs/index.js +14 -138
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/module/AffiseModules.js +2 -0
- package/lib/commonjs/module/AffiseModules.js.map +1 -1
- package/lib/commonjs/module/appsflyer/AffiseAppsFlyer.js +26 -0
- package/lib/commonjs/module/appsflyer/AffiseAppsFlyer.js.map +1 -0
- package/lib/commonjs/module/appsflyer/AffiseModuleAppsFlyerApi.js +2 -0
- package/lib/commonjs/module/appsflyer/AffiseModuleAppsFlyerApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseAndroid.js +30 -0
- package/lib/commonjs/module/attribution/AffiseAndroid.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseAndroidApi.js +2 -0
- package/lib/commonjs/module/attribution/AffiseAndroidApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseIos.js +50 -0
- package/lib/commonjs/module/attribution/AffiseIos.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseIosApi.js +6 -0
- package/lib/commonjs/module/attribution/AffiseIosApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseModule.js +81 -0
- package/lib/commonjs/module/attribution/AffiseModule.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseModuleApi.js +6 -0
- package/lib/commonjs/module/attribution/AffiseModuleApi.js.map +1 -0
- package/lib/commonjs/module/internal.js +72 -0
- package/lib/commonjs/module/internal.js.map +1 -0
- package/lib/commonjs/module/link/AffiseLink.js +26 -0
- package/lib/commonjs/module/link/AffiseLink.js.map +1 -0
- package/lib/commonjs/module/link/AffiseModuleLinkApi.js +6 -0
- package/lib/commonjs/module/link/AffiseModuleLinkApi.js.map +1 -0
- package/lib/commonjs/module/subscription/AffiseModuleSubscriptionApi.js +6 -0
- package/lib/commonjs/module/subscription/AffiseModuleSubscriptionApi.js.map +1 -0
- package/lib/commonjs/module/subscription/AffiseSubscription.js +36 -0
- package/lib/commonjs/module/subscription/AffiseSubscription.js.map +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +9 -0
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/native/data/DataName.js +2 -0
- package/lib/commonjs/native/data/DataName.js.map +1 -1
- package/lib/commonjs/parameters/ProviderType.js +1 -0
- package/lib/commonjs/parameters/ProviderType.js.map +1 -1
- package/lib/commonjs/settings/AffiseConfig.js +12 -0
- package/lib/commonjs/settings/AffiseConfig.js.map +1 -0
- package/lib/commonjs/settings/AffiseSettings.js +27 -5
- package/lib/commonjs/settings/AffiseSettings.js.map +1 -1
- package/lib/commonjs/settings/AffiseSettingsApi.js +6 -0
- package/lib/commonjs/settings/AffiseSettingsApi.js.map +1 -0
- package/lib/module/AffiseInitProperties.js +4 -1
- package/lib/module/AffiseInitProperties.js.map +1 -1
- package/lib/module/Export.js +2 -1
- package/lib/module/Export.js.map +1 -1
- package/lib/module/debug/AffiseDebug.js +42 -0
- package/lib/module/debug/AffiseDebug.js.map +1 -0
- package/lib/module/debug/AffiseDebugApi.js +2 -0
- package/lib/module/debug/AffiseDebugApi.js.map +1 -0
- package/lib/module/debug/internal.js +3 -0
- package/lib/module/debug/internal.js.map +1 -0
- package/lib/module/index.js +14 -139
- package/lib/module/index.js.map +1 -1
- package/lib/module/module/AffiseModules.js +2 -0
- package/lib/module/module/AffiseModules.js.map +1 -1
- package/lib/module/module/appsflyer/AffiseAppsFlyer.js +19 -0
- package/lib/module/module/appsflyer/AffiseAppsFlyer.js.map +1 -0
- package/lib/module/module/appsflyer/AffiseModuleAppsFlyerApi.js +2 -0
- package/lib/module/module/appsflyer/AffiseModuleAppsFlyerApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseAndroid.js +23 -0
- package/lib/module/module/attribution/AffiseAndroid.js.map +1 -0
- package/lib/module/module/attribution/AffiseAndroidApi.js +2 -0
- package/lib/module/module/attribution/AffiseAndroidApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseIos.js +43 -0
- package/lib/module/module/attribution/AffiseIos.js.map +1 -0
- package/lib/module/module/attribution/AffiseIosApi.js +2 -0
- package/lib/module/module/attribution/AffiseIosApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseModule.js +74 -0
- package/lib/module/module/attribution/AffiseModule.js.map +1 -0
- package/lib/module/module/attribution/AffiseModuleApi.js +2 -0
- package/lib/module/module/attribution/AffiseModuleApi.js.map +1 -0
- package/lib/module/module/internal.js +7 -0
- package/lib/module/module/internal.js.map +1 -0
- package/lib/module/module/link/AffiseLink.js +19 -0
- package/lib/module/module/link/AffiseLink.js.map +1 -0
- package/lib/module/module/link/AffiseModuleLinkApi.js +2 -0
- package/lib/module/module/link/AffiseModuleLinkApi.js.map +1 -0
- package/lib/module/module/subscription/AffiseModuleSubscriptionApi.js +2 -0
- package/lib/module/module/subscription/AffiseModuleSubscriptionApi.js.map +1 -0
- package/lib/module/module/subscription/AffiseSubscription.js +29 -0
- package/lib/module/module/subscription/AffiseSubscription.js.map +1 -0
- package/lib/module/native/AffiseApiMethod.js +1 -0
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +9 -0
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/native/data/DataName.js +2 -0
- package/lib/module/native/data/DataName.js.map +1 -1
- package/lib/module/parameters/ProviderType.js +1 -0
- package/lib/module/parameters/ProviderType.js.map +1 -1
- package/lib/module/settings/AffiseConfig.js +5 -0
- package/lib/module/settings/AffiseConfig.js.map +1 -0
- package/lib/module/settings/AffiseSettings.js +29 -6
- package/lib/module/settings/AffiseSettings.js.map +1 -1
- package/lib/module/settings/AffiseSettingsApi.js +2 -0
- package/lib/module/settings/AffiseSettingsApi.js.map +1 -0
- package/lib/typescript/AffiseInitProperties.d.ts +4 -1
- package/lib/typescript/AffiseInitProperties.d.ts.map +1 -1
- package/lib/typescript/Export.d.ts +2 -1
- package/lib/typescript/Export.d.ts.map +1 -1
- package/lib/typescript/debug/AffiseDebug.d.ts +29 -0
- package/lib/typescript/debug/AffiseDebug.d.ts.map +1 -0
- package/lib/typescript/debug/AffiseDebugApi.d.ts +25 -0
- package/lib/typescript/debug/AffiseDebugApi.d.ts.map +1 -0
- package/lib/typescript/debug/internal.d.ts +3 -0
- package/lib/typescript/debug/internal.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +10 -93
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/module/AffiseModules.d.ts +2 -0
- package/lib/typescript/module/AffiseModules.d.ts.map +1 -1
- package/lib/typescript/module/appsflyer/AffiseAppsFlyer.d.ts +13 -0
- package/lib/typescript/module/appsflyer/AffiseAppsFlyer.d.ts.map +1 -0
- package/lib/typescript/module/appsflyer/AffiseModuleAppsFlyerApi.d.ts +9 -0
- package/lib/typescript/module/appsflyer/AffiseModuleAppsFlyerApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseAndroid.d.ts +12 -0
- package/lib/typescript/module/attribution/AffiseAndroid.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseAndroidApi.d.ts +8 -0
- package/lib/typescript/module/attribution/AffiseAndroidApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseIos.d.ts +29 -0
- package/lib/typescript/module/attribution/AffiseIos.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseIosApi.d.ts +25 -0
- package/lib/typescript/module/attribution/AffiseIosApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseModule.d.ts +58 -0
- package/lib/typescript/module/attribution/AffiseModule.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts +54 -0
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts.map +1 -0
- package/lib/typescript/module/internal.d.ts +7 -0
- package/lib/typescript/module/internal.d.ts.map +1 -0
- package/lib/typescript/module/link/AffiseLink.d.ts +14 -0
- package/lib/typescript/module/link/AffiseLink.d.ts.map +1 -0
- package/lib/typescript/module/link/AffiseModuleLinkApi.d.ts +10 -0
- package/lib/typescript/module/link/AffiseModuleLinkApi.d.ts.map +1 -0
- package/lib/typescript/module/subscription/AffiseModuleSubscriptionApi.d.ts +21 -0
- package/lib/typescript/module/subscription/AffiseModuleSubscriptionApi.d.ts.map +1 -0
- package/lib/typescript/module/subscription/AffiseSubscription.d.ts +25 -0
- package/lib/typescript/module/subscription/AffiseSubscription.d.ts.map +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
- package/lib/typescript/native/AffiseNative.d.ts +1 -0
- package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
- package/lib/typescript/native/data/DataName.d.ts +2 -0
- package/lib/typescript/native/data/DataName.d.ts.map +1 -1
- package/lib/typescript/parameters/ProviderType.d.ts +1 -0
- package/lib/typescript/parameters/ProviderType.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseConfig.d.ts +4 -0
- package/lib/typescript/settings/AffiseConfig.d.ts.map +1 -0
- package/lib/typescript/settings/AffiseSettings.d.ts +22 -9
- package/lib/typescript/settings/AffiseSettings.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseSettingsApi.d.ts +67 -0
- package/lib/typescript/settings/AffiseSettingsApi.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/AffiseInitProperties.ts +6 -1
- package/src/Export.ts +4 -3
- package/src/debug/AffiseDebug.ts +45 -0
- package/src/debug/AffiseDebugApi.ts +29 -0
- package/src/debug/internal.ts +2 -0
- package/src/index.ts +29 -152
- package/src/module/AffiseModules.ts +2 -0
- package/src/module/appsflyer/AffiseAppsFlyer.ts +19 -0
- package/src/module/appsflyer/AffiseModuleAppsFlyerApi.ts +8 -0
- package/src/module/attribution/AffiseAndroid.ts +25 -0
- package/src/module/attribution/AffiseAndroidApi.ts +8 -0
- package/src/module/attribution/AffiseIos.ts +48 -0
- package/src/module/attribution/AffiseIosApi.ts +28 -0
- package/src/module/attribution/AffiseModule.ts +86 -0
- package/src/module/attribution/AffiseModuleApi.ts +61 -0
- package/src/module/internal.ts +8 -0
- package/src/module/link/AffiseLink.ts +20 -0
- package/src/module/link/AffiseModuleLinkApi.ts +10 -0
- package/src/module/subscription/AffiseModuleSubscriptionApi.ts +22 -0
- package/src/module/subscription/AffiseSubscription.ts +34 -0
- package/src/native/AffiseApiMethod.ts +2 -0
- package/src/native/AffiseNative.ts +9 -0
- package/src/native/data/DataName.ts +3 -0
- package/src/parameters/ProviderType.ts +3 -0
- package/src/settings/AffiseConfig.ts +3 -0
- package/src/settings/AffiseSettings.ts +36 -13
- package/src/settings/AffiseSettingsApi.ts +84 -0
|
@@ -18,7 +18,8 @@ class AffiseSettings {
|
|
|
18
18
|
* @param affiseAppId - your app id
|
|
19
19
|
* @param secretKey - your SDK secretKey
|
|
20
20
|
*/
|
|
21
|
-
constructor(affiseAppId, secretKey) {
|
|
21
|
+
constructor(native, affiseAppId, secretKey) {
|
|
22
|
+
_defineProperty(this, "native", void 0);
|
|
22
23
|
_defineProperty(this, "affiseAppId", void 0);
|
|
23
24
|
_defineProperty(this, "secretKey", void 0);
|
|
24
25
|
_defineProperty(this, "isProduction", true);
|
|
@@ -28,6 +29,8 @@ class AffiseSettings {
|
|
|
28
29
|
_defineProperty(this, "domain", null);
|
|
29
30
|
_defineProperty(this, "onInitSuccessHandler", null);
|
|
30
31
|
_defineProperty(this, "onInitErrorHandler", null);
|
|
32
|
+
_defineProperty(this, "configValues", {});
|
|
33
|
+
this.native = native;
|
|
31
34
|
this.affiseAppId = affiseAppId;
|
|
32
35
|
this.secretKey = secretKey;
|
|
33
36
|
}
|
|
@@ -88,7 +91,7 @@ class AffiseSettings {
|
|
|
88
91
|
*
|
|
89
92
|
* @param autoCatchingClickEvents
|
|
90
93
|
*/
|
|
91
|
-
// setAutoCatchingClickEvents(autoCatchingClickEvents: AutoCatchingType[]):
|
|
94
|
+
// setAutoCatchingClickEvents(autoCatchingClickEvents: AutoCatchingType[]): AffiseSettingsApi {
|
|
92
95
|
// this.autoCatchingClickEvents = autoCatchingClickEvents;
|
|
93
96
|
// return this;
|
|
94
97
|
// }
|
|
@@ -98,7 +101,7 @@ class AffiseSettings {
|
|
|
98
101
|
*
|
|
99
102
|
* @param enable
|
|
100
103
|
*/
|
|
101
|
-
// setEnabledMetrics(enable: boolean):
|
|
104
|
+
// setEnabledMetrics(enable: boolean): AffiseSettingsApi {
|
|
102
105
|
// this.enabledMetrics = enable;
|
|
103
106
|
// return this;
|
|
104
107
|
// }
|
|
@@ -118,6 +121,24 @@ class AffiseSettings {
|
|
|
118
121
|
this.onInitErrorHandler = onInitErrorHandler;
|
|
119
122
|
return this;
|
|
120
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Set configValue
|
|
126
|
+
*/
|
|
127
|
+
setConfigValue(key, value) {
|
|
128
|
+
this.configValues[key] = value;
|
|
129
|
+
return this;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Set configValue
|
|
134
|
+
*/
|
|
135
|
+
setConfigValues(values) {
|
|
136
|
+
Object.entries(values).forEach(_ref => {
|
|
137
|
+
let [key, value] = _ref;
|
|
138
|
+
this.configValues[key] = value;
|
|
139
|
+
});
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
121
142
|
getInitProperties() {
|
|
122
143
|
return new _index.AffiseInitProperties({
|
|
123
144
|
affiseAppId: this.affiseAppId,
|
|
@@ -130,7 +151,8 @@ class AffiseSettings {
|
|
|
130
151
|
// autoCatchingClickEvents: this.autoCatchingClickEvents,
|
|
131
152
|
domain: this.domain,
|
|
132
153
|
onInitSuccessHandler: this.onInitSuccessHandler,
|
|
133
|
-
onInitErrorHandler: this.onInitErrorHandler
|
|
154
|
+
onInitErrorHandler: this.onInitErrorHandler,
|
|
155
|
+
configStrings: this.configValues
|
|
134
156
|
});
|
|
135
157
|
}
|
|
136
158
|
|
|
@@ -138,7 +160,7 @@ class AffiseSettings {
|
|
|
138
160
|
* Starts Affise SDK
|
|
139
161
|
*/
|
|
140
162
|
start() {
|
|
141
|
-
|
|
163
|
+
this.native.init(this.getInitProperties());
|
|
142
164
|
}
|
|
143
165
|
}
|
|
144
166
|
exports.AffiseSettings = AffiseSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseSettings","constructor","affiseAppId","secretKey","setProduction","production","isProduction","setDomain","domain","setPartParamName","partParamName","setPartParamNameToken","partParamNameToken","setAppToken","appToken","setOnInitSuccess","onInitSuccessHandler","setOnInitError","onInitErrorHandler","getInitProperties","AffiseInitProperties","start","
|
|
1
|
+
{"version":3,"names":["AffiseSettings","constructor","native","affiseAppId","secretKey","setProduction","production","isProduction","setDomain","domain","setPartParamName","partParamName","setPartParamNameToken","partParamNameToken","setAppToken","appToken","setOnInitSuccess","onInitSuccessHandler","setOnInitError","onInitErrorHandler","setConfigValue","key","value","configValues","setConfigValues","values","Object","entries","forEach","getInitProperties","AffiseInitProperties","configStrings","start","init"],"sourceRoot":"../../src","sources":["AffiseSettings.ts"],"mappings":";;;;;;AACA;AAIkB;AAAA;AAAA;AAMX,MAAMA,cAAc,CAA8B;EAQrD;EACA;;EAMA;AACJ;AACA;AACA;AACA;AACA;E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AsC,EAAqB;IACtE,IAAI,CAACA,kBAAkB,GAAGA,kBAAkB;IAC5C,OAAO,IAAI;EACf;EACA;AACJ;AACA;EACIC,cAAc,CAACC,GAAiB,EAAEC,KAAU,EAAqB;IAC7D,IAAI,CAACC,YAAY,CAACF,GAAG,CAAC,GAAGC,KAAK;IAC9B,OAAO,IAAI;EACf;;EAEA;AACJ;AACA;EACIE,eAAe,CAACC,MAAiC,EAAqB;IAClEC,MAAM,CAACC,OAAO,CAACF,MAAM,CAAC,CAACG,OAAO,CAAC,QAAkB;MAAA,IAAjB,CAACP,GAAG,EAAEC,KAAK,CAAC;MACxC,IAAI,CAACC,YAAY,CAACF,GAAG,CAAC,GAAGC,KAAK;IAClC,CAAC,CAAC;IACF,OAAO,IAAI;EACf;EAEQO,iBAAiB,GAAyB;IAC9C,OAAO,IAAIC,2BAAoB,CAAC;MAC5B3B,WAAW,EAAE,IAAI,CAACA,WAAW;MAC7BC,SAAS,EAAE,IAAI,CAACA,SAAS;MACzBG,YAAY,EAAE,IAAI,CAACA,YAAY;MAC/BI,aAAa,EAAE,IAAI,CAACA,aAAa;MACjCE,kBAAkB,EAAE,IAAI,CAACA,kBAAkB;MAC3CE,QAAQ,EAAE,IAAI,CAACA,QAAQ;MACvB;MACA;MACAN,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBQ,oBAAoB,EAAE,IAAI,CAACA,oBAAoB;MAC/CE,kBAAkB,EAAE,IAAI,CAACA,kBAAkB;MAC3CY,aAAa,EAAE,IAAI,CAACR;IACxB,CAAC,CAAC;EACN;;EAEA;AACJ;AACA;EACIS,KAAK,GAAG;IACJ,IAAI,CAAC9B,MAAM,CAAC+B,IAAI,CAAC,IAAI,CAACJ,iBAAiB,EAAE,CAAC;EAC9C;AACJ;AAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseSettingsApi.ts"],"mappings":""}
|
|
@@ -14,7 +14,8 @@ export class AffiseInitProperties {
|
|
|
14
14
|
// autoCatchingClickEvents,
|
|
15
15
|
domain,
|
|
16
16
|
onInitSuccessHandler,
|
|
17
|
-
onInitErrorHandler
|
|
17
|
+
onInitErrorHandler,
|
|
18
|
+
configStrings: configValues
|
|
18
19
|
} = _ref;
|
|
19
20
|
_defineProperty(this, "affiseAppId", void 0);
|
|
20
21
|
_defineProperty(this, "secretKey", void 0);
|
|
@@ -27,6 +28,7 @@ export class AffiseInitProperties {
|
|
|
27
28
|
_defineProperty(this, "domain", null);
|
|
28
29
|
_defineProperty(this, "onInitSuccessHandler", null);
|
|
29
30
|
_defineProperty(this, "onInitErrorHandler", null);
|
|
31
|
+
_defineProperty(this, "configStrings", {});
|
|
30
32
|
this.affiseAppId = affiseAppId;
|
|
31
33
|
this.secretKey = secretKey;
|
|
32
34
|
this.partParamName = partParamName || null;
|
|
@@ -36,6 +38,7 @@ export class AffiseInitProperties {
|
|
|
36
38
|
this.domain = domain || null;
|
|
37
39
|
this.onInitSuccessHandler = onInitSuccessHandler || null;
|
|
38
40
|
this.onInitErrorHandler = onInitErrorHandler || null;
|
|
41
|
+
this.configStrings = configValues || {};
|
|
39
42
|
if (isProduction != null) {
|
|
40
43
|
this.isProduction = isProduction;
|
|
41
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseInitProperties","constructor","affiseAppId","secretKey","isProduction","partParamName","partParamNameToken","appToken","domain","onInitSuccessHandler","onInitErrorHandler","isAffiseInitPropertiesType","obj"],"sourceRoot":"../../src","sources":["AffiseInitProperties.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"names":["AffiseInitProperties","constructor","affiseAppId","secretKey","isProduction","partParamName","partParamNameToken","appToken","domain","onInitSuccessHandler","onInitErrorHandler","configStrings","configValues","isAffiseInitPropertiesType","obj"],"sourceRoot":"../../src","sources":["AffiseInitProperties.ts"],"mappings":";;;AA6BA,OAAO,MAAMA,oBAAoB,CAAC;EAc9BC,WAAW,OAeT;IAAA,IAdE;MACIC,WAAW;MACXC,SAAS;MACTC,YAAY;MACZC,aAAa;MACbC,kBAAkB;MAClBC,QAAQ;MACR;MACA;MACAC,MAAM;MACNC,oBAAoB;MACpBC,kBAAkB;MAClBC,aAAa,EAAEC;IACO,CAAC;IAAA;IAAA;IAAA,sCAzBP,IAAI;IAAA,uCACI,IAAI;IAAA,4CACC,IAAI;IAAA,kCACd,IAAI;IAAA,wCACL,KAAK;IAAA,iDACgB,EAAE;IAAA,gCACxB,IAAI;IAAA,8CACwB,IAAI;IAAA,4CACR,IAAI;IAAA,uCAChB,CAAC,CAAC;IAkBnC,IAAI,CAACV,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,SAAS,GAAGA,SAAS;IAE1B,IAAI,CAACE,aAAa,GAAGA,aAAa,IAAI,IAAI;IAC1C,IAAI,CAACC,kBAAkB,GAAGA,kBAAkB,IAAI,IAAI;IACpD,IAAI,CAACC,QAAQ,GAAGA,QAAQ,IAAI,IAAI;IAChC;IACA,IAAI,CAACC,MAAM,GAAGA,MAAM,IAAI,IAAI;IAC5B,IAAI,CAACC,oBAAoB,GAAGA,oBAAoB,IAAI,IAAI;IACxD,IAAI,CAACC,kBAAkB,GAAGA,kBAAkB,IAAI,IAAI;IACpD,IAAI,CAACC,aAAa,GAAGC,YAAY,IAAI,CAAC,CAAC;IAEvC,IAAIR,YAAY,IAAI,IAAI,EAAE;MACtB,IAAI,CAACA,YAAY,GAAGA,YAAY;IACpC;IACA;IACA;IACA;EACJ;AACJ;;AAEA,OAAO,SAASS,0BAA0B,CAACC,GAAQ,EAAmC;EAClF,IAAIA,GAAG,EAA8B;IACjC,OAAO,IAAI;EACf;EACA,OAAO,KAAK;AAChB"}
|
package/lib/module/Export.js
CHANGED
|
@@ -12,7 +12,8 @@ export * from './network/HttpRequest';
|
|
|
12
12
|
export * from './network/HttpMethod';
|
|
13
13
|
export * from './referrer/ReferrerKey';
|
|
14
14
|
export * from './referrer/ReferrerCallback';
|
|
15
|
-
export * from './settings/
|
|
15
|
+
export * from './settings/AffiseSettingsApi';
|
|
16
|
+
export * from './settings/AffiseConfig';
|
|
16
17
|
export * from './settings/OnInitErrorHandler';
|
|
17
18
|
export * from './settings/OnInitSuccessHandler';
|
|
18
19
|
export * from './skad/SKAdNetwork';
|
package/lib/module/Export.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["Export.ts"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,2BAA2B;AACzC,cAAc,oBAAoB;AAElC,cAAc,0BAA0B;AAExC,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AAExC,cAAc,wCAAwC;AACtD,cAAc,0CAA0C;AACxD,cAAc,mCAAmC;AAEjD,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AAEpC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAE3C,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["Export.ts"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,2BAA2B;AACzC,cAAc,oBAAoB;AAElC,cAAc,0BAA0B;AAExC,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AAExC,cAAc,wCAAwC;AACtD,cAAc,0CAA0C;AACxD,cAAc,mCAAmC;AAEjD,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AAEpC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAE3C,cAAc,8BAA8B;AAC5C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAE/C,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAElC,cAAc,wBAAwB;AACtC,cAAc,yBAAyB;AACvC,cAAc,uBAAuB;AACrC,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,qCAAqC;AACnD,cAAc,0CAA0C;AACxD,cAAc,4CAA4C;AA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gC;AAC9C,cAAc,qDAAqD;AACnE,cAAc,sCAAsC;AACpD,cAAc,gCAAgC;AAC9C,cAAc,yCAAyC;AACvD,cAAc,0CAA0C;AACxD,cAAc,mDAAmD;AACjE,cAAc,6CAA6C;AAC3D,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,mCAAmC;AACjD,cAAc,iCAAiC;AAC/C,cAAc,gCAAgC;AAC9C,cAAc,uCAAuC;AACrD,cAAc,4CAA4C;AAC1D,cAAc,qCAAqC;AACnD,cAAc,wCAAwC;AACtD,cAAc,4CAA4C;AAC1D,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AACtD,cAAc,4CAA4C;AAC1D,cAAc,sCAAsC;AACpD,cAAc,iCAAiC;AAC/C,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,sCAAsC;AACpD,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,gDAAgD;AAC9D,cAAc,yCAAyC;AACvD,cAAc,yCAAyC;AACvD,cAAc,wCAAwC;AACtD,cAAc,2CAA2C;AACzD,cAAc,iDAAiD;AAC/D,cAAc,iDAAiD;AAC/D,cAAc,wDAAwD;AACtE,cAAc,yCAAyC;AACvD,cAAc,yCAAyC;AACvD,cAAc,gDAAgD;AAC9D,cAAc,+CAA+C;AAC7D,cAAc,2CAA2C;AACzD,cAAc,2CAA2C;AACzD,cAAc,oDAAoD;AAClE,cAAc,gDAAgD;AAC9D,cAAc,oDAAoD;AAClE,cAAc,oDAAoD;AAClE,cAAc,yDAAyD;AACvE,cAAc,2CAA2C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class AffiseDebug {
|
|
5
|
+
constructor(native) {
|
|
6
|
+
_defineProperty(this, "native", void 0);
|
|
7
|
+
this.native = native;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Won't work on Production
|
|
12
|
+
*
|
|
13
|
+
* Validate credentials
|
|
14
|
+
*/
|
|
15
|
+
validate(callback) {
|
|
16
|
+
this.native.validate(callback);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Won't work on Production
|
|
21
|
+
*
|
|
22
|
+
* Show request/response data
|
|
23
|
+
*/
|
|
24
|
+
network(callback) {
|
|
25
|
+
this.native.network(callback);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Debug get version of flutter library
|
|
30
|
+
*/
|
|
31
|
+
version() {
|
|
32
|
+
return "1.6.35";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Debug get version of native library Android/iOS
|
|
37
|
+
*/
|
|
38
|
+
versionNative() {
|
|
39
|
+
return this.native.versionNative();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=AffiseDebug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseDebug","constructor","native","validate","callback","network","version","versionNative"],"sourceRoot":"../../src","sources":["AffiseDebug.ts"],"mappings":";;;AAMA,OAAO,MAAMA,WAAW,CAA2B;EAG/CC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;AACA;EACIC,QAAQ,CAACC,QAAiC,EAAE;IACxC,IAAI,CAACF,MAAM,CAACC,QAAQ,CAACC,QAAQ,CAAC;EAClC;;EAEA;AACJ;AACA;AACA;AACA;EACIC,OAAO,CAACD,QAAgC,EAAE;IACtC,IAAI,CAACF,MAAM,CAACG,OAAO,CAACD,QAAQ,CAAC;EACjC;;EAEA;AACJ;AACA;EACIE,OAAO,GAAW;IACd,OAAO,QAAQ;EACnB;;EAEA;AACJ;AACA;EACIC,aAAa,GAAoB;IAC7B,OAAO,IAAI,CAACL,MAAM,CAACK,aAAa,EAAE;EACtC;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseDebugApi.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["internal.ts"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,eAAe"}
|
package/lib/module/index.js
CHANGED
|
@@ -2,8 +2,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
2
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
3
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
import { AffiseNative } from "./native/AffiseNative";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { AffiseSettings } from "./settings/AffiseSettings";
|
|
6
|
+
import { AffiseDebug } from "./debug/internal";
|
|
7
|
+
import { AffiseModule, AffiseIos, AffiseAndroid } from "./module/internal";
|
|
7
8
|
export * from "./Export";
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -22,11 +23,11 @@ export class Affise {
|
|
|
22
23
|
affiseAppId,
|
|
23
24
|
secretKey
|
|
24
25
|
} = _ref;
|
|
25
|
-
return new AffiseSettings(affiseAppId, secretKey);
|
|
26
|
+
return new AffiseSettings(this.native, affiseAppId, secretKey);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
* Use Affise.settings({affiseAppId, secretKey}).start()
|
|
30
|
+
* @deprecated Use Affise.settings({affiseAppId, secretKey}).start()
|
|
30
31
|
* @param initProperties
|
|
31
32
|
*/
|
|
32
33
|
static start(initProperties) {
|
|
@@ -140,7 +141,7 @@ export class Affise {
|
|
|
140
141
|
* @param callback status response
|
|
141
142
|
*/
|
|
142
143
|
static getStatus(module, callback) {
|
|
143
|
-
|
|
144
|
+
this.module.getStatus(module, callback);
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
/**
|
|
@@ -149,7 +150,7 @@ export class Affise {
|
|
|
149
150
|
* @param module module name
|
|
150
151
|
*/
|
|
151
152
|
static moduleStart(module) {
|
|
152
|
-
return
|
|
153
|
+
return this.module.moduleStart(module);
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
/**
|
|
@@ -157,7 +158,7 @@ export class Affise {
|
|
|
157
158
|
* Get installed modules
|
|
158
159
|
*/
|
|
159
160
|
static getModulesInstalled() {
|
|
160
|
-
return
|
|
161
|
+
return this.module.getModulesInstalled();
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
/**
|
|
@@ -223,7 +224,7 @@ export class Affise {
|
|
|
223
224
|
* Get referrer on server
|
|
224
225
|
*/
|
|
225
226
|
static getReferrerOnServer(callback) {
|
|
226
|
-
|
|
227
|
+
this.getDeferredDeeplink(callback);
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
/**
|
|
@@ -231,7 +232,7 @@ export class Affise {
|
|
|
231
232
|
* Get referrer on server value
|
|
232
233
|
*/
|
|
233
234
|
static getReferrerOnServerValue(key, callback) {
|
|
234
|
-
|
|
235
|
+
this.getDeferredDeeplinkValue(key, callback);
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
/**
|
|
@@ -259,134 +260,8 @@ export class Affise {
|
|
|
259
260
|
// }
|
|
260
261
|
}
|
|
261
262
|
_defineProperty(Affise, "native", new AffiseNative());
|
|
262
|
-
_defineProperty(Affise, "android",
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
static forget(userData) {
|
|
267
|
-
Affise.native.forget(userData);
|
|
268
|
-
}
|
|
269
|
-
static crashApplication() {
|
|
270
|
-
Affise.native.crashApplication();
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
_defineProperty(Affise, "ios", class {
|
|
274
|
-
/**
|
|
275
|
-
* SKAd register app
|
|
276
|
-
*/
|
|
277
|
-
static registerAppForAdNetworkAttribution(completionHandler) {
|
|
278
|
-
if (Platform.OS !== 'ios') return;
|
|
279
|
-
Affise.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* SKAd updatePostbackConversionValue
|
|
284
|
-
*/
|
|
285
|
-
static updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
286
|
-
if (Platform.OS !== 'ios') return;
|
|
287
|
-
Affise.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
292
|
-
* Get referrer on server
|
|
293
|
-
*/
|
|
294
|
-
static getReferrerOnServer(callback) {
|
|
295
|
-
Affise.native.getDeferredDeeplink(callback);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
300
|
-
* Get referrer on server value
|
|
301
|
-
*/
|
|
302
|
-
static getReferrerOnServerValue(key, callback) {
|
|
303
|
-
Affise.native.getDeferredDeeplinkValue(key, callback);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
_defineProperty(Affise, "module", class {
|
|
307
|
-
/**
|
|
308
|
-
* Get module status
|
|
309
|
-
* @param module module name
|
|
310
|
-
* @param callback status response
|
|
311
|
-
*/
|
|
312
|
-
static getStatus(module, callback) {
|
|
313
|
-
Affise.native.getStatus(module, callback);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Manual module start
|
|
318
|
-
* @param module module name
|
|
319
|
-
*/
|
|
320
|
-
static moduleStart(module) {
|
|
321
|
-
return Affise.native.moduleStart(module);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Get installed modules
|
|
326
|
-
*/
|
|
327
|
-
static getModulesInstalled() {
|
|
328
|
-
return Affise.native.getModulesInstalled();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Module Link url Resolve
|
|
333
|
-
* @param url url
|
|
334
|
-
* @param callback redirected url
|
|
335
|
-
*/
|
|
336
|
-
static linkResolve(url, callback) {
|
|
337
|
-
Affise.native.linkResolve(url, callback);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Module subscription fetchProducts
|
|
342
|
-
* @param ids list of product ids
|
|
343
|
-
* @param callback result callback
|
|
344
|
-
*/
|
|
345
|
-
static fetchProducts(ids, callback) {
|
|
346
|
-
Affise.native.fetchProducts(ids, callback);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Module subscription purchase
|
|
351
|
-
* @param product product
|
|
352
|
-
* @param type product type
|
|
353
|
-
* @param callback result callback
|
|
354
|
-
*/
|
|
355
|
-
static purchase(product, type, callback) {
|
|
356
|
-
Affise.native.purchase(product, type, callback);
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
_defineProperty(Affise, "debug", class {
|
|
360
|
-
/**
|
|
361
|
-
* Won't work on Production
|
|
362
|
-
*
|
|
363
|
-
* Validate credentials
|
|
364
|
-
*/
|
|
365
|
-
static validate(callback) {
|
|
366
|
-
Affise.native.validate(callback);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Won't work on Production
|
|
371
|
-
*
|
|
372
|
-
* Show request/response data
|
|
373
|
-
*/
|
|
374
|
-
static network(callback) {
|
|
375
|
-
Affise.native.network(callback);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Debug get version of flutter library
|
|
380
|
-
*/
|
|
381
|
-
static version() {
|
|
382
|
-
return "1.6.33";
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Debug get version of native library Android/iOS
|
|
387
|
-
*/
|
|
388
|
-
static versionNative() {
|
|
389
|
-
return Affise.native.versionNative();
|
|
390
|
-
}
|
|
391
|
-
});
|
|
263
|
+
_defineProperty(Affise, "android", new AffiseAndroid(Affise.native));
|
|
264
|
+
_defineProperty(Affise, "ios", new AffiseIos(Affise.native));
|
|
265
|
+
_defineProperty(Affise, "module", new AffiseModule(Affise.native));
|
|
266
|
+
_defineProperty(Affise, "debug", new AffiseDebug(Affise.native));
|
|
392
267
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseNative","
|
|
1
|
+
{"version":3,"names":["AffiseNative","AffiseSettings","AffiseDebug","AffiseModule","AffiseIos","AffiseAndroid","Affise","settings","affiseAppId","secretKey","native","start","initProperties","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","registerDeeplinkCallback","callback","setSecretKey","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","moduleStart","getModulesInstalled","getRandomUserId","getRandomDeviceId","getProviders","isFirstRun","getReferrer","getReferrerUrl","getReferrerValue","key","getReferrerUrlValue","getReferrerOnServer","getDeferredDeeplink","getReferrerOnServerValue","getDeferredDeeplinkValue"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;AAaA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,SAASC,cAAc,QAAQ,2BAA2B;AAE1D,SACIC,WAAW,QAER,kBAAkB;AACzB,SAEIC,YAAY,EACZC,SAAS,EAETC,aAAa,QAEV,mBAAmB;AAE1B,cAAc,UAAU;;AAExB;AACA;AACA;AACA,OAAO,MAAMC,MAAM,CAAC;EAIhB;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,OAAOC,QAAQ,OAA0F;IAAA,IAAzF;MAACC,WAAW;MAAEC;IAAqD,CAAC;IAChF,OAAO,IAAIR,cAAc,CAAC,IAAI,CAACS,MAAM,EAAEF,WAAW,EAAEC,SAAS,CAAC;EAClE;;EAEA;AACJ;AACA;AACA;EACI,OAAOE,KAAK,CACRC,cAA+D,EACjE;IACE,IAAI,CAACF,MAAM,CAACG,IAAI,CAACD,cAAc,CAAC;EACpC;;EAEA;AACJ;AACA;AACA;EACI,OAAOE,aAAa,GAAqB;IACrC,OAAO,IAAI,CAACJ,MAAM,CAACI,aAAa,EAAE;EACtC;;EAEA;AACJ;AACA;EACI,OAAOC,SAAS,CAACC,KAAkB,EAAE;IACjC,IAAI,CAACN,MAAM,CAACK,SAAS,CAACC,KAAK,CAAC;EAChC;;EAEA;AACJ;AACA;EACI,OAAOC,YAAY,CAACD,KAAkB,EAAEE,OAA8B,EAAEC,MAA4B,EAAE;IAClG,IAAI,CAACT,MAAM,CAACO,YAAY,CAACD,KAAK,EAAEE,OAAO,EAAEC,MAAM,CAAC;EACpD;;EAEA;AACJ;AACA;EACI,OAAOC,YAAY,CAACC,SAAiB,EAAE;IACnC,IAAI,CAACX,MAAM,CAACU,YAAY,CAACC,SAAS,CAAC;EACvC;;EAEA;AACJ;AACA;EACI,OAAOC,wBAAwB,CAACC,QAA4B,EAAE;IAC1D,IAAI,CAACb,MAAM,CAACY,wBAAwB,CAACC,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AI,CAACyB,wBAAwB,CAACL,GAAG,EAAEpB,QAAQ,CAAC;EAChD;;EAEA;AACJ;AACA;EACI,OAAOuB,mBAAmB,CAACvB,QAA0B,EAAE;IACnD,IAAI,CAACb,MAAM,CAACoC,mBAAmB,CAACvB,QAAQ,CAAC;EAC7C;;EAEA;AACJ;AACA;EACI,OAAOyB,wBAAwB,CAACL,GAAgB,EAAEpB,QAA0B,EAAE;IAC1E,IAAI,CAACb,MAAM,CAACsC,wBAAwB,CAACL,GAAG,EAAEpB,QAAQ,CAAC;EACvD;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACI;EACA;EACA;AAQJ;AAAC,gBAhQYjB,MAAM,YAES,IAAIN,YAAY,EAAE;AAAA,gBAFjCM,MAAM,aA0PoB,IAAID,aAAa,CA1P3CC,MAAM,CA0P2CI,MAAM,CAAC;AAAA,gBA1PxDJ,MAAM,SA2PY,IAAIF,SAAS,CA3P/BE,MAAM,CA2P+BI,MAAM,CAAC;AAAA,gBA3P5CJ,MAAM,YA6PkB,IAAIH,YAAY,CA7PxCG,MAAM,CA6PwCI,MAAM,CAAC;AAAA,gBA7PrDJ,MAAM,WA+PgB,IAAIJ,WAAW,CA/PrCI,MAAM,CA+PqCI,MAAM,CAAC"}
|
|
@@ -2,7 +2,9 @@ export let AffiseModules;
|
|
|
2
2
|
(function (AffiseModules) {
|
|
3
3
|
AffiseModules["ADVERTISING"] = "Advertising";
|
|
4
4
|
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
5
|
+
AffiseModules["APPSFLYER"] = "AppsFlyer";
|
|
5
6
|
AffiseModules["LINK"] = "Link";
|
|
7
|
+
AffiseModules["META"] = "Meta";
|
|
6
8
|
AffiseModules["NETWORK"] = "Network";
|
|
7
9
|
AffiseModules["PERSISTENT"] = "Persistent";
|
|
8
10
|
AffiseModules["PHONE"] = "Phone";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;AAaxB,WAbWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class AffiseAppsFlyer {
|
|
5
|
+
constructor(native) {
|
|
6
|
+
_defineProperty(this, "native", void 0);
|
|
7
|
+
this.native = native;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Send Appflyer event data to affise
|
|
12
|
+
* @param eventName event name
|
|
13
|
+
* @param eventValues event data
|
|
14
|
+
*/
|
|
15
|
+
logEvent(eventName, eventValues) {
|
|
16
|
+
this.native.logEvent(eventName, eventValues);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=AffiseAppsFlyer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseAppsFlyer","constructor","native","logEvent","eventName","eventValues"],"sourceRoot":"../../src","sources":["AffiseAppsFlyer.ts"],"mappings":";;;AAGA,OAAO,MAAMA,eAAe,CAAqC;EAG7DC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;AACA;EACIC,QAAQ,CAACC,SAAiB,EAAEC,WAAgC,EAAE;IAC1D,IAAI,CAACH,MAAM,CAACC,QAAQ,CAACC,SAAS,EAAEC,WAAW,CAAC;EAChD;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleAppsFlyerApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
import { Platform } from "react-native";
|
|
5
|
+
export class AffiseAndroid {
|
|
6
|
+
constructor(native) {
|
|
7
|
+
_defineProperty(this, "native", void 0);
|
|
8
|
+
this.native = native;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Erases all user data from mobile and sends [GDPREvent]
|
|
13
|
+
*/
|
|
14
|
+
forget(userData) {
|
|
15
|
+
if (Platform.OS !== 'android') return;
|
|
16
|
+
this.native.forget(userData);
|
|
17
|
+
}
|
|
18
|
+
crashApplication() {
|
|
19
|
+
if (Platform.OS !== 'android') return;
|
|
20
|
+
this.native.crashApplication();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=AffiseAndroid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","AffiseAndroid","constructor","native","forget","userData","OS","crashApplication"],"sourceRoot":"../../src","sources":["AffiseAndroid.ts"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,OAAO,MAAMC,aAAa,CAA6B;EAInDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;EACIC,MAAM,CAACC,QAAgB,EAAE;IACrB,IAAIL,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACH,MAAM,CAACC,MAAM,CAACC,QAAQ,CAAC;EAChC;EAEAE,gBAAgB,GAAG;IACf,IAAIP,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACH,MAAM,CAACI,gBAAgB,EAAE;EAClC;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseAndroidApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
import { Platform } from "react-native";
|
|
5
|
+
export class AffiseIos {
|
|
6
|
+
constructor(native) {
|
|
7
|
+
_defineProperty(this, "native", void 0);
|
|
8
|
+
this.native = native;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SKAd register app
|
|
13
|
+
*/
|
|
14
|
+
registerAppForAdNetworkAttribution(completionHandler) {
|
|
15
|
+
if (Platform.OS !== 'ios') return;
|
|
16
|
+
this.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* SKAd updatePostbackConversionValue
|
|
21
|
+
*/
|
|
22
|
+
updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
23
|
+
if (Platform.OS !== 'ios') return;
|
|
24
|
+
this.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
29
|
+
* Get referrer on server
|
|
30
|
+
*/
|
|
31
|
+
getReferrerOnServer(callback) {
|
|
32
|
+
this.native.getDeferredDeeplink(callback);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
37
|
+
* Get referrer on server value
|
|
38
|
+
*/
|
|
39
|
+
getReferrerOnServerValue(key, callback) {
|
|
40
|
+
this.native.getDeferredDeeplinkValue(key, callback);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=AffiseIos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","AffiseIos","constructor","native","registerAppForAdNetworkAttribution","completionHandler","OS","updatePostbackConversionValue","fineValue","coarseValue","getReferrerOnServer","callback","getDeferredDeeplink","getReferrerOnServerValue","key","getDeferredDeeplinkValue"],"sourceRoot":"../../src","sources":["AffiseIos.ts"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAQvC,OAAO,MAAMC,SAAS,CAAyB;EAI3CC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;EACIC,kCAAkC,CAACC,iBAAgC,EAAE;IACjE,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IAC3B,IAAI,CAACH,MAAM,CAACC,kCAAkC,CAACC,iBAAiB,CAAC;EACrE;;EAEA;AACJ;AACA;EACIE,6BAA6B,CAACC,SAAiB,EAAEC,WAAwB,EAAEJ,iBAAgC,EAAE;IACzG,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IAC3B,IAAI,CAACH,MAAM,CAACI,6BAA6B,CAACC,SAAS,EAAEC,WAAW,EAAEJ,iBAAiB,CAAC;EACxF;;EAEA;AACJ;AACA;AACA;EACIK,mBAAmB,CAACC,QAA0B,EAAE;IAC5C,IAAI,CAACR,MAAM,CAACS,mBAAmB,CAACD,QAAQ,CAAC;EAC7C;;EAEA;AACJ;AACA;AACA;EACIE,wBAAwB,CAACC,GAAgB,EAAEH,QAA0B,EAAE;IACnE,IAAI,CAACR,MAAM,CAACY,wBAAwB,CAACD,GAAG,EAAEH,QAAQ,CAAC;EACvD;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseIosApi.ts"],"mappings":""}
|