Skip to content

Commit 185f7cc

Browse files
committed
Comment out beta API & Update readme
1 parent 6cd06b3 commit 185f7cc

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

Docs/RN_API.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The list of available methods for this plugin is described below.
3131
- [setSharingFilter](#setsharingfilter)
3232
- [setSharingFilterForPartners](#setsharingfilterforpartners)
3333
- [validateAndLogInAppPurchase](#validateandloginapppurchase)
34-
- [validateAndLogInAppPurchase(NEW)](#validateandloginapppurchasev2)
34+
<!-- - [validateAndLogInAppPurchase(NEW)](#validateandloginapppurchasev2) -->
3535
- [updateServerUninstallToken](#updateserveruninstalltoken)
3636
- [sendPushNotificationData](#sendpushnotificationdata)
3737
- [addPushNotificationDeepLinkPath](#addpushnotificationdeeplinkpath)
@@ -628,7 +628,7 @@ appsFlyer.validateAndLogInAppPurchase(info, res => console.log(res), err => cons
628628
```
629629

630630
---
631-
631+
<!--
632632
## New In-App Purchase Validation API
633633
The new `validateAndLogInAppPurchase` API uses `AFPurchaseDetails` and `AFPurchaseType` enum for structured purchase validation.
634634
@@ -667,13 +667,13 @@ const additionalParams = {
667667
currency: "USD"
668668
};
669669
670-
appsFlyer.validateAndLogInAppPurchase(
670+
appsFlyer.validateAndLogInAppPurchaseV2(
671671
purchaseDetails,
672672
additionalParams,
673673
(result) => console.log(result)
674674
);
675675
```
676-
676+
-->
677677
---
678678

679679
### updateServerUninstallToken

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
1313
### <a id="plugin-build-for"> This plugin is built for
1414

15-
- Android AppsFlyer SDK **v6.17.3**
16-
- iOS AppsFlyer SDK **v6.17.3**
15+
- Android AppsFlyer SDK **v6.17.5**
16+
- iOS AppsFlyer SDK **v6.17.5**
1717
- Minimum tested with React-Native **v0.62.0** (older versions might be supported)
1818

1919
## <a id="release-updates"> Release Updates

index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,14 @@ declare module "react-native-appsflyer" {
372372
/**
373373
* [NEW API] This is the new validateAndLogInAppPurchase API with AFPurchaseDetails.
374374
* Uses event emitter pattern for callback handling.
375-
*/
375+
376376
validateAndLogInAppPurchaseV2(
377377
purchaseDetails: AFPurchaseDetails,
378378
additionalParameters?: { [key: string]: any },
379379
callback?: (data: any) => void
380380
): void;
381-
381+
*/
382+
382383
updateServerUninstallToken(token: string, successC?: SuccessCB): void;
383384
sendPushNotificationData(pushPayload: object, errorC?: ErrorCB): void;
384385
setHost(hostPrefix: string, hostName: string, success: SuccessCB): void;

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,9 @@ appsFlyer.onDeepLink = (callback) => {
740740

741741

742742
/**
743+
* TODO: Remove comment when the API is stable
743744
* New validateAndLogInAppPurchase API with AFPurchaseDetails support.
744-
*/
745+
*
745746
appsFlyer.validateAndLogInAppPurchaseV2 = (purchaseDetails, additionalParameters , callback) => {
746747
const listener = appsFlyerEventEmitter.addListener("onValidationResult", (_data) => {
747748
if (callback && typeof callback === 'function') {
@@ -767,6 +768,7 @@ appsFlyer.validateAndLogInAppPurchaseV2 = (purchaseDetails, additionalParameters
767768
listener.remove();
768769
};
769770
};
771+
*/
770772

771773
/**
772774
* Anonymize user Data.

0 commit comments

Comments
 (0)