Skip to content

Commit d9144e6

Browse files
authored
Merge pull request #314 from AppsFlyerSDK/dev/DELIVERY-60212/privacy-manifest
iOS Privacy Manifest
2 parents 0990c11 + 48df129 commit d9144e6

File tree

9 files changed

+86
-9
lines changed

9 files changed

+86
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Versions
2+
## 6.14.2
3+
- Bump version to iOS v6.14.2 and Android v6.14.0
4+
- Added Privacy Manifest to support Apple latest changes: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
25
## 6.13.2+1
36
- Hotfix for manualStart on iOS
47
## 6.13.2

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ android {
3131
dependencies {
3232
implementation fileTree(dir: 'libs', include: ['*.jar'])
3333
implementation 'androidx.appcompat:appcompat:1.0.0'
34-
implementation 'com.appsflyer:af-android-sdk:6.13.0'
34+
implementation 'com.appsflyer:af-android-sdk:6.14.0'
3535
implementation 'com.android.installreferrer:installreferrer:2.1'
3636
}

android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.appsflyer.appsflyersdk;
22

33
public class AppsFlyerConstants {
4-
final static String PLUGIN_VERSION = "6.13.2";
4+
final static String PLUGIN_VERSION = "6.14.2";
55
final static String AF_APP_INVITE_ONE_LINK = "appInviteOneLink";
66
final static String AF_HOST_PREFIX = "hostPrefix";
77
final static String AF_HOST_NAME = "hostName";

example/lib/main_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ class MainPageState extends State<MainPage> {
9393
if (Platform.isAndroid) {
9494
_appsflyerSdk.performOnDeepLinking();
9595
}
96-
9796
setState(() {}); // Call setState to rebuild the widget
9897
}
9998

ios/Classes/AppsflyerSdkPlugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@end
1919

2020
// Appsflyer JS objects
21-
#define kAppsFlyerPluginVersion @"6.13.2"
21+
#define kAppsFlyerPluginVersion @"6.14.2"
2222
#define afDevKey @"afDevKey"
2323
#define afAppId @"afAppId"
2424
#define afIsDebug @"isDebug"
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyCollectedDataTypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyCollectedDataType</key>
9+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
10+
<key>NSPrivacyCollectedDataTypeLinked</key>
11+
<true/>
12+
<key>NSPrivacyCollectedDataTypeTracking</key>
13+
<true/>
14+
<key>NSPrivacyCollectedDataTypePurposes</key>
15+
<array>
16+
<string>NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising</string>
17+
</array>
18+
</dict>
19+
<dict>
20+
<key>NSPrivacyCollectedDataType</key>
21+
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
22+
<key>NSPrivacyCollectedDataTypeLinked</key>
23+
<false/>
24+
<key>NSPrivacyCollectedDataTypeTracking</key>
25+
<false/>
26+
<key>NSPrivacyCollectedDataTypePurposes</key>
27+
<array>
28+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
29+
</array>
30+
</dict>
31+
</array>
32+
<key>NSPrivacyTrackingDomains</key>
33+
<array>
34+
<string>att-attr.whappsflyer.com</string>
35+
<string>att-attr.appsflyer-cn.com</string>
36+
<string>att-attr.hevents.appsflyer-cn.com</string>
37+
<string>att-launches.whappsflyer.com</string>
38+
<string>att-launches.appsflyer-cn.com</string>
39+
<string>att-launches.hevents.appsflyer-cn.com</string>
40+
<string>att-conversions.hevents.appsflyer-cn.com</string>
41+
<string>att-conversions.appsflyer-cn.com</string>
42+
<string>att-conversions.whappsflyer.com</string>
43+
<string>att-dlsdk.hevents.appsflyer-cn.com</string>
44+
<string>att-dlsdk.appsflyer-cn.com</string>
45+
<string>att-dlsdk.whappsflyer.com</string>
46+
<string>att-dlsdk.appsflyersdk.com</string>
47+
<string>att-conversions.appsflyersdk.com</string>
48+
<string>att-launches.appsflyersdk.com</string>
49+
<string>att-attr.appsflyersdk.com</string>
50+
</array>
51+
<key>NSPrivacyTracking</key>
52+
<true/>
53+
<key>NSPrivacyAccessedAPITypes</key>
54+
<array>
55+
<dict>
56+
<key>NSPrivacyAccessedAPITypeReasons</key>
57+
<array>
58+
<string>CA92.1</string>
59+
</array>
60+
<key>NSPrivacyAccessedAPIType</key>
61+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
62+
</dict>
63+
<dict>
64+
<key>NSPrivacyAccessedAPITypeReasons</key>
65+
<array>
66+
<string>C617.1</string>
67+
</array>
68+
<key>NSPrivacyAccessedAPIType</key>
69+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
70+
</dict>
71+
</array>
72+
</dict>
73+
</plist>

ios/appsflyer_sdk.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'appsflyer_sdk'
6-
s.version = '6.13.2'
6+
s.version = '6.14.2'
77
s.summary = 'AppsFlyer Integration for Flutter'
88
s.description = <<-DESC
99
AppsFlyer is the market leader in mobile advertising attribution & analytics, helping marketers to pinpoint their targeting, optimize their ad spend and boost their ROI.
@@ -21,6 +21,6 @@ AppsFlyer is the market leader in mobile advertising attribution & analytics, he
2121
s.source_files = 'Classes/**/*'
2222
s.public_header_files = 'Classes/**/*.h'
2323
s.dependency 'Flutter'
24-
s.ios.dependency 'AppsFlyerFramework', '6.13.2'
25-
24+
s.ios.dependency 'AppsFlyerFramework','6.14.2'
25+
s.resource_bundles = {'flutter_appsflyer_sdk_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
2626
end

lib/src/appsflyer_sdk.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class AppsflyerSdk {
4141
Map<String, dynamic> validatedOptions = {};
4242

4343
bool? manualStart = options.manualStart;
44-
validatedOptions[AppsflyerConstants.AF_MANUAL_START] = manualStart;
44+
if (manualStart != null) {
45+
validatedOptions[AppsflyerConstants.AF_MANUAL_START] = manualStart;
46+
}
4547

4648
//validations
4749
dynamic devKey = options.afDevKey;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appsflyer_sdk
22
description: A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.
3-
version: 6.13.2+1
3+
version: 6.14.1
44

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

0 commit comments

Comments
 (0)