diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d296ab..90946cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/android/build.gradle b/android/build.gradle index 7475e8c..dfae0b9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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' } \ No newline at end of file diff --git a/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java b/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java index 0194974..b93307f 100644 --- a/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java +++ b/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java @@ -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"; diff --git a/example/lib/main_page.dart b/example/lib/main_page.dart index 4d0a241..fe03f3e 100644 --- a/example/lib/main_page.dart +++ b/example/lib/main_page.dart @@ -93,7 +93,6 @@ class MainPageState extends State { if (Platform.isAndroid) { _appsflyerSdk.performOnDeepLinking(); } - setState(() {}); // Call setState to rebuild the widget } diff --git a/ios/Classes/AppsflyerSdkPlugin.h b/ios/Classes/AppsflyerSdkPlugin.h index 1edaa6b..3bcc073 100644 --- a/ios/Classes/AppsflyerSdkPlugin.h +++ b/ios/Classes/AppsflyerSdkPlugin.h @@ -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" diff --git a/ios/Resources/PrivacyInfo.xcprivacy b/ios/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..5da2889 --- /dev/null +++ b/ios/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,73 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeDeviceID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeThirdPartyAdvertising + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + + + + NSPrivacyTrackingDomains + + att-attr.whappsflyer.com + att-attr.appsflyer-cn.com + att-attr.hevents.appsflyer-cn.com + att-launches.whappsflyer.com + att-launches.appsflyer-cn.com + att-launches.hevents.appsflyer-cn.com + att-conversions.hevents.appsflyer-cn.com + att-conversions.appsflyer-cn.com + att-conversions.whappsflyer.com + att-dlsdk.hevents.appsflyer-cn.com + att-dlsdk.appsflyer-cn.com + att-dlsdk.whappsflyer.com + att-dlsdk.appsflyersdk.com + att-conversions.appsflyersdk.com + att-launches.appsflyersdk.com + att-attr.appsflyersdk.com + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + + + NSPrivacyAccessedAPITypeReasons + + C617.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + + + + diff --git a/ios/appsflyer_sdk.podspec b/ios/appsflyer_sdk.podspec index cd3c5e1..6d56730 100644 --- a/ios/appsflyer_sdk.podspec +++ b/ios/appsflyer_sdk.podspec @@ -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. @@ -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 diff --git a/lib/src/appsflyer_sdk.dart b/lib/src/appsflyer_sdk.dart index 8f838e3..1363919 100644 --- a/lib/src/appsflyer_sdk.dart +++ b/lib/src/appsflyer_sdk.dart @@ -41,7 +41,9 @@ class AppsflyerSdk { Map 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; diff --git a/pubspec.yaml b/pubspec.yaml index 6f74216..64e3c2d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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