Skip to content

Commit 58b3aa3

Browse files
committed
Added support to BL8, updated docs accordingly
1 parent 708504e commit 58b3aa3

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

Docs/RN_PurchaseConnector.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For more information please check the following pages:
2020

2121
The Purchase Connector feature of the AppsFlyer SDK depends on specific libraries provided by Google and Apple for managing in-app purchases:
2222

23-
- For Android, it depends on the [Google Play Billing Library](https://developer.android.com/google/play/billing/integrate) (Supported versions: 5.x.x - 7.x.x).
23+
- For Android, it depends on the [Google Play Billing Library](https://developer.android.com/google/play/billing/integrate).
2424
- For iOS, it depends on [StoreKit](https://developer.apple.com/documentation/storekit) (Supported versions: StoreKit1 and StoreKit2).
2525

2626
However, these dependencies aren't actively included with the SDK. This means that the responsibility of managing these dependencies and including the necessary libraries in your project falls on you as the consumer of the SDK.
@@ -29,6 +29,19 @@ If you're implementing in-app purchases in your app, you'll need to ensure that
2929

3030
Remember to appropriately manage these dependencies when implementing the Purchase Validation feature in your app. Failing to include the necessary libraries might result in failures when attempting to conduct in-app purchases or validate purchases.
3131

32+
### <a id="android-purchase-connector-compatibility"></a>Android Purchase Connector Compatibility
33+
34+
The plugin uses the [AppsFlyer Android Purchase Connector](https://github.com/AppsFlyerSDK/appsflyer-android-purchase-connector) under the hood. The Purchase Connector version must match the Google Play Billing Library version in your project.
35+
36+
| Purchase Connector Version | Supported Billing Library Versions |
37+
|---|---|
38+
| v2.1.2 | v5.x.x - v7.x.x |
39+
| v2.2.0 | v8.x.x |
40+
41+
**This version of the plugin ships with Purchase Connector v2.2.0**, which requires Google Play Billing Library 8.x.x. If you are using a third-party IAP library (such as `react-native-iap`), you must ensure it supports Billing Library 8. For `react-native-iap`, this means using **v14.0.0 or later** (the Nitro Modules version), which requires **React Native 0.79+**.
42+
43+
> **Note:** Billing Library 8 introduces breaking API changes compared to previous versions. Users of Billing Library 5.x.x - 7.x.x should use a previous version of this plugin that ships with Purchase Connector v2.1.2 or lower.
44+
3245
## <a id="adding-the-connector-to-your-project"></a>Adding The Connector To Your Project
3346

3447
The Purchase Connector feature in AppsFlyer SDK React Native Plugin is an optional enhancement that you can choose to use based on your requirements. This feature is not included by default and you'll have to opt-in if you wish to use it.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ dependencies {
7373
api "com.appsflyer:af-android-sdk:${safeExtGet('appsflyerVersion', '6.17.5')}"
7474
implementation "com.android.installreferrer:installreferrer:${safeExtGet('installReferrerVersion', '2.2')}"
7575
if (includeConnector){
76-
implementation 'com.appsflyer:purchase-connector:2.1.1'
76+
implementation 'com.appsflyer:purchase-connector:2.2.0'
7777
}
7878
}

demos/appsflyer-react-native-app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ android {
182182
}
183183

184184
dependencies {
185-
implementation "com.android.billingclient:billing:6.0.0"
185+
implementation "com.android.billingclient:billing:8.0.0"
186186

187187
implementation fileTree(dir: "libs", include: ["*.jar"])
188188
//noinspection GradleDynamicVersion

0 commit comments

Comments
 (0)