Skip to content

Commit 59b687d

Browse files
committed
Working Android and iOS Custom data params
Freemium delegates working for both Android and iOS SK1 & SK2
1 parent 060e732 commit 59b687d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

ios/PCAppsFlyer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#if __has_include(<PurchaseConnector/PurchaseConnector.h>)
1111
#import <PurchaseConnector/PurchaseConnector.h>
1212

13-
@interface PCAppsFlyer: RCTEventEmitter <RCTBridgeModule, AppsFlyerPurchaseRevenueDelegate, AppsFlyerPurchaseRevenueDataSource>
13+
@interface PCAppsFlyer: RCTEventEmitter <RCTBridgeModule, AppsFlyerPurchaseRevenueDelegate, AppsFlyerPurchaseRevenueDataSource, AppsFlyerPurchaseRevenueDataSourceStoreKit2>
1414
// This is the PCAppsFlyer if the AppsFlyerPurchaseConnector is set to true in the podfile
1515
@property (nonatomic, strong) NSDictionary *purchaseRevenueParams;
1616
@property (nonatomic, strong) NSDictionary *purchaseRevenueStoreKit2Params;

ios/PCAppsFlyer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ - (NSDictionary *)purchaseRevenueAdditionalParametersForProducts:(NSSet<SKProduc
153153
}
154154

155155
// Delegate method for StoreKit2
156-
- (NSDictionary *)purchaseRevenueAdditionalParametersStoreKit2ForProducts:(NSSet<AFSDKProductSK2 *> *)products
156+
- (NSDictionary<NSString *, id> *)purchaseRevenueAdditionalParametersStoreKit2ForProducts:(NSSet<AFSDKProductSK2 *> *)products
157157
transactions:(NSSet<AFSDKTransactionSK2 *> *)transactions {
158158
// Simply return the parameters that were set from React Native
159159
return self.purchaseRevenueStoreKit2Params;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-appsflyer",
3-
"version": "6.15.2",
3+
"version": "6.16.2",
44
"description": "React Native Appsflyer plugin",
55
"main": "index.js",
66
"types": "index.d.ts",

react-native-appsflyer.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
# AppsFlyerPurchaseConnector
2020
if defined?($AppsFlyerPurchaseConnector) && ($AppsFlyerPurchaseConnector == true)
2121
Pod::UI.puts "#{s.name}: Including PurchaseConnector."
22-
s.dependency 'PurchaseConnector', '6.15.2'
22+
s.dependency 'PurchaseConnector', '6.16.2'
2323
s.exclude_files = [
2424
"ios/AFAdRevenueData.h",
2525
"ios/AppsFlyerConsent.h",
@@ -37,13 +37,13 @@ Pod::Spec.new do |s|
3737
# AppsFlyerFramework
3838
if defined?($RNAppsFlyerStrictMode) && ($RNAppsFlyerStrictMode == true)
3939
Pod::UI.puts "#{s.name}: Using AppsFlyerFramework/Strict mode"
40-
s.dependency 'AppsFlyerFramework/Strict', '6.15.2'
40+
s.dependency 'AppsFlyerFramework/Strict', '6.16.2'
4141
s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AFSDK_NO_IDFA=1' }
4242
else
4343
if !defined?($RNAppsFlyerStrictMode)
4444
Pod::UI.puts "#{s.name}: Using default AppsFlyerFramework. You may require App Tracking Transparency. Not allowed for Kids apps."
4545
Pod::UI.puts "#{s.name}: You may set variable `$RNAppsFlyerStrictMode=true` in Podfile to use strict mode for kids apps."
4646
end
47-
s.dependency 'AppsFlyerFramework', '6.15.2'
47+
s.dependency 'AppsFlyerFramework', '6.16.2'
4848
end
4949
end

0 commit comments

Comments
 (0)