affise-attribution-lib 1.6.31 → 1.6.32
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 +44 -11
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/module/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- [Android](#android)
|
|
17
17
|
- [iOS](#ios)
|
|
18
18
|
- [Module Advertising](#module-advertising)
|
|
19
|
+
- [Module Huawei](#module-huawei)
|
|
19
20
|
- [Module Link](#module-link)
|
|
20
21
|
- [Module Status](#module-status)
|
|
21
22
|
- [Module Subscription](#module-subscription)
|
|
@@ -30,6 +31,8 @@
|
|
|
30
31
|
- [ProviderType identifiers collection](#providertype-identifiers-collection)
|
|
31
32
|
- [Attribution](#attribution)
|
|
32
33
|
- [Advertising](#advertising)
|
|
34
|
+
- [AndroidId](#androidid)
|
|
35
|
+
- [Huawei](#huawei)
|
|
33
36
|
- [Network](#network)
|
|
34
37
|
- [Phone](#phone)
|
|
35
38
|
- [Event send control](#event-send-control)
|
|
@@ -146,7 +149,7 @@ Add modules to Android project
|
|
|
146
149
|
Example [`example/android/app/build.gradle`](example/android/app/build.gradle)
|
|
147
150
|
|
|
148
151
|
```gradle
|
|
149
|
-
final affise_version = '1.6.
|
|
152
|
+
final affise_version = '1.6.56'
|
|
150
153
|
|
|
151
154
|
dependencies {
|
|
152
155
|
// Affise modules
|
|
@@ -168,11 +171,11 @@ Add modules to iOS project
|
|
|
168
171
|
|
|
169
172
|
| Module | Version | Start |
|
|
170
173
|
|----------------|:------------------------------------------------------------------------------------:|----------|
|
|
171
|
-
| `ADVERTISING` | [`1.6.
|
|
172
|
-
| `LINK` | [`1.6.
|
|
173
|
-
| `PERSISTENT` | [`1.6.
|
|
174
|
-
| `STATUS` | [`1.6.
|
|
175
|
-
| `SUBSCRIPTION` | [`1.6.
|
|
174
|
+
| `ADVERTISING` | [`1.6.49`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` |
|
|
175
|
+
| `LINK` | [`1.6.49`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
176
|
+
| `PERSISTENT` | [`1.6.49`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
177
|
+
| `STATUS` | [`1.6.49`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
178
|
+
| `SUBSCRIPTION` | [`1.6.49`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
176
179
|
|
|
177
180
|
Example [example/ios/Podfile](example/ios/Podfile)
|
|
178
181
|
|
|
@@ -180,7 +183,7 @@ Example [example/ios/Podfile](example/ios/Podfile)
|
|
|
180
183
|
target 'YourAppProject' do
|
|
181
184
|
# ...
|
|
182
185
|
|
|
183
|
-
affise_version = '1.6.
|
|
186
|
+
affise_version = '1.6.49'
|
|
184
187
|
# Affise Modules
|
|
185
188
|
pod 'AffiseModule/Advertising', affise_version
|
|
186
189
|
pod 'AffiseModule/Link', affise_version
|
|
@@ -220,6 +223,22 @@ This module required to Use [`IDFA`](https://developer.apple.com/documentation/a
|
|
|
220
223
|
|
|
221
224
|
Open `info.plist` and add key `NSUserTrackingUsageDescription` with string value. For more information [read requirements](#requirements)
|
|
222
225
|
|
|
226
|
+
#### Module Huawei
|
|
227
|
+
|
|
228
|
+
> **Warning**
|
|
229
|
+
>
|
|
230
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
231
|
+
>
|
|
232
|
+
> Use `Android` [Huawei Module](#modules) to get OAID (Open Advertising Identifier)
|
|
233
|
+
>
|
|
234
|
+
> 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
Affise.getProviders().then((providers) => {
|
|
238
|
+
const oaid = providers[ProviderType.OAID];
|
|
239
|
+
});
|
|
240
|
+
```
|
|
241
|
+
|
|
223
242
|
#### Module Link
|
|
224
243
|
|
|
225
244
|
Return last url in chan of redirection
|
|
@@ -440,8 +459,6 @@ To match users with events and data library is sending, these `ProviderType` ide
|
|
|
440
459
|
- `DEVICE_ATLAS_ID`
|
|
441
460
|
- `AFFISE_DEVICE_ID`
|
|
442
461
|
- `AFFISE_ALT_DEVICE_ID`
|
|
443
|
-
- `ANDROID_ID`
|
|
444
|
-
- `ANDROID_ID_MD5`
|
|
445
462
|
- `REFTOKEN`
|
|
446
463
|
- `REFTOKENS`
|
|
447
464
|
- `REFERRER`
|
|
@@ -488,13 +505,21 @@ To match users with events and data library is sending, these `ProviderType` ide
|
|
|
488
505
|
|
|
489
506
|
- `GAID_ADID`
|
|
490
507
|
- `GAID_ADID_MD5`
|
|
491
|
-
- `OAID`
|
|
492
|
-
- `OAID_MD5`
|
|
493
508
|
- `ADID`
|
|
494
509
|
- `ALTSTR_ADID`
|
|
495
510
|
- `FIREOS_ADID`
|
|
496
511
|
- `COLOROS_ADID`
|
|
497
512
|
|
|
513
|
+
### AndroidId
|
|
514
|
+
|
|
515
|
+
- `ANDROID_ID`
|
|
516
|
+
- `ANDROID_ID_MD5`
|
|
517
|
+
|
|
518
|
+
### Huawei
|
|
519
|
+
|
|
520
|
+
- `OAID`
|
|
521
|
+
- `OAID_MD5`
|
|
522
|
+
|
|
498
523
|
### Network
|
|
499
524
|
|
|
500
525
|
- `MAC_SHA1`
|
|
@@ -820,10 +845,18 @@ but if there is no network connection or device is disabled, events are kept loc
|
|
|
820
845
|
|
|
821
846
|
## Advertising Identifier (google) tracking
|
|
822
847
|
|
|
848
|
+
> **Note**
|
|
849
|
+
>
|
|
850
|
+
> Requires [Affise Advertising Module](#modules)
|
|
851
|
+
|
|
823
852
|
Advertising Identifier (google) tracking is supported automatically, no actions needed
|
|
824
853
|
|
|
825
854
|
## Open Advertising Identifier (huawei) tracking
|
|
826
855
|
|
|
856
|
+
> **Note**
|
|
857
|
+
>
|
|
858
|
+
> Requires [Affise Huawei Module](#modules)
|
|
859
|
+
|
|
827
860
|
Open Advertising Identifier is supported automatically, no actions needed
|
|
828
861
|
|
|
829
862
|
## Install referrer tracking
|
|
@@ -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.49'
|
|
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.56'
|
|
6
6
|
agp_version = '7.2.2'
|
|
7
7
|
}
|
|
8
8
|
|
package/lib/commonjs/index.js
CHANGED
package/lib/module/index.js
CHANGED
package/package.json
CHANGED