Skip to content

Commit

Permalink
Merge pull request #314 from AppsFlyerSDK/dev/DELIVERY-60212/privacy-…
Browse files Browse the repository at this point in the history
…manifest

iOS Privacy Manifest
  • Loading branch information
al-af authored Apr 21, 2024
2 parents 0990c11 + 48df129 commit d9144e6
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Versions
## 6.14.2
- Bump version to iOS v6.14.2 and Android v6.14.0
- Added Privacy Manifest to support Apple latest changes: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
## 6.13.2+1
- Hotfix for manualStart on iOS
## 6.13.2
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.appsflyer:af-android-sdk:6.13.0'
implementation 'com.appsflyer:af-android-sdk:6.14.0'
implementation 'com.android.installreferrer:installreferrer:2.1'
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.appsflyer.appsflyersdk;

public class AppsFlyerConstants {
final static String PLUGIN_VERSION = "6.13.2";
final static String PLUGIN_VERSION = "6.14.2";
final static String AF_APP_INVITE_ONE_LINK = "appInviteOneLink";
final static String AF_HOST_PREFIX = "hostPrefix";
final static String AF_HOST_NAME = "hostName";
Expand Down
1 change: 0 additions & 1 deletion example/lib/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class MainPageState extends State<MainPage> {
if (Platform.isAndroid) {
_appsflyerSdk.performOnDeepLinking();
}

setState(() {}); // Call setState to rebuild the widget
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/AppsflyerSdkPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@end

// Appsflyer JS objects
#define kAppsFlyerPluginVersion @"6.13.2"
#define kAppsFlyerPluginVersion @"6.14.2"
#define afDevKey @"afDevKey"
#define afAppId @"afAppId"
#define afIsDebug @"isDebug"
Expand Down
73 changes: 73 additions & 0 deletions ios/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<true/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array>
<string>att-attr.whappsflyer.com</string>
<string>att-attr.appsflyer-cn.com</string>
<string>att-attr.hevents.appsflyer-cn.com</string>
<string>att-launches.whappsflyer.com</string>
<string>att-launches.appsflyer-cn.com</string>
<string>att-launches.hevents.appsflyer-cn.com</string>
<string>att-conversions.hevents.appsflyer-cn.com</string>
<string>att-conversions.appsflyer-cn.com</string>
<string>att-conversions.whappsflyer.com</string>
<string>att-dlsdk.hevents.appsflyer-cn.com</string>
<string>att-dlsdk.appsflyer-cn.com</string>
<string>att-dlsdk.whappsflyer.com</string>
<string>att-dlsdk.appsflyersdk.com</string>
<string>att-conversions.appsflyersdk.com</string>
<string>att-launches.appsflyersdk.com</string>
<string>att-attr.appsflyersdk.com</string>
</array>
<key>NSPrivacyTracking</key>
<true/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
</dict>
</array>
</dict>
</plist>
6 changes: 3 additions & 3 deletions ios/appsflyer_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'appsflyer_sdk'
s.version = '6.13.2'
s.version = '6.14.2'
s.summary = 'AppsFlyer Integration for Flutter'
s.description = <<-DESC
AppsFlyer is the market leader in mobile advertising attribution & analytics, helping marketers to pinpoint their targeting, optimize their ad spend and boost their ROI.
Expand All @@ -21,6 +21,6 @@ AppsFlyer is the market leader in mobile advertising attribution & analytics, he
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.ios.dependency 'AppsFlyerFramework', '6.13.2'

s.ios.dependency 'AppsFlyerFramework','6.14.2'
s.resource_bundles = {'flutter_appsflyer_sdk_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
end
4 changes: 3 additions & 1 deletion lib/src/appsflyer_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class AppsflyerSdk {
Map<String, dynamic> validatedOptions = {};

bool? manualStart = options.manualStart;
validatedOptions[AppsflyerConstants.AF_MANUAL_START] = manualStart;
if (manualStart != null) {
validatedOptions[AppsflyerConstants.AF_MANUAL_START] = manualStart;
}

//validations
dynamic devKey = options.afDevKey;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: appsflyer_sdk
description: A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.
version: 6.13.2+1
version: 6.14.1

homepage: https://github.com/AppsFlyerSDK/flutter_appsflyer_sdk

Expand Down

0 comments on commit d9144e6

Please sign in to comment.