Skip to content

Commit 0772044

Browse files
author
Amit kremer
committed
ios 6.13.1 + fix consent type
1 parent 9c46011 commit 0772044

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/pre-release-workflow.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ jobs:
5454
JIRA_TOKEN: ${{ secrets.CI_JIRA_TOKEN }}
5555
JIRA_FIXED_VERSION: "React Native SDK v${{env.PLUGIN_VERSION}}"
5656
run: |
57-
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0.9]+')
58-
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0.9]+')
5957
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0.9]+')
6058
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0.9]+')
6159
sed -i -e -r "s/Android AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md

index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,15 @@ declare module "react-native-appsflyer" {
115115
}
116116

117117
export const AppsFlyerConsent: {
118-
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => void;
119-
forNonGDPRUser: () => void;
118+
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => AppsFlyerConsentType;
119+
forNonGDPRUser: () => AppsFlyerConsentType;
120120
}
121121

122-
export type AppsFlyerConsentType = typeof AppsFlyerConsent;
122+
export interface AppsFlyerConsentType {
123+
isUserSubjectToGDPR: boolean;
124+
hasConsentForDataUsage?: boolean;
125+
hasConsentForAdsPersonalization?: boolean;
126+
}
123127

124128
const appsFlyer: {
125129
onInstallConversionData(callback: (data: ConversionData) => any): () => void;

react-native-appsflyer.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Pod::Spec.new do |s|
1818
# AppsFlyerFramework
1919
if defined?($RNAppsFlyerStrictMode) && ($RNAppsFlyerStrictMode == true)
2020
Pod::UI.puts "#{s.name}: Using AppsFlyerFramework/Strict mode"
21-
s.dependency 'AppsFlyerFramework/Strict', '6.13.0'
21+
s.dependency 'AppsFlyerFramework/Strict', '6.13.1'
2222
s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AFSDK_NO_IDFA=1' }
2323
else
2424
if !defined?($RNAppsFlyerStrictMode)
2525
Pod::UI.puts "#{s.name}: Using default AppsFlyerFramework. You may require App Tracking Transparency. Not allowed for Kids apps."
2626
Pod::UI.puts "#{s.name}: You may set variable `$RNAppsFlyerStrictMode=true` in Podfile to use strict mode for kids apps."
2727
end
28-
s.dependency 'AppsFlyerFramework', '6.13.0'
28+
s.dependency 'AppsFlyerFramework', '6.13.1'
2929
end
3030
end

0 commit comments

Comments
 (0)