affise-attribution-lib 1.6.34 → 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 +42 -13
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/lib/commonjs/Export.js +4 -4
- 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/AffiseSettings.js +6 -4
- 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/Export.js +1 -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/AffiseSettings.js +7 -5
- 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/Export.d.ts +1 -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/AffiseSettings.d.ts +14 -11
- 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/Export.ts +3 -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/AffiseSettings.ts +18 -15
- package/src/settings/AffiseSettingsApi.ts +84 -0
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- [Android](#android)
|
|
17
17
|
- [iOS](#ios)
|
|
18
18
|
- [Module Advertising](#module-advertising)
|
|
19
|
+
- [Module AppsFlyer](#module-appsflyer)
|
|
19
20
|
- [Module Huawei](#module-huawei)
|
|
20
21
|
- [Module Link](#module-link)
|
|
21
22
|
- [Module Meta](#module-meta)
|
|
@@ -140,6 +141,7 @@ Add modules to Android project
|
|
|
140
141
|
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
|
|
141
142
|
| `ADVERTISING` | [](https://mvnrepository.com/artifact/com.affise/module-advertising) | `Auto` |
|
|
142
143
|
| `ANDROIDID` | [](https://mvnrepository.com/artifact/com.affise/module-androidid) | `Auto` |
|
|
144
|
+
| `APPSFLYER` | [](https://mvnrepository.com/artifact/com.affise/module-appsflyer) | `Auto` |
|
|
143
145
|
| `LINK` | [](https://mvnrepository.com/artifact/com.affise/module-link) | `Auto` |
|
|
144
146
|
| `NETWORK` | [](https://mvnrepository.com/artifact/com.affise/module-network) | `Auto` |
|
|
145
147
|
| `PHONE` | [](https://mvnrepository.com/artifact/com.affise/module-phone) | `Auto` |
|
|
@@ -152,7 +154,7 @@ Add modules to Android project
|
|
|
152
154
|
Example [`example/android/app/build.gradle`](example/android/app/build.gradle)
|
|
153
155
|
|
|
154
156
|
```gradle
|
|
155
|
-
final affise_version = '1.6.
|
|
157
|
+
final affise_version = '1.6.58'
|
|
156
158
|
|
|
157
159
|
dependencies {
|
|
158
160
|
// Affise modules
|
|
@@ -163,9 +165,10 @@ dependencies {
|
|
|
163
165
|
implementation "com.affise:module-phone:$affise_version"
|
|
164
166
|
implementation "com.affise:module-status:$affise_version"
|
|
165
167
|
implementation "com.affise:module-subscription:$affise_version"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
implementation "com.affise:module-meta:$affise_version"
|
|
169
|
+
implementation "com.affise:module-rustore:$affise_version"
|
|
170
|
+
implementation "com.affise:module-huawei:$affise_version"
|
|
171
|
+
implementation "com.affise:module-appsflyer:$affise_version"
|
|
169
172
|
}
|
|
170
173
|
```
|
|
171
174
|
|
|
@@ -175,11 +178,12 @@ Add modules to iOS project
|
|
|
175
178
|
|
|
176
179
|
| Module | Version | Start |
|
|
177
180
|
|----------------|:------------------------------------------------------------------------------------:|----------|
|
|
178
|
-
| `ADVERTISING` | [`1.6.
|
|
179
|
-
| `
|
|
180
|
-
| `
|
|
181
|
-
| `
|
|
182
|
-
| `
|
|
181
|
+
| `ADVERTISING` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` |
|
|
182
|
+
| `APPSFLYER` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
183
|
+
| `LINK` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
184
|
+
| `PERSISTENT` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
185
|
+
| `STATUS` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
186
|
+
| `SUBSCRIPTION` | [`1.6.50`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
183
187
|
|
|
184
188
|
Example [example/ios/Podfile](example/ios/Podfile)
|
|
185
189
|
|
|
@@ -187,9 +191,10 @@ Example [example/ios/Podfile](example/ios/Podfile)
|
|
|
187
191
|
target 'YourAppProject' do
|
|
188
192
|
# ...
|
|
189
193
|
|
|
190
|
-
affise_version = '1.6.
|
|
194
|
+
affise_version = '1.6.50'
|
|
191
195
|
# Affise Modules
|
|
192
196
|
pod 'AffiseModule/Advertising', affise_version
|
|
197
|
+
pod 'AffiseModule/AppsFlyer', affise_version
|
|
193
198
|
pod 'AffiseModule/Link', affise_version
|
|
194
199
|
pod 'AffiseModule/Persistent', affise_version
|
|
195
200
|
pod 'AffiseModule/Status', affise_version
|
|
@@ -227,6 +232,30 @@ This module required to Use [`IDFA`](https://developer.apple.com/documentation/a
|
|
|
227
232
|
|
|
228
233
|
Open `info.plist` and add key `NSUserTrackingUsageDescription` with string value. For more information [read requirements](#requirements)
|
|
229
234
|
|
|
235
|
+
#### Module AppsFlyer
|
|
236
|
+
|
|
237
|
+
Send AppsFlyer event data to Affise
|
|
238
|
+
|
|
239
|
+
[AppsFlyer In-App Events Docs](https://dev.appsflyer.com/hc/docs/rn_inappevents#send-event)
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
//AppsFlyer event data
|
|
243
|
+
const eventName = "af_add_to_wishlist"
|
|
244
|
+
const eventValues = {
|
|
245
|
+
af_price: 1234.56,
|
|
246
|
+
af_content_id: "1234567",
|
|
247
|
+
};
|
|
248
|
+
// Send AppsFlyer event
|
|
249
|
+
appsFlyer.logEvent(
|
|
250
|
+
eventName,
|
|
251
|
+
eventValues,
|
|
252
|
+
(res) => console.log(res),
|
|
253
|
+
(err) => console.error(err)
|
|
254
|
+
);
|
|
255
|
+
// Send AppsFlyer data to Affise
|
|
256
|
+
Affise.module.appsflyer.logEvent(eventName, eventValues);
|
|
257
|
+
```
|
|
258
|
+
|
|
230
259
|
#### Module Huawei
|
|
231
260
|
|
|
232
261
|
> **Warning**
|
|
@@ -250,7 +279,7 @@ Return last url in chan of redirection
|
|
|
250
279
|
🟥Support MAX 10 redirections🟥
|
|
251
280
|
|
|
252
281
|
```typescript
|
|
253
|
-
Affise.module.
|
|
282
|
+
Affise.module.link.resolve("SITE_WITH_REDIRECTION", (redirectUrl) => {
|
|
254
283
|
// handle redirect url
|
|
255
284
|
});
|
|
256
285
|
```
|
|
@@ -314,7 +343,7 @@ Get products by ids:
|
|
|
314
343
|
```typescript
|
|
315
344
|
const ids = ["exampple.product.id_1", "exampple.product.id_2"];
|
|
316
345
|
|
|
317
|
-
Affise.module.fetchProducts(ids, (result) => {
|
|
346
|
+
Affise.module.subscription.fetchProducts(ids, (result) => {
|
|
318
347
|
if (result.isSuccess) {
|
|
319
348
|
const value = result.asSuccess;
|
|
320
349
|
const products: AffiseProduct[] = value.products;
|
|
@@ -329,7 +358,7 @@ Purchase product:
|
|
|
329
358
|
|
|
330
359
|
```typescript
|
|
331
360
|
// Specify product type for correct affise event
|
|
332
|
-
Affise.module.purchase(product, AffiseProductType.CONSUMABLE, (result) => {
|
|
361
|
+
Affise.module.subscription.purchase(product, AffiseProductType.CONSUMABLE, (result) => {
|
|
333
362
|
if (result.isSuccess) {
|
|
334
363
|
const purchasedInfo: AffisePurchasedInfo = result.asSuccess;
|
|
335
364
|
} else {
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
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.50'
|
|
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.58'
|
|
6
6
|
agp_version = '7.2.2'
|
|
7
7
|
}
|
|
8
8
|
|
package/lib/commonjs/Export.js
CHANGED
|
@@ -157,14 +157,14 @@ Object.keys(_ReferrerCallback).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
var
|
|
161
|
-
Object.keys(
|
|
160
|
+
var _AffiseSettingsApi = require("./settings/AffiseSettingsApi");
|
|
161
|
+
Object.keys(_AffiseSettingsApi).forEach(function (key) {
|
|
162
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] ===
|
|
163
|
+
if (key in exports && exports[key] === _AffiseSettingsApi[key]) return;
|
|
164
164
|
Object.defineProperty(exports, key, {
|
|
165
165
|
enumerable: true,
|
|
166
166
|
get: function () {
|
|
167
|
-
return
|
|
167
|
+
return _AffiseSettingsApi[key];
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AffiseDebug = void 0;
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
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); }
|
|
10
|
+
class AffiseDebug {
|
|
11
|
+
constructor(native) {
|
|
12
|
+
_defineProperty(this, "native", void 0);
|
|
13
|
+
this.native = native;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Won't work on Production
|
|
18
|
+
*
|
|
19
|
+
* Validate credentials
|
|
20
|
+
*/
|
|
21
|
+
validate(callback) {
|
|
22
|
+
this.native.validate(callback);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Won't work on Production
|
|
27
|
+
*
|
|
28
|
+
* Show request/response data
|
|
29
|
+
*/
|
|
30
|
+
network(callback) {
|
|
31
|
+
this.native.network(callback);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Debug get version of flutter library
|
|
36
|
+
*/
|
|
37
|
+
version() {
|
|
38
|
+
return "1.6.35";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Debug get version of native library Android/iOS
|
|
43
|
+
*/
|
|
44
|
+
versionNative() {
|
|
45
|
+
return this.native.versionNative();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.AffiseDebug = AffiseDebug;
|
|
49
|
+
//# 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":";;;;;;;;;AAMO,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;AAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseDebugApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _AffiseDebugApi = require("./AffiseDebugApi");
|
|
7
|
+
Object.keys(_AffiseDebugApi).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _AffiseDebugApi[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _AffiseDebugApi[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _AffiseDebug = require("./AffiseDebug");
|
|
18
|
+
Object.keys(_AffiseDebug).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _AffiseDebug[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _AffiseDebug[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["internal.ts"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -8,7 +8,9 @@ var _exportNames = {
|
|
|
8
8
|
};
|
|
9
9
|
exports.Affise = void 0;
|
|
10
10
|
var _AffiseNative = require("./native/AffiseNative");
|
|
11
|
-
var
|
|
11
|
+
var _AffiseSettings = require("./settings/AffiseSettings");
|
|
12
|
+
var _internal = require("./debug/internal");
|
|
13
|
+
var _internal2 = require("./module/internal");
|
|
12
14
|
var _Export = require("./Export");
|
|
13
15
|
Object.keys(_Export).forEach(function (key) {
|
|
14
16
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -40,11 +42,11 @@ class Affise {
|
|
|
40
42
|
affiseAppId,
|
|
41
43
|
secretKey
|
|
42
44
|
} = _ref;
|
|
43
|
-
return new
|
|
45
|
+
return new _AffiseSettings.AffiseSettings(this.native, affiseAppId, secretKey);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
|
-
* Use Affise.settings({affiseAppId, secretKey}).start()
|
|
49
|
+
* @deprecated Use Affise.settings({affiseAppId, secretKey}).start()
|
|
48
50
|
* @param initProperties
|
|
49
51
|
*/
|
|
50
52
|
static start(initProperties) {
|
|
@@ -158,7 +160,7 @@ class Affise {
|
|
|
158
160
|
* @param callback status response
|
|
159
161
|
*/
|
|
160
162
|
static getStatus(module, callback) {
|
|
161
|
-
|
|
163
|
+
this.module.getStatus(module, callback);
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
/**
|
|
@@ -167,7 +169,7 @@ class Affise {
|
|
|
167
169
|
* @param module module name
|
|
168
170
|
*/
|
|
169
171
|
static moduleStart(module) {
|
|
170
|
-
return
|
|
172
|
+
return this.module.moduleStart(module);
|
|
171
173
|
}
|
|
172
174
|
|
|
173
175
|
/**
|
|
@@ -175,7 +177,7 @@ class Affise {
|
|
|
175
177
|
* Get installed modules
|
|
176
178
|
*/
|
|
177
179
|
static getModulesInstalled() {
|
|
178
|
-
return
|
|
180
|
+
return this.module.getModulesInstalled();
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
/**
|
|
@@ -241,7 +243,7 @@ class Affise {
|
|
|
241
243
|
* Get referrer on server
|
|
242
244
|
*/
|
|
243
245
|
static getReferrerOnServer(callback) {
|
|
244
|
-
|
|
246
|
+
this.getDeferredDeeplink(callback);
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
/**
|
|
@@ -249,7 +251,7 @@ class Affise {
|
|
|
249
251
|
* Get referrer on server value
|
|
250
252
|
*/
|
|
251
253
|
static getReferrerOnServerValue(key, callback) {
|
|
252
|
-
|
|
254
|
+
this.getDeferredDeeplinkValue(key, callback);
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
/**
|
|
@@ -278,134 +280,8 @@ class Affise {
|
|
|
278
280
|
}
|
|
279
281
|
exports.Affise = Affise;
|
|
280
282
|
_defineProperty(Affise, "native", new _AffiseNative.AffiseNative());
|
|
281
|
-
_defineProperty(Affise, "android",
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
static forget(userData) {
|
|
286
|
-
Affise.native.forget(userData);
|
|
287
|
-
}
|
|
288
|
-
static crashApplication() {
|
|
289
|
-
Affise.native.crashApplication();
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
_defineProperty(Affise, "ios", class {
|
|
293
|
-
/**
|
|
294
|
-
* SKAd register app
|
|
295
|
-
*/
|
|
296
|
-
static registerAppForAdNetworkAttribution(completionHandler) {
|
|
297
|
-
if (_reactNative.Platform.OS !== 'ios') return;
|
|
298
|
-
Affise.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* SKAd updatePostbackConversionValue
|
|
303
|
-
*/
|
|
304
|
-
static updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
305
|
-
if (_reactNative.Platform.OS !== 'ios') return;
|
|
306
|
-
Affise.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
311
|
-
* Get referrer on server
|
|
312
|
-
*/
|
|
313
|
-
static getReferrerOnServer(callback) {
|
|
314
|
-
Affise.native.getDeferredDeeplink(callback);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
319
|
-
* Get referrer on server value
|
|
320
|
-
*/
|
|
321
|
-
static getReferrerOnServerValue(key, callback) {
|
|
322
|
-
Affise.native.getDeferredDeeplinkValue(key, callback);
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
_defineProperty(Affise, "module", class {
|
|
326
|
-
/**
|
|
327
|
-
* Get module status
|
|
328
|
-
* @param module module name
|
|
329
|
-
* @param callback status response
|
|
330
|
-
*/
|
|
331
|
-
static getStatus(module, callback) {
|
|
332
|
-
Affise.native.getStatus(module, callback);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Manual module start
|
|
337
|
-
* @param module module name
|
|
338
|
-
*/
|
|
339
|
-
static moduleStart(module) {
|
|
340
|
-
return Affise.native.moduleStart(module);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Get installed modules
|
|
345
|
-
*/
|
|
346
|
-
static getModulesInstalled() {
|
|
347
|
-
return Affise.native.getModulesInstalled();
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Module Link url Resolve
|
|
352
|
-
* @param url url
|
|
353
|
-
* @param callback redirected url
|
|
354
|
-
*/
|
|
355
|
-
static linkResolve(url, callback) {
|
|
356
|
-
Affise.native.linkResolve(url, callback);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Module subscription fetchProducts
|
|
361
|
-
* @param ids list of product ids
|
|
362
|
-
* @param callback result callback
|
|
363
|
-
*/
|
|
364
|
-
static fetchProducts(ids, callback) {
|
|
365
|
-
Affise.native.fetchProducts(ids, callback);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Module subscription purchase
|
|
370
|
-
* @param product product
|
|
371
|
-
* @param type product type
|
|
372
|
-
* @param callback result callback
|
|
373
|
-
*/
|
|
374
|
-
static purchase(product, type, callback) {
|
|
375
|
-
Affise.native.purchase(product, type, callback);
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
_defineProperty(Affise, "debug", class {
|
|
379
|
-
/**
|
|
380
|
-
* Won't work on Production
|
|
381
|
-
*
|
|
382
|
-
* Validate credentials
|
|
383
|
-
*/
|
|
384
|
-
static validate(callback) {
|
|
385
|
-
Affise.native.validate(callback);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Won't work on Production
|
|
390
|
-
*
|
|
391
|
-
* Show request/response data
|
|
392
|
-
*/
|
|
393
|
-
static network(callback) {
|
|
394
|
-
Affise.native.network(callback);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Debug get version of flutter library
|
|
399
|
-
*/
|
|
400
|
-
static version() {
|
|
401
|
-
return "1.6.34";
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Debug get version of native library Android/iOS
|
|
406
|
-
*/
|
|
407
|
-
static versionNative() {
|
|
408
|
-
return Affise.native.versionNative();
|
|
409
|
-
}
|
|
410
|
-
});
|
|
283
|
+
_defineProperty(Affise, "android", new _internal2.AffiseAndroid(Affise.native));
|
|
284
|
+
_defineProperty(Affise, "ios", new _internal2.AffiseIos(Affise.native));
|
|
285
|
+
_defineProperty(Affise, "module", new _internal2.AffiseModule(Affise.native));
|
|
286
|
+
_defineProperty(Affise, "debug", new _internal.AffiseDebug(Affise.native));
|
|
411
287
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Affise","settings","affiseAppId","secretKey","AffiseSettings","
|
|
1
|
+
{"version":3,"names":["Affise","settings","affiseAppId","secretKey","AffiseSettings","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","AffiseNative","AffiseAndroid","AffiseIos","AffiseModule","AffiseDebug"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;AAaA;AACA;AAEA;AAIA;AASA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAAyB;AAAA;AAAA;AAEzB;AACA;AACA;AACO,MAAMA,MAAM,CAAC;EAIhB;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,OAAOC,QAAQ,OAA0F;IAAA,IAAzF;MAACC,WAAW;MAAEC;IAAqD,CAAC;IAChF,OAAO,IAAIC,8BAAc,CAAC,IAAI,CAACC,MAAM,EAAEH,WAAW,EAAEC,SAAS,CAAC;EAClE;;EAEA;AACJ;AACA;AACA;EACI,OAAOG,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,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gBA7PrDL,MAAM,WA+PgB,IAAIgD,qBAAW,CA/PrChD,MAAM,CA+PqCK,MAAM,CAAC"}
|
|
@@ -9,7 +9,9 @@ exports.AffiseModules = AffiseModules;
|
|
|
9
9
|
(function (AffiseModules) {
|
|
10
10
|
AffiseModules["ADVERTISING"] = "Advertising";
|
|
11
11
|
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
12
|
+
AffiseModules["APPSFLYER"] = "AppsFlyer";
|
|
12
13
|
AffiseModules["LINK"] = "Link";
|
|
14
|
+
AffiseModules["META"] = "Meta";
|
|
13
15
|
AffiseModules["NETWORK"] = "Network";
|
|
14
16
|
AffiseModules["PERSISTENT"] = "Persistent";
|
|
15
17
|
AffiseModules["PHONE"] = "Phone";
|
|
@@ -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;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;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AffiseAppsFlyer = void 0;
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
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); }
|
|
10
|
+
class AffiseAppsFlyer {
|
|
11
|
+
constructor(native) {
|
|
12
|
+
_defineProperty(this, "native", void 0);
|
|
13
|
+
this.native = native;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Send Appflyer event data to affise
|
|
18
|
+
* @param eventName event name
|
|
19
|
+
* @param eventValues event data
|
|
20
|
+
*/
|
|
21
|
+
logEvent(eventName, eventValues) {
|
|
22
|
+
this.native.logEvent(eventName, eventValues);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.AffiseAppsFlyer = AffiseAppsFlyer;
|
|
26
|
+
//# sourceMappingURL=AffiseAppsFlyer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseAppsFlyer","constructor","native","logEvent","eventName","eventValues"],"sourceRoot":"../../src","sources":["AffiseAppsFlyer.ts"],"mappings":";;;;;;;;;AAGO,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;AAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleAppsFlyerApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AffiseAndroid = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
class AffiseAndroid {
|
|
12
|
+
constructor(native) {
|
|
13
|
+
_defineProperty(this, "native", void 0);
|
|
14
|
+
this.native = native;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Erases all user data from mobile and sends [GDPREvent]
|
|
19
|
+
*/
|
|
20
|
+
forget(userData) {
|
|
21
|
+
if (_reactNative.Platform.OS !== 'android') return;
|
|
22
|
+
this.native.forget(userData);
|
|
23
|
+
}
|
|
24
|
+
crashApplication() {
|
|
25
|
+
if (_reactNative.Platform.OS !== 'android') return;
|
|
26
|
+
this.native.crashApplication();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AffiseAndroid = AffiseAndroid;
|
|
30
|
+
//# sourceMappingURL=AffiseAndroid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseAndroid","constructor","native","forget","userData","Platform","OS","crashApplication"],"sourceRoot":"../../src","sources":["AffiseAndroid.ts"],"mappings":";;;;;;AAAA;AAAwC;AAAA;AAAA;AAIjC,MAAMA,aAAa,CAA6B;EAInDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;EACIC,MAAM,CAACC,QAAgB,EAAE;IACrB,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACJ,MAAM,CAACC,MAAM,CAACC,QAAQ,CAAC;EAChC;EAEAG,gBAAgB,GAAG;IACf,IAAIF,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACJ,MAAM,CAACK,gBAAgB,EAAE;EAClC;AACJ;AAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseAndroidApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AffiseIos = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
class AffiseIos {
|
|
12
|
+
constructor(native) {
|
|
13
|
+
_defineProperty(this, "native", void 0);
|
|
14
|
+
this.native = native;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* SKAd register app
|
|
19
|
+
*/
|
|
20
|
+
registerAppForAdNetworkAttribution(completionHandler) {
|
|
21
|
+
if (_reactNative.Platform.OS !== 'ios') return;
|
|
22
|
+
this.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* SKAd updatePostbackConversionValue
|
|
27
|
+
*/
|
|
28
|
+
updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
29
|
+
if (_reactNative.Platform.OS !== 'ios') return;
|
|
30
|
+
this.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
35
|
+
* Get referrer on server
|
|
36
|
+
*/
|
|
37
|
+
getReferrerOnServer(callback) {
|
|
38
|
+
this.native.getDeferredDeeplink(callback);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
43
|
+
* Get referrer on server value
|
|
44
|
+
*/
|
|
45
|
+
getReferrerOnServerValue(key, callback) {
|
|
46
|
+
this.native.getDeferredDeeplinkValue(key, callback);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.AffiseIos = AffiseIos;
|
|
50
|
+
//# sourceMappingURL=AffiseIos.js.map
|