Commit 5446559
Upgrade to AppsFlyer SDK v6.17.3 and add validateAndLogInAppPurchaseV2 API (Beta) (#411)
* Purchase connector for flutter
* runOnUi
* Nullable
* handle callbacks
* ui thread callback
* swift bridge file
* register callback
* docs
* fixed the issue with MediationNetwork enums on Android
- added a usage example of the api for testing.
* This should fix the NullPointerException
* Delivery 76214/update purchase connector version (#363)
* bumped up PC versions
* set back ios version
* adding a note on the supported StoreKit to docs
* typo fix
* Squashed commit of the following:
commit fa71c23
Merge: f420460 4f4ee27
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Thu Oct 31 15:16:50 2024 +0200
Merge remote-tracking branch 'origin/development' into development
commit f420460
Author: Dani Koza <103039399+Dani-Koza-AF@users.noreply.github.com>
Date: Wed Oct 30 15:50:41 2024 +0200
Releases/6.x.x/6.15.x/6.15.2 rc1 (#358)
* fixed the issue with MediationNetwork enums on Android
* Added a usage example of the logAdRevenue api for testing.
* Fix to the NullPointerException some clients face.
* Versioning and change log
commit 4f4ee27
Merge: a58a49b 25fb530
Author: Dani Koza <103039399+Dani-Koza-AF@users.noreply.github.com>
Date: Wed Oct 30 14:47:17 2024 +0200
Merge pull request #357 from AppsFlyerSDK/DELIVERY-63011/fix-android-null-pointer-exception
This should fix the NullPointerException
commit 25fb530
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Wed Oct 30 14:26:26 2024 +0200
This should fix the NullPointerException
commit a58a49b
Merge: 6213341 b85b1a4
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Mon Oct 28 12:30:10 2024 +0200
Merge remote-tracking branch 'origin/development' into development
commit b85b1a4
Merge: 82764a4 6529458
Author: Dani Koza <103039399+Dani-Koza-AF@users.noreply.github.com>
Date: Mon Oct 28 12:15:32 2024 +0200
Merge pull request #353 from AppsFlyerSDK/dev/DELIVERY-71973/mediation-network-value-fix
Fixed the issue with MediationNetwork enums on Android
commit 6529458
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Sun Oct 27 17:47:00 2024 +0200
fixed the issue with MediationNetwork enums on Android
- added a usage example of the api for testing.
commit 6213341
Merge: 3272d7e 82764a4
Author: Dani-Koza-AF <103039399+Dani-Koza-AF@users.noreply.github.com>
Date: Wed Sep 4 15:51:28 2024 +0300
Merge pull request #338 from AppsFlyerSDK/releases/6.x.x/6.15.x/6.15.1-rc1
Releases/6.x.x/6.15.x/6.15.1 rc1
commit 82764a4
Merge: 3272d7e 6b76d63
Author: Dani-Koza-AF <103039399+Dani-Koza-AF@users.noreply.github.com>
Date: Wed Sep 4 15:15:03 2024 +0300
Merge pull request #337 from AppsFlyerSDK/dev/DELIVERY-67805/Update-Plugin-to-v6.15.1
Update plugin to v6.15.1
commit 6b76d63
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Wed Sep 4 15:13:04 2024 +0300
Added missing info in docs
commit e7d4dc6
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Wed Sep 4 14:17:28 2024 +0300
Added documentation
commit 9f90c8e
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Tue Sep 3 17:48:33 2024 +0300
Improvement of Android side impl
commit 079ccad
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Tue Sep 3 17:22:48 2024 +0300
iOS side impl
- Helper func to get the correct enum properly.
- requireNonNullArgumentWithCall to make sure we actually get the arguments.
- Lots of null safety checks due to testing failures encountered.
commit 4a3a0d6
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Mon Sep 2 14:48:30 2024 +0300
Android side impl
- Flutter didn't like the fact that we pass enums, had to change mediation network to String, handled later on native side.
- Added an helper method to ensure null safety, hopefully will be embraced by other method in the future.
commit d74054e
Author: Dani-Koza-AF <dani.ko@appsflyer.com>
Date: Sun Sep 1 16:43:24 2024 +0300
flutter side impl
- New Enum introduced.
- New API logAdRevenue.
- New AdRevenueData class.
- Upgraded Dart SDK versions limits a bit to start from 2.17.0 .
commit 3272d7e
Merge: 95a4348 248dcf5
Author: liaz-af <61788924+liaz-af@users.noreply.github.com>
Date: Mon Aug 19 22:35:24 2024 +0300
Merge pull request #336 from dori-af/dori/udl-note
Deep link UDL - added a note
commit 248dcf5
Author: Dori Frost <dori.frost@appsflyer.com>
Date: Sun Aug 18 16:35:07 2024 +0300
Deep link UDL - added a note
Per Slack: https://appsflyer.slack.com/archives/C5RDRS58X/p1723186908673099
* closing potential memory leaks
* removed duplicated declarations =
* updated example project dependencies
Aligned Flutter's Android compileOptions to AppsFlyer's Android SDK.
* Push notification data collection documentation updates (#381)
* updated BasicIntegration.md
* docs: updated push notification API's
* reverting addition of PC
* post revert fixes
* lint
* Fixes of tests and typos
* Dev/update manual consent api (#383)
New consent api and more
- setConsentData is now deprecated.
- setConsentDataV2 is the new and recommended way to set manual user consent.
- Add getVersionNumber api, returns the plugin version.
- version bumps.
- typos fix.
- doc updates.
- bug fix.
* fixed Locale issue by forcing toUpperCase(Locale.ENGLISH) (#395)
- Expanded the unit–tests to verify not only that the right native method is invoked, but also that the correct arguments are passed.
* Doc fix (#400)
doc fix - broken link
* Add purchase connector to development branch (#402)
* removed duplicated declaration
* Update .gitignore for purchase connector feature
* Add complete Purchase Connector implementation
- Add Purchase Connector support for Android and iOS platforms
- Implement conditional compilation with include/exclude source sets
- Add comprehensive Dart API with type-safe models
- Include platform-specific error handling and validation
- Add Purchase Connector documentation
- Support for both in-app purchases and subscriptions
- Zero impact when disabled via gradle/podfile flags
New files:
- Complete lib/src/purchase_connector/ Dart implementation
- Android: include/exclude-connector source sets with ConnectorWrapper
- iOS: PurchaseConnectorPlugin.swift with conditional compilation
- Documentation: PurchaseConnector.md
Modified integration points:
- Android: build.gradle, AppsflyerSdkPlugin.java
- iOS: appsflyer_sdk.podspec with subspecs architecture
- Flutter: appsflyer_sdk.dart main export file
* Complete Purchase Connector integration with code generation
- Add missing Purchase Connector constants and AFMediationNetwork enum
- Update pubspec.yaml with required dependencies (json_annotation, build_runner, json_serializable)
- Generate JSON serialization code for all Purchase Connector models
- Fix all compilation errors and undefined references
- All 39 tests passing ✅
- Purchase Connector fully functional with type-safe models
Generated files:
- lib/appsflyer_sdk.g.dart - JSON serialization support
- All Purchase Connector model serialization methods
Dependencies added:
- json_annotation: ^4.9.0 (already present)
- build_runner: ^2.3.0
- json_serializable: ^6.5.4
* setting the proper SDK versions
* documentation small fix
* restore and solve code conflicts and ghost code
Aligned with development
* Immediate actions to prevent NullPointerExceptions (#403)
1. Fixed startSDKwithHandler() method: Null checks moved inside lambda execution
2. Fixed runOnUIThread() method: Added null check for mCallbackChannel.
3. Immediately return initSdk method when dev key is missing.
* Latest release updates - Docs + new API for Android (#406)
* add disableAppSetId() method for AppSet ID opt-out
* added a simple test for the new api
* docs
* another doc update
* documents fix lint
* doc lint
* doc
* doc fix
* last time doc fix
* docs
* Updated to AppsFlyer SDK v6.17.3 for both Android and iOS (#410)
* iOS >> Added support for Setting StoreKit2 properly
* versions bump
* Dart + Android implementation
* iOS implementation
* docs update
* purchase connector doc update for StoreKitV2 support
---------
Co-authored-by: Paz Lavi <paz.lavi@appsflyer.com>1 parent 5c40c00 commit 5446559
23 files changed
Lines changed: 848 additions & 73 deletions
File tree
- android
- src/main/java/com/appsflyer/appsflyersdk
- doc
- example
- lib
- ios
- Classes
- PurchaseConnector
- lib
- src
- purchase_connector
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 107 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| |||
796 | 802 | | |
797 | 803 | | |
798 | 804 | | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
799 | 906 | | |
800 | 907 | | |
801 | 908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
514 | 565 | | |
515 | 566 | | |
516 | 567 | | |
| |||
572 | 623 | | |
573 | 624 | | |
574 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
575 | 687 | | |
576 | 688 | | |
577 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
118 | 169 | | |
119 | 170 | | |
120 | 171 | | |
| |||
0 commit comments