affise-attribution-lib 1.6.41 → 1.6.43

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 CHANGED
@@ -23,11 +23,13 @@
23
23
  - [Module Huawei](#module-huawei)
24
24
  - [Module Link](#module-link)
25
25
  - [Module Meta](#module-meta)
26
+ - [Module Persistent](#module-persistent)
26
27
  - [Module Status](#module-status)
27
28
  - [Module Subscription](#module-subscription)
28
29
  - [AffiseProductType](#affiseproducttype)
29
30
  - [Module TikTok](#module-tiktok)
30
31
  - [Initialize](#initialize)
32
+ - [Initialization callbacks](#initialization-callbacks)
31
33
  - [Before application is published](#before-application-is-published)
32
34
  - [Domain](#domain)
33
35
  - [Requirements](#requirements)
@@ -150,7 +152,7 @@ Add modules to Android project
150
152
  Example [`example/android/app/build.gradle`](example/android/app/build.gradle)
151
153
 
152
154
  ```gradle
153
- final affise_version = '1.6.65'
155
+ final affise_version = '1.6.66'
154
156
 
155
157
  dependencies {
156
158
  // Affise modules
@@ -175,14 +177,14 @@ Add modules to iOS project
175
177
 
176
178
  | Module | Version |
177
179
  |----------------|:------------------------------------------------------------------------------------:|
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/) |
180
+ | `ADSERVICE` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
181
+ | `ADVERTISING` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
182
+ | `APPSFLYER` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
183
+ | `LINK` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
184
+ | `PERSISTENT` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
185
+ | `STATUS` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
186
+ | `SUBSCRIPTION` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
187
+ | `TIKTOK` | [`1.6.57`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
186
188
 
187
189
  Example [example/ios/Podfile](example/ios/Podfile)
188
190
 
@@ -190,7 +192,7 @@ Example [example/ios/Podfile](example/ios/Podfile)
190
192
  target 'YourAppProject' do
191
193
  # ...
192
194
 
193
- affise_version = '1.6.55'
195
+ affise_version = '1.6.57'
194
196
  # Affise Modules
195
197
  pod 'AffiseModule/AdService', affise_version
196
198
  pod 'AffiseModule/Advertising', affise_version
@@ -370,6 +372,18 @@ Affise
370
372
  .start(); // Start Affise SDK
371
373
  ```
372
374
 
375
+ #### Module Persistent
376
+
377
+ `iOS Only`
378
+
379
+ > [!NOTE]
380
+ >
381
+ > Module requires user phone to be authenticated by Apple ID
382
+ >
383
+ > It uses Apple `Security` framework to store protected information in user account
384
+
385
+ Persist `device id` value for [Get random device Id](#get-random-device-id) on application reinstall
386
+
373
387
  #### Module Status
374
388
 
375
389
  > [!CAUTION]
@@ -511,7 +525,9 @@ export default function App() {
511
525
  }
512
526
  ```
513
527
 
514
- Check if library is initialized
528
+ #### Initialization callbacks
529
+
530
+ Check Affise library initialization
515
531
 
516
532
  ```typescript
517
533
  Affise
@@ -520,9 +536,14 @@ Affise
520
536
  secretKey: "Your SDK secretKey",
521
537
  })
522
538
  .setOnInitSuccess(() => {
523
- // Called then library is initialized
539
+ // Called if library initialization succeeded
540
+ console.log(`Affise: init success`);
541
+ })
542
+ .setOnInitError((error) => {
543
+ // Called if library initialization failed
544
+ console.log(`Affise: init error ${error}`);
524
545
  })
525
- .start();
546
+ .start(); // Start Affise SDK
526
547
  ```
527
548
 
528
549
  #### Before application is published
@@ -1338,7 +1359,7 @@ Example: `https://mydomain.com`
1338
1359
  5. Once Android Studio generates the file, click **Save file** to download it.
1339
1360
  6. Upload the `assetlinks.json` file to your site, with read access for everyone, at `https://yoursite/.well-known/assetlinks.json`.
1340
1361
 
1341
- > [!IMPORTANT]
1362
+ > [!CAUTION]
1342
1363
  >
1343
1364
  > 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**.
1344
1365
 
@@ -1477,7 +1498,7 @@ Affise.getRandomUserId();
1477
1498
  >
1478
1499
  > To make `device id` more persistent on application reinstall
1479
1500
  >
1480
- > use [Affise `Persistent` Module](#modules) for `iOS`
1501
+ > use [Affise `Persistent` Module](#module-persistent) for `iOS`
1481
1502
  >
1482
1503
  > use [Affise `AndroidId` Module](#modules) for `Android`
1483
1504
 
@@ -1736,6 +1757,44 @@ Affise.debug.versionNative().then((version) => {
1736
1757
 
1737
1758
  # Troubleshoots
1738
1759
 
1760
+ > [!CAUTION]
1761
+ >
1762
+ > 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
1763
+ >
1764
+ > If Affise settings doesn't change after version update or api is working incorrectly.
1765
+ >
1766
+ > **First**: try **reset cache** for `React Native`. `npm start -- --reset-cache` or `npm cache clean --force`
1767
+ >
1768
+ > **Second**: completely stop application on device **and** stop `React Native` `Metro server`
1769
+ >
1770
+ > React Native relaunch `JavaScript`/`TypeScript` on live code change,
1771
+ > but native code (such as Affise native library) won't restart
1772
+ > unless Android application is **manually restarted** or **completely rebuild**
1773
+ >
1774
+ > 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
1775
+
1776
+ > [!NOTE]
1777
+ >
1778
+ > 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
1779
+ >
1780
+ > Then reporting a **BUG**
1781
+ >
1782
+ > **Please** provide information:
1783
+ >
1784
+ > 1. From command `npx react-native doctor`
1785
+ >
1786
+ > 2. From command `npx react-native info`
1787
+ >
1788
+ > 3. On which platform bug occurred `iOS` or `Android`
1789
+ >
1790
+ > 4. Detailed log of a bug
1791
+ >
1792
+ > 5. Steps to reproduse a bug
1793
+ >
1794
+ > 6. Code which cause a bug
1795
+ >
1796
+ > 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
1797
+
1739
1798
  ## iOS
1740
1799
 
1741
1800
  > [!CAUTION]
@@ -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.55'
20
+ s.dependency 'AffiseInternal', '1.6.57'
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
@@ -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.65'
5
+ affise_version = '1.6.66'
6
6
  agp_version = '7.2.2'
7
7
  }
8
8
 
@@ -35,7 +35,7 @@ class AffiseDebug {
35
35
  * Debug get version of flutter library
36
36
  */
37
37
  version() {
38
- return "1.6.41";
38
+ return "1.6.43";
39
39
  }
40
40
 
41
41
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["AffiseResult","Success","value","AffiseSuccess","Failure","error","AffiseFailure","asSuccess","asFailure","isSuccess","isFailure","constructor"],"sourceRoot":"../../src","sources":["AffiseResult.ts"],"mappings":";;;;;;;;;AAAO,MAAMA,YAAY,CAAI;EAEzB,OAAOC,OAAO,CAAIC,KAAQ,EAAmB;IACzC,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,OAAOE,OAAO,CAAIC,KAAa,EAAmB;IAC9C,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,IAAWE,SAAS,GAAM;IACtB,OAAQ,IAAI,CAAiCL,KAAK;EACtD;EAEA,IAAWM,SAAS,GAAW;IAC3B,OAAQ,IAAI,CAAiCH,KAAK;EACtD;EAEA,IAAWI,SAAS,GAAY;IAC5B,OAAO,IAAI,YAAYN,aAAgB;EAC3C;EAEA,IAAWO,SAAS,GAAY;IAC5B,OAAO,CAAC,IAAI,CAACD,SAAS;EAC1B;AACJ;AAAC;AAGD,MAAMN,aAAa,SAAYH,YAAY,CAAI;EAG3CW,WAAW,CAACT,KAAQ,EAAE;IAClB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ;AAEA,MAAMI,aAAa,SAAYN,YAAY,CAAI;EAG3CW,WAAW,CAACN,KAAa,EAAE;IACvB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ"}
1
+ {"version":3,"names":["AffiseResult","Success","value","AffiseSuccess","Failure","error","AffiseFailure","asSuccess","asFailure","isSuccess","isFailure","constructor"],"sourceRoot":"../../src","sources":["AffiseResult.ts"],"mappings":";;;;;;;;;AAAO,MAAMA,YAAY,CAAI;EAEzB,OAAOC,OAAO,CAAIC,KAAQ,EAAmB;IACzC,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,OAAOE,OAAO,CAAIC,KAAa,EAAmB;IAC9C,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,IAAWE,SAAS,GAAM;IACtB,OAAQ,IAAI,CAAiCL,KAAK;EACtD;EAEA,IAAWM,SAAS,GAAW;IAC3B,OAAQ,IAAI,CAAiCH,KAAK;EACtD;EAEA,IAAWI,SAAS,GAAY;IAC5B,OAAO,IAAI,YAAYN,aAAa;EACxC;EAEA,IAAWO,SAAS,GAAY;IAC5B,OAAO,CAAC,IAAI,CAACD,SAAS;EAC1B;AACJ;AAAC;AAGD,MAAMN,aAAa,SAAYH,YAAY,CAAI;EAG3CW,WAAW,CAACT,KAAQ,EAAE;IAClB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ;AAEA,MAAMI,aAAa,SAAYN,YAAY,CAAI;EAG3CW,WAAW,CAACN,KAAa,EAAE;IACvB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ"}
@@ -29,7 +29,7 @@ export class AffiseDebug {
29
29
  * Debug get version of flutter library
30
30
  */
31
31
  version() {
32
- return "1.6.41";
32
+ return "1.6.43";
33
33
  }
34
34
 
35
35
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["AffiseResult","Success","value","AffiseSuccess","Failure","error","AffiseFailure","asSuccess","asFailure","isSuccess","isFailure","constructor"],"sourceRoot":"../../src","sources":["AffiseResult.ts"],"mappings":";;;AAAA,OAAO,MAAMA,YAAY,CAAI;EAEzB,OAAOC,OAAO,CAAIC,KAAQ,EAAmB;IACzC,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,OAAOE,OAAO,CAAIC,KAAa,EAAmB;IAC9C,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,IAAWE,SAAS,GAAM;IACtB,OAAQ,IAAI,CAAiCL,KAAK;EACtD;EAEA,IAAWM,SAAS,GAAW;IAC3B,OAAQ,IAAI,CAAiCH,KAAK;EACtD;EAEA,IAAWI,SAAS,GAAY;IAC5B,OAAO,IAAI,YAAYN,aAAgB;EAC3C;EAEA,IAAWO,SAAS,GAAY;IAC5B,OAAO,CAAC,IAAI,CAACD,SAAS;EAC1B;AACJ;AAGA,MAAMN,aAAa,SAAYH,YAAY,CAAI;EAG3CW,WAAW,CAACT,KAAQ,EAAE;IAClB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ;AAEA,MAAMI,aAAa,SAAYN,YAAY,CAAI;EAG3CW,WAAW,CAACN,KAAa,EAAE;IACvB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ"}
1
+ {"version":3,"names":["AffiseResult","Success","value","AffiseSuccess","Failure","error","AffiseFailure","asSuccess","asFailure","isSuccess","isFailure","constructor"],"sourceRoot":"../../src","sources":["AffiseResult.ts"],"mappings":";;;AAAA,OAAO,MAAMA,YAAY,CAAI;EAEzB,OAAOC,OAAO,CAAIC,KAAQ,EAAmB;IACzC,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,OAAOE,OAAO,CAAIC,KAAa,EAAmB;IAC9C,OAAO,IAAIC,aAAa,CAAID,KAAK,CAAC;EACtC;EAEA,IAAWE,SAAS,GAAM;IACtB,OAAQ,IAAI,CAAiCL,KAAK;EACtD;EAEA,IAAWM,SAAS,GAAW;IAC3B,OAAQ,IAAI,CAAiCH,KAAK;EACtD;EAEA,IAAWI,SAAS,GAAY;IAC5B,OAAO,IAAI,YAAYN,aAAa;EACxC;EAEA,IAAWO,SAAS,GAAY;IAC5B,OAAO,CAAC,IAAI,CAACD,SAAS;EAC1B;AACJ;AAGA,MAAMN,aAAa,SAAYH,YAAY,CAAI;EAG3CW,WAAW,CAACT,KAAQ,EAAE;IAClB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ;AAEA,MAAMI,aAAa,SAAYN,YAAY,CAAI;EAG3CW,WAAW,CAACN,KAAa,EAAE;IACvB,KAAK,EAAE;IAAC;IACR,IAAI,CAACA,KAAK,GAAGA,KAAK;EACtB;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "affise-attribution-lib",
3
- "version": "1.6.41",
3
+ "version": "1.6.43",
4
4
  "description": "Affise Attribution Library",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -33,7 +33,7 @@ export class AffiseDebug implements AffiseDebugApi {
33
33
  * Debug get version of flutter library
34
34
  */
35
35
  version(): string {
36
- return "1.6.41";
36
+ return "1.6.43";
37
37
  }
38
38
 
39
39
  /**
@@ -17,7 +17,7 @@ export class AffiseResult<T> {
17
17
  }
18
18
 
19
19
  public get isSuccess(): boolean {
20
- return this instanceof AffiseSuccess<T>;
20
+ return this instanceof AffiseSuccess;
21
21
  }
22
22
 
23
23
  public get isFailure(): boolean {