affise-attribution-lib 1.6.40 → 1.6.41
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 +69 -52
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/affise/attribution/react/AffiseAttributionNativeModule.kt +1 -1
- package/lib/commonjs/AffiseInitProperties.js +4 -1
- package/lib/commonjs/AffiseInitProperties.js.map +1 -1
- package/lib/commonjs/debug/AffiseDebug.js +1 -1
- package/lib/commonjs/index.js +0 -9
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/module/advertising/AffiseAdvertising.js +32 -0
- package/lib/commonjs/module/advertising/AffiseAdvertising.js.map +1 -0
- package/lib/commonjs/module/advertising/AffiseModuleAdvertisingApi.js +6 -0
- package/lib/commonjs/module/advertising/AffiseModuleAdvertisingApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseModule.js +3 -8
- package/lib/commonjs/module/attribution/AffiseModule.js.map +1 -1
- package/lib/commonjs/native/AffiseApiMethod.js +1 -1
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +5 -3
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/native/data/DataName.js +2 -2
- package/lib/commonjs/native/data/DataName.js.map +1 -1
- package/lib/commonjs/settings/AffiseSettings.js +11 -1
- package/lib/commonjs/settings/AffiseSettings.js.map +1 -1
- package/lib/module/AffiseInitProperties.js +4 -1
- package/lib/module/AffiseInitProperties.js.map +1 -1
- package/lib/module/debug/AffiseDebug.js +1 -1
- package/lib/module/index.js +0 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/module/advertising/AffiseAdvertising.js +25 -0
- package/lib/module/module/advertising/AffiseAdvertising.js.map +1 -0
- package/lib/module/module/advertising/AffiseModuleAdvertisingApi.js +2 -0
- package/lib/module/module/advertising/AffiseModuleAdvertisingApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseModule.js +3 -8
- package/lib/module/module/attribution/AffiseModule.js.map +1 -1
- package/lib/module/native/AffiseApiMethod.js +1 -1
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +5 -3
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/native/data/DataName.js +2 -2
- package/lib/module/native/data/DataName.js.map +1 -1
- package/lib/module/settings/AffiseSettings.js +11 -1
- package/lib/module/settings/AffiseSettings.js.map +1 -1
- package/lib/typescript/AffiseInitProperties.d.ts +4 -1
- package/lib/typescript/AffiseInitProperties.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +0 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/module/advertising/AffiseAdvertising.d.ts +13 -0
- package/lib/typescript/module/advertising/AffiseAdvertising.d.ts.map +1 -0
- package/lib/typescript/module/advertising/AffiseModuleAdvertisingApi.d.ts +9 -0
- package/lib/typescript/module/advertising/AffiseModuleAdvertisingApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseModule.d.ts +2 -5
- package/lib/typescript/module/attribution/AffiseModule.d.ts.map +1 -1
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts +2 -5
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts.map +1 -1
- package/lib/typescript/native/AffiseApiMethod.d.ts +2 -2
- package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
- package/lib/typescript/native/AffiseNative.d.ts +1 -1
- package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
- package/lib/typescript/native/data/DataName.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseSettings.d.ts +6 -1
- package/lib/typescript/settings/AffiseSettings.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseSettingsApi.d.ts +5 -1
- package/lib/typescript/settings/AffiseSettingsApi.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AffiseInitProperties.ts +6 -1
- package/src/debug/AffiseDebug.ts +1 -1
- package/src/index.ts +0 -9
- package/src/module/advertising/AffiseAdvertising.ts +26 -0
- package/src/module/advertising/AffiseModuleAdvertisingApi.ts +9 -0
- package/src/module/attribution/AffiseModule.ts +7 -11
- package/src/module/attribution/AffiseModuleApi.ts +4 -8
- package/src/native/AffiseApiMethod.ts +2 -1
- package/src/native/AffiseNative.ts +5 -4
- package/src/native/data/DataName.ts +2 -2
- package/src/settings/AffiseSettings.ts +12 -1
- package/src/settings/AffiseSettingsApi.ts +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiseSettings.d.ts","sourceRoot":"","sources":["../../../src/settings/AffiseSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAEH,YAAY,
|
|
1
|
+
{"version":3,"file":"AffiseSettings.d.ts","sourceRoot":"","sources":["../../../src/settings/AffiseSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAEH,YAAY,EACZ,aAAa,EAEhB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,qBAAa,cAAe,YAAW,iBAAiB;IACpD,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,aAAa,CAAC,CAAuB;IAC7C,OAAO,CAAC,kBAAkB,CAAC,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,CAAuB;IAGxC,OAAO,CAAC,MAAM,CAAC,CAAuB;IACtC,OAAO,CAAC,oBAAoB,CAAC,CAAqC;IAClE,OAAO,CAAC,kBAAkB,CAAC,CAAmC;IAC9D,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,cAAc,CAAuB;IAE7C;;;;;OAKG;gBACS,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAMxE;;;;OAIG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB;IAKrD;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB;IAK5C;;;;OAIG;IACH,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,iBAAiB;IAK1D;;;;OAIG;IACH,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,iBAAiB;IAKpE;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB;IAKhD;;;;OAIG;IAMH;;;;OAIG;IAMH;;OAEG;IACH,gBAAgB,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,iBAAiB;IAK/E;;OAEG;IACH,cAAc,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,iBAAiB;IAIzE;;OAEG;IACH,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,GAAG,iBAAiB;IAKhE;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,GAAG,iBAAiB;IAOrE;;OAEG;IACH,iBAAiB,CAAC,cAAc,EAAE,aAAa,EAAE,GAAG,iBAAiB;IAKrE,OAAO,CAAC,iBAAiB;IAkBzB;;OAEG;IACH,KAAK;CAGR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AffiseConfig } from "../index";
|
|
1
|
+
import type { AffiseConfig, AffiseModules } from "../index";
|
|
2
2
|
import type { OnInitErrorHandler } from "./OnInitErrorHandler";
|
|
3
3
|
import type { OnInitSuccessHandler } from "./OnInitSuccessHandler";
|
|
4
4
|
export interface AffiseSettingsApi {
|
|
@@ -59,6 +59,10 @@ export interface AffiseSettingsApi {
|
|
|
59
59
|
* Set configValue
|
|
60
60
|
*/
|
|
61
61
|
setConfigValues(values: Record<AffiseConfig, any>): AffiseSettingsApi;
|
|
62
|
+
/**
|
|
63
|
+
* Set disableModules
|
|
64
|
+
*/
|
|
65
|
+
setDisableModules(disableModules: AffiseModules[]): AffiseSettingsApi;
|
|
62
66
|
/**
|
|
63
67
|
* Starts Affise SDK
|
|
64
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiseSettingsApi.d.ts","sourceRoot":"","sources":["../../../src/settings/AffiseSettingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,
|
|
1
|
+
{"version":3,"file":"AffiseSettingsApi.d.ts","sourceRoot":"","sources":["../../../src/settings/AffiseSettingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EAEZ,aAAa,EAChB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,iBAAiB;IAE9B;;;;OAIG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAA;IAErD;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAE5C;;;;OAIG;IACH,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAE1D;;;;OAIG;IACH,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAEpE;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAEhD;;;;OAIG;IAGH;;;;OAIG;IAGH;;OAEG;IACH,gBAAgB,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,iBAAiB,CAAA;IAE/E;;OAEG;IACH,cAAc,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,iBAAiB,CAAA;IACzE;;OAEG;IACH,cAAc,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,GAAG,iBAAiB,CAAA;IAEhE;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,GAAG,iBAAiB,CAAA;IAErE;;OAEG;IACH,iBAAiB,CAAC,cAAc,EAAE,aAAa,EAAE,GAAG,iBAAiB,CAAA;IAErE;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {AutoCatchingType} from "./events/AutoCatchingType";
|
|
2
|
+
import { AffiseModules } from "./module/AffiseModules";
|
|
2
3
|
import type { AffiseConfig } from "./settings/AffiseConfig";
|
|
3
4
|
import type { OnInitErrorHandler } from "./settings/OnInitErrorHandler";
|
|
4
5
|
import type { OnInitSuccessHandler } from "./settings/OnInitSuccessHandler";
|
|
@@ -25,6 +26,7 @@ export type AffiseInitPropertiesType = {
|
|
|
25
26
|
onInitSuccessHandler?: OnInitSuccessHandler | null,
|
|
26
27
|
onInitErrorHandler?: OnInitErrorHandler | null,
|
|
27
28
|
configStrings: Record<AffiseConfig[keyof AffiseConfig & number], any> | null,
|
|
29
|
+
disableModules: AffiseModules[] | null
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
export class AffiseInitProperties {
|
|
@@ -40,6 +42,7 @@ export class AffiseInitProperties {
|
|
|
40
42
|
onInitSuccessHandler?: OnInitSuccessHandler | null = null;
|
|
41
43
|
onInitErrorHandler?: OnInitErrorHandler | null = null;
|
|
42
44
|
configStrings: Record<string, any> = {};
|
|
45
|
+
disableModules: AffiseModules[] = [];
|
|
43
46
|
|
|
44
47
|
constructor(
|
|
45
48
|
{
|
|
@@ -54,7 +57,8 @@ export class AffiseInitProperties {
|
|
|
54
57
|
domain,
|
|
55
58
|
onInitSuccessHandler,
|
|
56
59
|
onInitErrorHandler,
|
|
57
|
-
configStrings: configValues
|
|
60
|
+
configStrings: configValues,
|
|
61
|
+
disableModules: disableModules,
|
|
58
62
|
}: AffiseInitPropertiesType
|
|
59
63
|
) {
|
|
60
64
|
this.affiseAppId = affiseAppId;
|
|
@@ -68,6 +72,7 @@ export class AffiseInitProperties {
|
|
|
68
72
|
this.onInitSuccessHandler = onInitSuccessHandler || null;
|
|
69
73
|
this.onInitErrorHandler = onInitErrorHandler || null;
|
|
70
74
|
this.configStrings = configValues || {};
|
|
75
|
+
this.disableModules = disableModules || [];
|
|
71
76
|
|
|
72
77
|
if (isProduction != null) {
|
|
73
78
|
this.isProduction = isProduction;
|
package/src/debug/AffiseDebug.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -168,15 +168,6 @@ export class Affise {
|
|
|
168
168
|
this.module.getStatus(module, callback);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* @deprecated use Affise.module.moduleStart
|
|
173
|
-
* Manual module start
|
|
174
|
-
* @param module module name
|
|
175
|
-
*/
|
|
176
|
-
static moduleStart(module: AffiseModules): Promise<boolean> {
|
|
177
|
-
return this.module.moduleStart(module);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
171
|
/**
|
|
181
172
|
* @deprecated use Affise.module.getModulesInstalled
|
|
182
173
|
* Get installed modules
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Platform } from "react-native";
|
|
2
|
+
import type { AffiseNative } from "../../native/AffiseNative";
|
|
3
|
+
import { isModuleInit } from "../AffiseHasModule";
|
|
4
|
+
import { AffiseModules } from "../AffiseModules";
|
|
5
|
+
import type { AffiseModuleAdvertisingApi } from "./AffiseModuleAdvertisingApi";
|
|
6
|
+
|
|
7
|
+
export class AffiseAdvertising implements AffiseModuleAdvertisingApi {
|
|
8
|
+
private readonly native: AffiseNative
|
|
9
|
+
|
|
10
|
+
constructor(native: AffiseNative) {
|
|
11
|
+
this.native = native
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* iOS only
|
|
16
|
+
* Start Advertising module
|
|
17
|
+
*/
|
|
18
|
+
startModule() {
|
|
19
|
+
if (Platform.OS !== 'ios') return;
|
|
20
|
+
this.native.advertisingStartModule()
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
hasModule(): Promise<boolean> {
|
|
24
|
+
return isModuleInit(this.native, AffiseModules.ADVERTISING)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -16,17 +16,21 @@ import { AffiseAppsFlyer } from "../appsflyer/AffiseAppsFlyer";
|
|
|
16
16
|
import type { AffiseModuleAppsFlyerApi } from "../appsflyer/AffiseModuleAppsFlyerApi";
|
|
17
17
|
import { AffiseTikTok } from "../tiktok/AffiseTiktok";
|
|
18
18
|
import type { AffiseModuleTikTokApi } from "../tiktok/AffiseModuleTikTokApi";
|
|
19
|
+
import { AffiseAdvertising } from "../advertising/AffiseAdvertising";
|
|
20
|
+
import type { AffiseModuleAdvertisingApi } from "../advertising/AffiseModuleAdvertisingApi";
|
|
19
21
|
|
|
20
|
-
export class AffiseModule implements AffiseModuleApi {
|
|
22
|
+
export class AffiseModule implements AffiseModuleApi {
|
|
21
23
|
private native: AffiseNative
|
|
22
24
|
|
|
25
|
+
advertising: AffiseModuleAdvertisingApi
|
|
23
26
|
appsFlyer: AffiseModuleAppsFlyerApi
|
|
24
27
|
link: AffiseModuleLinkApi
|
|
25
28
|
subscription: AffiseModuleSubscriptionApi
|
|
26
29
|
tikTok: AffiseModuleTikTokApi
|
|
27
30
|
|
|
28
|
-
constructor(native: AffiseNative) {
|
|
31
|
+
constructor(native: AffiseNative) {
|
|
29
32
|
this.native = native
|
|
33
|
+
this.advertising = new AffiseAdvertising(native)
|
|
30
34
|
this.appsFlyer = new AffiseAppsFlyer(native)
|
|
31
35
|
this.link = new AffiseLink(native)
|
|
32
36
|
this.subscription = new AffiseSubscription(native)
|
|
@@ -42,14 +46,6 @@ export class AffiseModule implements AffiseModuleApi {
|
|
|
42
46
|
this.native.getStatus(module, callback);
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
/**
|
|
46
|
-
* Manual module start
|
|
47
|
-
* @param module module name
|
|
48
|
-
*/
|
|
49
|
-
moduleStart(module: AffiseModules): Promise<boolean> {
|
|
50
|
-
return this.native.moduleStart(module);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
49
|
/**
|
|
54
50
|
* Get installed modules
|
|
55
51
|
*/
|
|
@@ -87,4 +83,4 @@ export class AffiseModule implements AffiseModuleApi {
|
|
|
87
83
|
purchase(product: AffiseProduct, type: AffiseProductType, callback: AffiseResultCallback<AffisePurchasedInfo>) {
|
|
88
84
|
this.subscription.purchase(product, type, callback);
|
|
89
85
|
}
|
|
90
|
-
}
|
|
86
|
+
}
|
|
@@ -10,9 +10,11 @@ import type { AffiseProductsResult } from "../subscription/AffiseProductsResult"
|
|
|
10
10
|
import type { AffiseResultCallback } from "../subscription/AffiseResultCallback";
|
|
11
11
|
import type { AffiseModuleAppsFlyerApi } from "../appsflyer/AffiseModuleAppsFlyerApi";
|
|
12
12
|
import type { AffiseModuleTikTokApi } from "../tiktok/AffiseModuleTikTokApi";
|
|
13
|
+
import type { AffiseModuleAdvertisingApi } from "../advertising/AffiseModuleAdvertisingApi";
|
|
13
14
|
|
|
14
|
-
export interface AffiseModuleApi {
|
|
15
|
+
export interface AffiseModuleApi {
|
|
15
16
|
|
|
17
|
+
advertising: AffiseModuleAdvertisingApi;
|
|
16
18
|
appsFlyer: AffiseModuleAppsFlyerApi;
|
|
17
19
|
link: AffiseModuleLinkApi;
|
|
18
20
|
subscription: AffiseModuleSubscriptionApi;
|
|
@@ -25,12 +27,6 @@ export interface AffiseModuleApi {
|
|
|
25
27
|
*/
|
|
26
28
|
getStatus(module: AffiseModules, callback: OnKeyValueCallback): void;
|
|
27
29
|
|
|
28
|
-
/**
|
|
29
|
-
* Manual module start
|
|
30
|
-
* @param module module name
|
|
31
|
-
*/
|
|
32
|
-
moduleStart(module: AffiseModules): Promise<boolean>
|
|
33
|
-
|
|
34
30
|
/**
|
|
35
31
|
* Get installed modules
|
|
36
32
|
*/
|
|
@@ -60,4 +56,4 @@ export interface AffiseModuleApi {
|
|
|
60
56
|
* @param callback result callback
|
|
61
57
|
*/
|
|
62
58
|
purchase(product: AffiseProduct, type: AffiseProductType, callback: AffiseResultCallback<AffisePurchasedInfo>): void;
|
|
63
|
-
}
|
|
59
|
+
}
|
|
@@ -43,7 +43,6 @@ export enum AffiseApiMethod {
|
|
|
43
43
|
////////////////////////////////////////
|
|
44
44
|
// modules
|
|
45
45
|
////////////////////////////////////////
|
|
46
|
-
MODULE_START = "module_start",
|
|
47
46
|
GET_MODULES_INSTALLED = "get_modules_installed",
|
|
48
47
|
GET_STATUS_CALLBACK = "get_status_callback",
|
|
49
48
|
// AppsFlyer Module
|
|
@@ -55,6 +54,8 @@ export enum AffiseApiMethod {
|
|
|
55
54
|
MODULE_SUBS_PURCHASE_CALLBACK = "module_subs_purchase_callback",
|
|
56
55
|
// TikTok Module
|
|
57
56
|
MODULE_TIKTOK_EVENT = "module_tiktok_event",
|
|
57
|
+
// Advertising Module
|
|
58
|
+
MODULE_ADVERTISING_START = "module_advertising_start",
|
|
58
59
|
////////////////////////////////////////
|
|
59
60
|
// modules
|
|
60
61
|
////////////////////////////////////////
|
|
@@ -195,10 +195,6 @@ export class AffiseNative extends NativeBase {
|
|
|
195
195
|
this.nativeCallbackOnce(AffiseApiMethod.GET_STATUS_CALLBACK, callback, module);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
moduleStart(module: AffiseModules): Promise<boolean> {
|
|
199
|
-
return this.nativeResult(AffiseApiMethod.MODULE_START, module);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
198
|
getModulesInstalled(): Promise<AffiseModules[]> {
|
|
203
199
|
return this.nativeResult(AffiseApiMethod.GET_MODULES_INSTALLED);
|
|
204
200
|
}
|
|
@@ -253,6 +249,11 @@ export class AffiseNative extends NativeBase {
|
|
|
253
249
|
};
|
|
254
250
|
this.native(AffiseApiMethod.MODULE_TIKTOK_EVENT, data);
|
|
255
251
|
}
|
|
252
|
+
|
|
253
|
+
// Advertising Module
|
|
254
|
+
advertisingStartModule() {
|
|
255
|
+
this.native(AffiseApiMethod.MODULE_ADVERTISING_START);
|
|
256
|
+
}
|
|
256
257
|
////////////////////////////////////////
|
|
257
258
|
// modules
|
|
258
259
|
////////////////////////////////////////
|
|
@@ -47,6 +47,6 @@ export class DataName {
|
|
|
47
47
|
static EVENT_ID = "eventId";
|
|
48
48
|
static EVENT_NAME = "eventName";
|
|
49
49
|
static EVENT_VALUES = "eventValues";
|
|
50
|
-
static PUSH_TOKEN = "
|
|
51
|
-
static PUSH_TOKEN_SERVICE = "
|
|
50
|
+
static PUSH_TOKEN = "pushToken";
|
|
51
|
+
static PUSH_TOKEN_SERVICE = "pushTokenService";
|
|
52
52
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AffiseNative } from "../native/AffiseNative";
|
|
2
2
|
import {
|
|
3
3
|
AffiseInitProperties,
|
|
4
|
-
AffiseConfig
|
|
4
|
+
AffiseConfig,
|
|
5
|
+
AffiseModules,
|
|
5
6
|
// AutoCatchingType
|
|
6
7
|
} from "../index";
|
|
7
8
|
|
|
@@ -23,6 +24,7 @@ export class AffiseSettings implements AffiseSettingsApi {
|
|
|
23
24
|
private onInitSuccessHandler?: OnInitSuccessHandler | null = null;
|
|
24
25
|
private onInitErrorHandler?: OnInitErrorHandler | null = null;
|
|
25
26
|
private configValues: Record<string, any> = {};
|
|
27
|
+
private disableModules: AffiseModules[] = [];
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
30
|
* Affise SDK settings
|
|
@@ -140,6 +142,14 @@ export class AffiseSettings implements AffiseSettingsApi {
|
|
|
140
142
|
return this;
|
|
141
143
|
}
|
|
142
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Set disableModules
|
|
147
|
+
*/
|
|
148
|
+
setDisableModules(disableModules: AffiseModules[]): AffiseSettingsApi {
|
|
149
|
+
this.disableModules = disableModules;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
|
|
143
153
|
private getInitProperties(): AffiseInitProperties {
|
|
144
154
|
return new AffiseInitProperties({
|
|
145
155
|
affiseAppId: this.affiseAppId,
|
|
@@ -154,6 +164,7 @@ export class AffiseSettings implements AffiseSettingsApi {
|
|
|
154
164
|
onInitSuccessHandler: this.onInitSuccessHandler,
|
|
155
165
|
onInitErrorHandler: this.onInitErrorHandler,
|
|
156
166
|
configStrings: this.configValues,
|
|
167
|
+
disableModules: this.disableModules,
|
|
157
168
|
});
|
|
158
169
|
}
|
|
159
170
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
AffiseConfig
|
|
2
|
+
AffiseConfig,
|
|
3
3
|
// AutoCatchingType
|
|
4
|
+
AffiseModules,
|
|
4
5
|
} from "../index";
|
|
5
6
|
|
|
6
7
|
import type { OnInitErrorHandler } from "./OnInitErrorHandler";
|
|
@@ -77,6 +78,11 @@ export interface AffiseSettingsApi {
|
|
|
77
78
|
*/
|
|
78
79
|
setConfigValues(values: Record<AffiseConfig, any>): AffiseSettingsApi
|
|
79
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Set disableModules
|
|
83
|
+
*/
|
|
84
|
+
setDisableModules(disableModules: AffiseModules[]): AffiseSettingsApi
|
|
85
|
+
|
|
80
86
|
/**
|
|
81
87
|
* Starts Affise SDK
|
|
82
88
|
*/
|