affise-attribution-lib 1.6.39 → 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 +134 -66
- package/affise-attribution-native.podspec +2 -2
- 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/AffiseModules.js +1 -0
- package/lib/commonjs/module/AffiseModules.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/appsflyer/AffiseAppsFlyer.js +1 -1
- package/lib/commonjs/module/appsflyer/AffiseAppsFlyer.js.map +1 -1
- package/lib/commonjs/module/attribution/AffiseModule.js +6 -8
- package/lib/commonjs/module/attribution/AffiseModule.js.map +1 -1
- package/lib/commonjs/module/tiktok/AffiseModuleTikTokApi.js +6 -0
- package/lib/commonjs/module/tiktok/AffiseModuleTikTokApi.js.map +1 -0
- package/lib/commonjs/module/tiktok/AffiseTiktok.js +32 -0
- package/lib/commonjs/module/tiktok/AffiseTiktok.js.map +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js +2 -1
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +17 -5
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/native/data/DataName.js +3 -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/AffiseModules.js +1 -0
- package/lib/module/module/AffiseModules.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/appsflyer/AffiseAppsFlyer.js +1 -1
- package/lib/module/module/appsflyer/AffiseAppsFlyer.js.map +1 -1
- package/lib/module/module/attribution/AffiseModule.js +6 -8
- package/lib/module/module/attribution/AffiseModule.js.map +1 -1
- package/lib/module/module/tiktok/AffiseModuleTikTokApi.js +2 -0
- package/lib/module/module/tiktok/AffiseModuleTikTokApi.js.map +1 -0
- package/lib/module/module/tiktok/AffiseTiktok.js +25 -0
- package/lib/module/module/tiktok/AffiseTiktok.js.map +1 -0
- package/lib/module/native/AffiseApiMethod.js +2 -1
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +17 -5
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/native/data/DataName.js +3 -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/AffiseModules.d.ts +2 -1
- package/lib/typescript/module/AffiseModules.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 +4 -5
- package/lib/typescript/module/attribution/AffiseModule.d.ts.map +1 -1
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts +4 -5
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts.map +1 -1
- package/lib/typescript/module/tiktok/AffiseModuleTikTokApi.d.ts +11 -0
- package/lib/typescript/module/tiktok/AffiseModuleTikTokApi.d.ts.map +1 -0
- package/lib/typescript/module/tiktok/AffiseTiktok.d.ts +15 -0
- package/lib/typescript/module/tiktok/AffiseTiktok.d.ts.map +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts +3 -2
- package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
- package/lib/typescript/native/AffiseNative.d.ts +3 -2
- package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
- package/lib/typescript/native/data/DataName.d.ts +1 -0
- 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 +3 -3
- package/src/AffiseInitProperties.ts +6 -1
- package/src/debug/AffiseDebug.ts +1 -1
- package/src/index.ts +0 -9
- package/src/module/AffiseModules.ts +1 -0
- package/src/module/advertising/AffiseAdvertising.ts +26 -0
- package/src/module/advertising/AffiseModuleAdvertisingApi.ts +9 -0
- package/src/module/appsflyer/AffiseAppsFlyer.ts +1 -1
- package/src/module/attribution/AffiseModule.ts +11 -11
- package/src/module/attribution/AffiseModuleApi.ts +6 -8
- package/src/module/tiktok/AffiseModuleTikTokApi.ts +11 -0
- package/src/module/tiktok/AffiseTiktok.ts +26 -0
- package/src/native/AffiseApiMethod.ts +4 -1
- package/src/native/AffiseNative.ts +17 -6
- package/src/native/data/DataName.ts +3 -2
- package/src/settings/AffiseSettings.ts +12 -1
- package/src/settings/AffiseSettingsApi.ts +7 -1
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
- [Modules](#modules)
|
|
16
16
|
- [Android](#android)
|
|
17
17
|
- [iOS](#ios)
|
|
18
|
+
- [Installed active modules](#installed-active-modules)
|
|
19
|
+
- [Manual exclude modules](#manual-exclude-modules)
|
|
18
20
|
- [Module AdService](#module-adservice)
|
|
19
21
|
- [Module Advertising](#module-advertising)
|
|
20
22
|
- [Module AppsFlyer](#module-appsflyer)
|
|
@@ -24,6 +26,7 @@
|
|
|
24
26
|
- [Module Status](#module-status)
|
|
25
27
|
- [Module Subscription](#module-subscription)
|
|
26
28
|
- [AffiseProductType](#affiseproducttype)
|
|
29
|
+
- [Module TikTok](#module-tiktok)
|
|
27
30
|
- [Initialize](#initialize)
|
|
28
31
|
- [Before application is published](#before-application-is-published)
|
|
29
32
|
- [Domain](#domain)
|
|
@@ -103,7 +106,7 @@ referrer.
|
|
|
103
106
|
|
|
104
107
|
- `Xcode` `14.2+`
|
|
105
108
|
- `iOS` `12+`
|
|
106
|
-
- `Android` `
|
|
109
|
+
- `Android` `24+`
|
|
107
110
|
|
|
108
111
|
## Integration
|
|
109
112
|
|
|
@@ -125,42 +128,29 @@ yarn add affise-attribution-lib
|
|
|
125
128
|
|
|
126
129
|
### Modules
|
|
127
130
|
|
|
128
|
-
If module start type is `manual`, then call:
|
|
129
|
-
|
|
130
|
-
```typescript
|
|
131
|
-
Affise.module.moduleStart(AffiseModules.ADVERTISING)
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Get list of installed modules:
|
|
135
|
-
|
|
136
|
-
```typescript
|
|
137
|
-
Affise.module.getModulesInstalled().then((modules) => {
|
|
138
|
-
console.log(`Modules: ${modules}`);
|
|
139
|
-
});
|
|
140
|
-
```
|
|
141
|
-
|
|
142
131
|
#### Android
|
|
143
132
|
|
|
144
133
|
Add modules to Android project
|
|
145
134
|
|
|
146
|
-
| Module | Version |
|
|
147
|
-
|
|
148
|
-
| `ADVERTISING` | [](https://mvnrepository.com/artifact/com.affise/module-advertising) |
|
|
149
|
-
| `ANDROIDID` | [](https://mvnrepository.com/artifact/com.affise/module-androidid) |
|
|
150
|
-
| `APPSFLYER` | [](https://mvnrepository.com/artifact/com.affise/module-appsflyer) |
|
|
151
|
-
| `LINK` | [](https://mvnrepository.com/artifact/com.affise/module-link) |
|
|
152
|
-
| `NETWORK` | [](https://mvnrepository.com/artifact/com.affise/module-network) |
|
|
153
|
-
| `PHONE` | [](https://mvnrepository.com/artifact/com.affise/module-phone) |
|
|
154
|
-
| `STATUS` | [](https://mvnrepository.com/artifact/com.affise/module-status) |
|
|
155
|
-
| `SUBSCRIPTION` | [](https://mvnrepository.com/artifact/com.affise/module-subscription) |
|
|
156
|
-
| `RUSTORE` | [](https://mvnrepository.com/artifact/com.affise/module-rustore) |
|
|
157
|
-
| `HUAWEI` | [](https://mvnrepository.com/artifact/com.affise/module-huawei) |
|
|
158
|
-
| `META` | [](https://mvnrepository.com/artifact/com.affise/module-meta) |
|
|
135
|
+
| Module | Version |
|
|
136
|
+
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
137
|
+
| `ADVERTISING` | [](https://mvnrepository.com/artifact/com.affise/module-advertising) |
|
|
138
|
+
| `ANDROIDID` | [](https://mvnrepository.com/artifact/com.affise/module-androidid) |
|
|
139
|
+
| `APPSFLYER` | [](https://mvnrepository.com/artifact/com.affise/module-appsflyer) |
|
|
140
|
+
| `LINK` | [](https://mvnrepository.com/artifact/com.affise/module-link) |
|
|
141
|
+
| `NETWORK` | [](https://mvnrepository.com/artifact/com.affise/module-network) |
|
|
142
|
+
| `PHONE` | [](https://mvnrepository.com/artifact/com.affise/module-phone) |
|
|
143
|
+
| `STATUS` | [](https://mvnrepository.com/artifact/com.affise/module-status) |
|
|
144
|
+
| `SUBSCRIPTION` | [](https://mvnrepository.com/artifact/com.affise/module-subscription) |
|
|
145
|
+
| `RUSTORE` | [](https://mvnrepository.com/artifact/com.affise/module-rustore) |
|
|
146
|
+
| `HUAWEI` | [](https://mvnrepository.com/artifact/com.affise/module-huawei) |
|
|
147
|
+
| `META` | [](https://mvnrepository.com/artifact/com.affise/module-meta) |
|
|
148
|
+
| `TIKTOK` | [](https://mvnrepository.com/artifact/com.affise/module-tiktok) |
|
|
159
149
|
|
|
160
150
|
Example [`example/android/app/build.gradle`](example/android/app/build.gradle)
|
|
161
151
|
|
|
162
152
|
```gradle
|
|
163
|
-
final affise_version = '1.6.
|
|
153
|
+
final affise_version = '1.6.65'
|
|
164
154
|
|
|
165
155
|
dependencies {
|
|
166
156
|
// Affise modules
|
|
@@ -175,6 +165,7 @@ dependencies {
|
|
|
175
165
|
implementation "com.affise:module-rustore:$affise_version"
|
|
176
166
|
implementation "com.affise:module-huawei:$affise_version"
|
|
177
167
|
implementation "com.affise:module-appsflyer:$affise_version"
|
|
168
|
+
implementation "com.affise:module-tiktok:$affise_version"
|
|
178
169
|
}
|
|
179
170
|
```
|
|
180
171
|
|
|
@@ -182,15 +173,16 @@ dependencies {
|
|
|
182
173
|
|
|
183
174
|
Add modules to iOS project
|
|
184
175
|
|
|
185
|
-
| Module | Version |
|
|
186
|
-
|
|
187
|
-
| `ADSERVICE` | [`1.6.
|
|
188
|
-
| `ADVERTISING` | [`1.6.
|
|
189
|
-
| `APPSFLYER` | [`1.6.
|
|
190
|
-
| `LINK` | [`1.6.
|
|
191
|
-
| `PERSISTENT` | [`1.6.
|
|
192
|
-
| `STATUS` | [`1.6.
|
|
193
|
-
| `SUBSCRIPTION` | [`1.6.
|
|
176
|
+
| Module | Version |
|
|
177
|
+
|----------------|:------------------------------------------------------------------------------------:|
|
|
178
|
+
| `ADSERVICE` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
179
|
+
| `ADVERTISING` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
180
|
+
| `APPSFLYER` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
181
|
+
| `LINK` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
182
|
+
| `PERSISTENT` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
183
|
+
| `STATUS` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
184
|
+
| `SUBSCRIPTION` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
185
|
+
| `TIKTOK` | [`1.6.55`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
|
|
194
186
|
|
|
195
187
|
Example [example/ios/Podfile](example/ios/Podfile)
|
|
196
188
|
|
|
@@ -198,7 +190,7 @@ Example [example/ios/Podfile](example/ios/Podfile)
|
|
|
198
190
|
target 'YourAppProject' do
|
|
199
191
|
# ...
|
|
200
192
|
|
|
201
|
-
affise_version = '1.6.
|
|
193
|
+
affise_version = '1.6.55'
|
|
202
194
|
# Affise Modules
|
|
203
195
|
pod 'AffiseModule/AdService', affise_version
|
|
204
196
|
pod 'AffiseModule/Advertising', affise_version
|
|
@@ -207,20 +199,36 @@ target 'YourAppProject' do
|
|
|
207
199
|
pod 'AffiseModule/Persistent', affise_version
|
|
208
200
|
pod 'AffiseModule/Status', affise_version
|
|
209
201
|
pod 'AffiseModule/Subscription', affise_version
|
|
202
|
+
pod 'AffiseModule/TikTok', affise_version
|
|
210
203
|
end
|
|
211
204
|
```
|
|
212
205
|
|
|
213
|
-
|
|
214
|
-
>
|
|
215
|
-
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
216
|
-
>
|
|
217
|
-
> Module Advertising requires `NSUserTrackingUsageDescription` key in `info.plist`
|
|
218
|
-
>
|
|
219
|
-
> Application **will crash** if key not present
|
|
220
|
-
>
|
|
221
|
-
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
206
|
+
#### Installed active modules
|
|
222
207
|
|
|
223
|
-
|
|
208
|
+
Get list of installed modules:
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
Affise.module.getModulesInstalled().then((modules) => {
|
|
212
|
+
console.log(`Modules: ${modules}`);
|
|
213
|
+
});
|
|
214
|
+
```
|
|
215
|
+
#### Manual exclude modules
|
|
216
|
+
|
|
217
|
+
To manually stop modules from starting use `Affise.settings.setDisableModules`:
|
|
218
|
+
|
|
219
|
+
```typescript
|
|
220
|
+
Affise
|
|
221
|
+
.settings({
|
|
222
|
+
affiseAppId: 'Your appId',
|
|
223
|
+
secretKey: 'Your SDK secretKey',
|
|
224
|
+
})
|
|
225
|
+
.setDisableModules([
|
|
226
|
+
// Exclude modules from start
|
|
227
|
+
AffiseModules.ADVERTISING,
|
|
228
|
+
AffiseModules.SUBSCRIPTION,
|
|
229
|
+
])
|
|
230
|
+
.start(); // Start Affise SDK
|
|
231
|
+
```
|
|
224
232
|
|
|
225
233
|
#### Module AdService
|
|
226
234
|
|
|
@@ -230,20 +238,34 @@ Sends `attributionToken` from `AdServices` framework `AAAttribution.attributionT
|
|
|
230
238
|
|
|
231
239
|
#### Module Advertising
|
|
232
240
|
|
|
233
|
-
|
|
241
|
+
> [!CAUTION]
|
|
242
|
+
>
|
|
243
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
244
|
+
>
|
|
245
|
+
> `iOS` only
|
|
246
|
+
>
|
|
247
|
+
> Advertising Module starting **Manually**
|
|
248
|
+
>
|
|
249
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
234
250
|
|
|
235
|
-
|
|
251
|
+
```typescript
|
|
252
|
+
Affise.module.advertising.startModule()
|
|
253
|
+
```
|
|
236
254
|
|
|
237
|
-
>
|
|
255
|
+
> [!CAUTION]
|
|
238
256
|
>
|
|
239
257
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
240
258
|
>
|
|
259
|
+
> `iOS` only
|
|
260
|
+
>
|
|
241
261
|
> Module Advertising requires `NSUserTrackingUsageDescription` key in `info.plist`
|
|
242
262
|
>
|
|
243
263
|
> Application **will crash** if key not present
|
|
244
264
|
>
|
|
245
265
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
246
266
|
|
|
267
|
+
This module required to Use [`IDFA`](https://developer.apple.com/documentation/adsupport/asidentifiermanager/advertisingidentifier) (Identifier for advertisers)
|
|
268
|
+
|
|
247
269
|
Open `info.plist` and add key `NSUserTrackingUsageDescription` with string value. For more information [read requirements](#requirements)
|
|
248
270
|
|
|
249
271
|
#### Module AppsFlyer
|
|
@@ -280,7 +302,7 @@ Affise.module.appsflyer.hasModule().then((hasModule) => {
|
|
|
280
302
|
|
|
281
303
|
#### Module Huawei
|
|
282
304
|
|
|
283
|
-
>
|
|
305
|
+
> [!CAUTION]
|
|
284
306
|
>
|
|
285
307
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
286
308
|
>
|
|
@@ -350,7 +372,7 @@ Affise
|
|
|
350
372
|
|
|
351
373
|
#### Module Status
|
|
352
374
|
|
|
353
|
-
>
|
|
375
|
+
> [!CAUTION]
|
|
354
376
|
>
|
|
355
377
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
356
378
|
>
|
|
@@ -412,6 +434,52 @@ Affise.module.subscription.hasModule().then((hasModule) => {
|
|
|
412
434
|
- `RENEWABLE_SUBSCRIPTION`
|
|
413
435
|
- `NON_RENEWABLE_SUBSCRIPTION`
|
|
414
436
|
|
|
437
|
+
#### Module TikTok
|
|
438
|
+
|
|
439
|
+
> [!CAUTION]
|
|
440
|
+
>
|
|
441
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
442
|
+
>
|
|
443
|
+
> There are no official React Native TikTok package.
|
|
444
|
+
>
|
|
445
|
+
> You have to add native dependency manually.
|
|
446
|
+
>
|
|
447
|
+
> Add the Android TikTok SDK dependency [TikTok Docs](https://business-api.tiktok.com/gateway/docs/index?identify_key=c0138ffadd90a955c1f0670a56fe348d1d40680b3c89461e09f78ed26785164b&language=ENGLISH&doc_id=1739585434183746#item-link-1.%20Add%20the%20SDK%20as%20a%20build%20dependency)
|
|
448
|
+
>
|
|
449
|
+
> Add the iOS TikTok SDK dependency [TikTok Docs](https://business-api.tiktok.com/gateway/docs/index?identify_key=c0138ffadd90a955c1f0670a56fe348d1d40680b3c89461e09f78ed26785164b&language=ENGLISH&doc_id=1739585432134657#item-link-1.%20Add%20the%20SDK%20as%20a%20build%20dependency)
|
|
450
|
+
>
|
|
451
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
```typescript
|
|
455
|
+
let eventName = "AddToCart";
|
|
456
|
+
let eventId = "eventId";
|
|
457
|
+
|
|
458
|
+
let properties = {
|
|
459
|
+
"currency": "USD",
|
|
460
|
+
"value": 4.99,
|
|
461
|
+
"contents": [
|
|
462
|
+
{
|
|
463
|
+
"price": "4.99",
|
|
464
|
+
"quantity": "1",
|
|
465
|
+
"content_name": "Name of the product",
|
|
466
|
+
"brand": "Brand of the product"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
// Send TikTok data to Affise
|
|
472
|
+
Affise.module.tikTok.sendEvent(eventName, properties, eventId);
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
Is Module present:
|
|
476
|
+
|
|
477
|
+
```typescript
|
|
478
|
+
Affise.module.tikTok.hasModule().then((hasModule) => {
|
|
479
|
+
// Check is module present
|
|
480
|
+
})
|
|
481
|
+
```
|
|
482
|
+
|
|
415
483
|
### Initialize
|
|
416
484
|
|
|
417
485
|
After dependency is added, and project is sync with `npm install` and initialize.
|
|
@@ -459,7 +527,7 @@ Affise
|
|
|
459
527
|
|
|
460
528
|
#### Before application is published
|
|
461
529
|
|
|
462
|
-
>
|
|
530
|
+
> [!CAUTION]
|
|
463
531
|
>
|
|
464
532
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
465
533
|
>
|
|
@@ -959,7 +1027,7 @@ but if there is no network connection or device is disabled, events are kept loc
|
|
|
959
1027
|
|
|
960
1028
|
## Advertising Identifier (google) tracking
|
|
961
1029
|
|
|
962
|
-
>
|
|
1030
|
+
> [!NOTE]
|
|
963
1031
|
>
|
|
964
1032
|
> Requires [Affise Advertising Module](#modules)
|
|
965
1033
|
|
|
@@ -967,7 +1035,7 @@ Advertising Identifier (google) tracking is supported automatically, no actions
|
|
|
967
1035
|
|
|
968
1036
|
## Open Advertising Identifier (huawei) tracking
|
|
969
1037
|
|
|
970
|
-
>
|
|
1038
|
+
> [!NOTE]
|
|
971
1039
|
>
|
|
972
1040
|
> Requires [Affise Huawei Module](#modules)
|
|
973
1041
|
|
|
@@ -1094,7 +1162,7 @@ To use this feature, create file with name `partner_key` in your app assets dire
|
|
|
1094
1162
|
|
|
1095
1163
|
### Deeplinks
|
|
1096
1164
|
|
|
1097
|
-
>
|
|
1165
|
+
> [!CAUTION]
|
|
1098
1166
|
>
|
|
1099
1167
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
1100
1168
|
>
|
|
@@ -1203,7 +1271,7 @@ Example: `myapp://mydomain.com`
|
|
|
1203
1271
|
|
|
1204
1272
|
### AppLinks
|
|
1205
1273
|
|
|
1206
|
-
>
|
|
1274
|
+
> [!CAUTION]
|
|
1207
1275
|
>
|
|
1208
1276
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
1209
1277
|
>
|
|
@@ -1270,7 +1338,7 @@ Example: `https://mydomain.com`
|
|
|
1270
1338
|
5. Once Android Studio generates the file, click **Save file** to download it.
|
|
1271
1339
|
6. Upload the `assetlinks.json` file to your site, with read access for everyone, at `https://yoursite/.well-known/assetlinks.json`.
|
|
1272
1340
|
|
|
1273
|
-
>
|
|
1341
|
+
> [!IMPORTANT]
|
|
1274
1342
|
>
|
|
1275
1343
|
> The system verifies the Digital Asset Links file via the encrypted HTTPS protocol. Make sure that the **assetlinks.json** file is accessible over an HTTPS connection, regardless of whether your app's intent filter includes **https**.
|
|
1276
1344
|
|
|
@@ -1307,7 +1375,7 @@ Example: `https://mydomain.com`
|
|
|
1307
1375
|
|
|
1308
1376
|
### Get deferred deeplink
|
|
1309
1377
|
|
|
1310
|
-
>
|
|
1378
|
+
> [!NOTE]
|
|
1311
1379
|
>
|
|
1312
1380
|
> Requires [Affise Status Module](#modules)
|
|
1313
1381
|
|
|
@@ -1321,7 +1389,7 @@ Affise.getDeferredDeeplink((deferredDeeplink) => {
|
|
|
1321
1389
|
|
|
1322
1390
|
### Get deferred deeplink value
|
|
1323
1391
|
|
|
1324
|
-
>
|
|
1392
|
+
> [!NOTE]
|
|
1325
1393
|
>
|
|
1326
1394
|
> Requires [Affise Status Module](#modules)
|
|
1327
1395
|
|
|
@@ -1405,7 +1473,7 @@ Affise.getRandomUserId();
|
|
|
1405
1473
|
|
|
1406
1474
|
## Get random device Id
|
|
1407
1475
|
|
|
1408
|
-
>
|
|
1476
|
+
> [!NOTE]
|
|
1409
1477
|
>
|
|
1410
1478
|
> To make `device id` more persistent on application reinstall
|
|
1411
1479
|
>
|
|
@@ -1523,7 +1591,7 @@ In examples above `ReferrerKey.CLICK_ID` is used, but many others is available:
|
|
|
1523
1591
|
|
|
1524
1592
|
## Get module state
|
|
1525
1593
|
|
|
1526
|
-
>
|
|
1594
|
+
> [!CAUTION]
|
|
1527
1595
|
>
|
|
1528
1596
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
1529
1597
|
>
|
|
@@ -1616,7 +1684,7 @@ new AffiseAdRevenue(AffiseAdSource.ADMOB)
|
|
|
1616
1684
|
|
|
1617
1685
|
## Validate credentials
|
|
1618
1686
|
|
|
1619
|
-
>
|
|
1687
|
+
> [!CAUTION]
|
|
1620
1688
|
>
|
|
1621
1689
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
1622
1690
|
>
|
|
@@ -1670,7 +1738,7 @@ Affise.debug.versionNative().then((version) => {
|
|
|
1670
1738
|
|
|
1671
1739
|
## iOS
|
|
1672
1740
|
|
|
1673
|
-
>
|
|
1741
|
+
> [!CAUTION]
|
|
1674
1742
|
>
|
|
1675
1743
|
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
1676
1744
|
>
|
|
@@ -12,12 +12,12 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
14
|
s.platforms = { :ios => "12.0" }
|
|
15
|
-
s.source = { :git => "https://github.com/affise/sdk-react.git", :tag => "#{s.version}" }
|
|
15
|
+
s.source = { :git => "https://github.com/affise/affise-mmp-sdk-react.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency 'AffiseInternal', '1.6.
|
|
20
|
+
s.dependency 'AffiseInternal', '1.6.55'
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
package/android/build.gradle
CHANGED
|
@@ -2,7 +2,7 @@ buildscript {
|
|
|
2
2
|
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
3
|
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["AffiseAttributionNative_kotlinVersion"]
|
|
4
4
|
ext {
|
|
5
|
-
affise_version = '1.6.
|
|
5
|
+
affise_version = '1.6.65'
|
|
6
6
|
agp_version = '7.2.2'
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -22,7 +22,8 @@ class AffiseInitProperties {
|
|
|
22
22
|
domain,
|
|
23
23
|
onInitSuccessHandler,
|
|
24
24
|
onInitErrorHandler,
|
|
25
|
-
configStrings: configValues
|
|
25
|
+
configStrings: configValues,
|
|
26
|
+
disableModules: disableModules
|
|
26
27
|
} = _ref;
|
|
27
28
|
_defineProperty(this, "affiseAppId", void 0);
|
|
28
29
|
_defineProperty(this, "secretKey", void 0);
|
|
@@ -36,6 +37,7 @@ class AffiseInitProperties {
|
|
|
36
37
|
_defineProperty(this, "onInitSuccessHandler", null);
|
|
37
38
|
_defineProperty(this, "onInitErrorHandler", null);
|
|
38
39
|
_defineProperty(this, "configStrings", {});
|
|
40
|
+
_defineProperty(this, "disableModules", []);
|
|
39
41
|
this.affiseAppId = affiseAppId;
|
|
40
42
|
this.secretKey = secretKey;
|
|
41
43
|
this.partParamName = partParamName || null;
|
|
@@ -46,6 +48,7 @@ class AffiseInitProperties {
|
|
|
46
48
|
this.onInitSuccessHandler = onInitSuccessHandler || null;
|
|
47
49
|
this.onInitErrorHandler = onInitErrorHandler || null;
|
|
48
50
|
this.configStrings = configValues || {};
|
|
51
|
+
this.disableModules = disableModules || [];
|
|
49
52
|
if (isProduction != null) {
|
|
50
53
|
this.isProduction = isProduction;
|
|
51
54
|
}
|
|
@@ -1 +1 @@
|
|
|
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":";;;;;;;;;;
|
|
1
|
+
{"version":3,"names":["AffiseInitProperties","constructor","affiseAppId","secretKey","isProduction","partParamName","partParamNameToken","appToken","domain","onInitSuccessHandler","onInitErrorHandler","configStrings","configValues","disableModules","isAffiseInitPropertiesType","obj"],"sourceRoot":"../../src","sources":["AffiseInitProperties.ts"],"mappings":";;;;;;;;;;AA+BO,MAAMA,oBAAoB,CAAC;EAe9BC,WAAW,OAgBT;IAAA,IAfE;MACIC,WAAW;MACXC,SAAS;MACTC,YAAY;MACZC,aAAa;MACbC,kBAAkB;MAClBC,QAAQ;MACR;MACA;MACAC,MAAM;MACNC,oBAAoB;MACpBC,kBAAkB;MAClBC,aAAa,EAAEC,YAAY;MAC3BC,cAAc,EAAEA;IACM,CAAC;IAAA;IAAA;IAAA,sCA3BP,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;IAAA,wCACL,EAAE;IAmBhC,IAAI,CAACX,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;IACvC,IAAI,CAACC,cAAc,GAAGA,cAAc,IAAI,EAAE;IAE1C,IAAIT,YAAY,IAAI,IAAI,EAAE;MACtB,IAAI,CAACA,YAAY,GAAGA,YAAY;IACpC;IACA;IACA;IACA;EACJ;AACJ;AAAC;AAEM,SAASU,0BAA0B,CAACC,GAAQ,EAAmC;EAClF,IAAIA,GAAG,EAA8B;IACjC,OAAO,IAAI;EACf;EACA,OAAO,KAAK;AAChB"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -163,15 +163,6 @@ class Affise {
|
|
|
163
163
|
this.module.getStatus(module, callback);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated use Affise.module.moduleStart
|
|
168
|
-
* Manual module start
|
|
169
|
-
* @param module module name
|
|
170
|
-
*/
|
|
171
|
-
static moduleStart(module) {
|
|
172
|
-
return this.module.moduleStart(module);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
166
|
/**
|
|
176
167
|
* @deprecated use Affise.module.getModulesInstalled
|
|
177
168
|
* Get installed modules
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Affise","settings","affiseAppId","secretKey","AffiseSettings","native","start","initProperties","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","service","registerDeeplinkCallback","callback","setSecretKey","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","
|
|
1
|
+
{"version":3,"names":["Affise","settings","affiseAppId","secretKey","AffiseSettings","native","start","initProperties","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","service","registerDeeplinkCallback","callback","setSecretKey","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","getModulesInstalled","getRandomUserId","getRandomDeviceId","getProviders","isFirstRun","getReferrer","getReferrerUrl","getReferrerValue","key","getReferrerUrlValue","getReferrerOnServer","getDeferredDeeplink","getReferrerOnServerValue","getDeferredDeeplinkValue","AffiseNative","AffiseAndroid","AffiseIos","AffiseModule","AffiseDebug"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"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"}
|
|
@@ -20,5 +20,6 @@ exports.AffiseModules = AffiseModules;
|
|
|
20
20
|
AffiseModules["SUBSCRIPTION"] = "Subscription";
|
|
21
21
|
AffiseModules["RUSTORE"] = "RuStore";
|
|
22
22
|
AffiseModules["HUAWEI"] = "Huawei";
|
|
23
|
+
AffiseModules["TIKTOK"] = "TikTok";
|
|
23
24
|
})(AffiseModules || (exports.AffiseModules = AffiseModules = {}));
|
|
24
25
|
//# sourceMappingURL=AffiseModules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":";;;;;;IAAYA,aAAa;AAAA;AAAA,WAAbA,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;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":";;;;;;IAAYA,aAAa;AAAA;AAAA,WAAbA,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;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AffiseAdvertising = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _AffiseHasModule = require("../AffiseHasModule");
|
|
9
|
+
var _AffiseModules = require("../AffiseModules");
|
|
10
|
+
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; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
12
|
+
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); }
|
|
13
|
+
class AffiseAdvertising {
|
|
14
|
+
constructor(native) {
|
|
15
|
+
_defineProperty(this, "native", void 0);
|
|
16
|
+
this.native = native;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* iOS only
|
|
21
|
+
* Start Advertising module
|
|
22
|
+
*/
|
|
23
|
+
startModule() {
|
|
24
|
+
if (_reactNative.Platform.OS !== 'ios') return;
|
|
25
|
+
this.native.advertisingStartModule();
|
|
26
|
+
}
|
|
27
|
+
hasModule() {
|
|
28
|
+
return (0, _AffiseHasModule.isModuleInit)(this.native, _AffiseModules.AffiseModules.ADVERTISING);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AffiseAdvertising = AffiseAdvertising;
|
|
32
|
+
//# sourceMappingURL=AffiseAdvertising.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseAdvertising","constructor","native","startModule","Platform","OS","advertisingStartModule","hasModule","isModuleInit","AffiseModules","ADVERTISING"],"sourceRoot":"../../src","sources":["AffiseAdvertising.ts"],"mappings":";;;;;;AAAA;AAEA;AACA;AAAiD;AAAA;AAAA;AAG1C,MAAMA,iBAAiB,CAAuC;EAGjEC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;EACIC,WAAW,GAAG;IACV,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IAC3B,IAAI,CAACH,MAAM,CAACI,sBAAsB,EAAE;EACxC;EAEAC,SAAS,GAAqB;IAC1B,OAAO,IAAAC,6BAAY,EAAC,IAAI,CAACN,MAAM,EAAEO,4BAAa,CAACC,WAAW,CAAC;EAC/D;AACJ;AAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleAdvertisingApi.ts"],"mappings":""}
|
|
@@ -21,7 +21,7 @@ class AffiseAppsFlyer {
|
|
|
21
21
|
* @param eventValues event data
|
|
22
22
|
*/
|
|
23
23
|
logEvent(eventName, eventValues) {
|
|
24
|
-
this.native.
|
|
24
|
+
this.native.appsFlyerLogEvent(eventName, eventValues);
|
|
25
25
|
}
|
|
26
26
|
hasModule() {
|
|
27
27
|
return (0, _AffiseHasModule.isModuleInit)(this.native, _AffiseModules.AffiseModules.APPSFLYER);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseAppsFlyer","constructor","native","logEvent","eventName","eventValues","hasModule","isModuleInit","AffiseModules","APPSFLYER"],"sourceRoot":"../../src","sources":["AffiseAppsFlyer.ts"],"mappings":";;;;;;AACA;AACA;AAAiD;AAAA;AAAA;AAG1C,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,
|
|
1
|
+
{"version":3,"names":["AffiseAppsFlyer","constructor","native","logEvent","eventName","eventValues","appsFlyerLogEvent","hasModule","isModuleInit","AffiseModules","APPSFLYER"],"sourceRoot":"../../src","sources":["AffiseAppsFlyer.ts"],"mappings":";;;;;;AACA;AACA;AAAiD;AAAA;AAAA;AAG1C,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,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;EACzD;EAEAE,SAAS,GAAqB;IAC1B,OAAO,IAAAC,6BAAY,EAAC,IAAI,CAACN,MAAM,EAAEO,4BAAa,CAACC,SAAS,CAAC;EAC7D;AACJ;AAAC"}
|
|
@@ -7,19 +7,25 @@ exports.AffiseModule = void 0;
|
|
|
7
7
|
var _AffiseLink = require("../link/AffiseLink");
|
|
8
8
|
var _AffiseSubscription = require("../subscription/AffiseSubscription");
|
|
9
9
|
var _AffiseAppsFlyer = require("../appsflyer/AffiseAppsFlyer");
|
|
10
|
+
var _AffiseTiktok = require("../tiktok/AffiseTiktok");
|
|
11
|
+
var _AffiseAdvertising = require("../advertising/AffiseAdvertising");
|
|
10
12
|
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; }
|
|
11
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
12
14
|
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); }
|
|
13
15
|
class AffiseModule {
|
|
14
16
|
constructor(native) {
|
|
15
17
|
_defineProperty(this, "native", void 0);
|
|
18
|
+
_defineProperty(this, "advertising", void 0);
|
|
16
19
|
_defineProperty(this, "appsFlyer", void 0);
|
|
17
20
|
_defineProperty(this, "link", void 0);
|
|
18
21
|
_defineProperty(this, "subscription", void 0);
|
|
22
|
+
_defineProperty(this, "tikTok", void 0);
|
|
19
23
|
this.native = native;
|
|
24
|
+
this.advertising = new _AffiseAdvertising.AffiseAdvertising(native);
|
|
20
25
|
this.appsFlyer = new _AffiseAppsFlyer.AffiseAppsFlyer(native);
|
|
21
26
|
this.link = new _AffiseLink.AffiseLink(native);
|
|
22
27
|
this.subscription = new _AffiseSubscription.AffiseSubscription(native);
|
|
28
|
+
this.tikTok = new _AffiseTiktok.AffiseTikTok(native);
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
/**
|
|
@@ -31,14 +37,6 @@ class AffiseModule {
|
|
|
31
37
|
this.native.getStatus(module, callback);
|
|
32
38
|
}
|
|
33
39
|
|
|
34
|
-
/**
|
|
35
|
-
* Manual module start
|
|
36
|
-
* @param module module name
|
|
37
|
-
*/
|
|
38
|
-
moduleStart(module) {
|
|
39
|
-
return this.native.moduleStart(module);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
40
|
/**
|
|
43
41
|
* Get installed modules
|
|
44
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModule","constructor","native","appsFlyer","AffiseAppsFlyer","link","AffiseLink","subscription","AffiseSubscription","getStatus","module","callback","
|
|
1
|
+
{"version":3,"names":["AffiseModule","constructor","native","advertising","AffiseAdvertising","appsFlyer","AffiseAppsFlyer","link","AffiseLink","subscription","AffiseSubscription","tikTok","AffiseTikTok","getStatus","module","callback","getModulesInstalled","linkResolve","url","resolve","fetchProducts","ids","purchase","product","type"],"sourceRoot":"../../src","sources":["AffiseModule.ts"],"mappings":";;;;;;AASA;AAGA;AAEA;AAEA;AAEA;AAAqE;AAAA;AAAA;AAG9D,MAAMA,YAAY,CAA4B;EASjDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,WAAW,GAAG,IAAIC,oCAAiB,CAACF,MAAM,CAAC;IAChD,IAAI,CAACG,SAAS,GAAG,IAAIC,gCAAe,CAACJ,MAAM,CAAC;IAC5C,IAAI,CAACK,IAAI,GAAG,IAAIC,sBAAU,CAACN,MAAM,CAAC;IAClC,IAAI,CAACO,YAAY,GAAG,IAAIC,sCAAkB,CAACR,MAAM,CAAC;IAClD,IAAI,CAACS,MAAM,GAAG,IAAIC,0BAAY,CAACV,MAAM,CAAC;EAC1C;;EAEA;AACJ;AACA;AACA;AACA;EACIW,SAAS,CAACC,MAAqB,EAAEC,QAA4B,EAAE;IAC3D,IAAI,CAACb,MAAM,CAACW,SAAS,CAACC,MAAM,EAAEC,QAAQ,CAAC;EAC3C;;EAEA;AACJ;AACA;EACIC,mBAAmB,GAA6B;IAC5C,OAAO,IAAI,CAACd,MAAM,CAACc,mBAAmB,EAAE;EAC5C;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACIC,WAAW,CAACC,GAAW,EAAEH,QAA4B,EAAE;IACnD,IAAI,CAACR,IAAI,CAACY,OAAO,CAACD,GAAG,EAAEH,QAAQ,CAAC;EACpC;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACIK,aAAa,CAACC,GAAa,EAAEN,QAAoD,EAAE;IAC/E,IAAI,CAACN,YAAY,CAACW,aAAa,CAACC,GAAG,EAAEN,QAAQ,CAAC;EAClD;;EAEA;AACJ;AACA;AACA;AACA;AACA;AACA;EACIO,QAAQ,CAACC,OAAsB,EAAEC,IAAuB,EAAET,QAAmD,EAAE;IAC3G,IAAI,CAACN,YAAY,CAACa,QAAQ,CAACC,OAAO,EAAEC,IAAI,EAAET,QAAQ,CAAC;EACvD;AACJ;AAAC"}
|