diff --git a/CHANGELOG.md b/CHANGELOG.md
index 90946cf..67e2559 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,8 @@
# Versions
+## 6.14.3
+- Fixed mapOptions issue with manualStart
+- Inherit Privacy Manifest from the native iOS SDK via Cocoapods
+- Bump iOS version to 6.14.3
## 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
diff --git a/README.md b/README.md
index fbf698c..130c50f 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
### This plugin is built for
- Android AppsFlyer SDK **v6.14.0**
-- iOS AppsFlyer SDK **v6.14.2**
+- iOS AppsFlyer SDK **v6.14.3**
## โโ Breaking changes when updating to v6.x.xโโ
diff --git a/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java b/android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java
index b93307f..36a8c25 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.14.2";
+ final static String PLUGIN_VERSION = "6.14.3";
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/doc/Installation.md b/doc/Installation.md
index 73c41b6..fe8be44 100644
--- a/doc/Installation.md
+++ b/doc/Installation.md
@@ -10,6 +10,10 @@ flutter pub add appsflyer_sdk
This will download the AppsFlyer flutter plugin to your project, you may observe the changes in your `pubspec.yaml` file.
+---
+## Huawei Referrer
+Huawei Referrer is supported in SDK v6.14.0 and above.
+Due to changes in the Huawei AppGallery store, previous versions of the AppsFlyer SDK are not able to fetch the referrer from the store. [Learn more](https://dev.appsflyer.com/hc/docs/install-android-sdk#huawei-install-referrer).
---
## ๐จโ๐ฉโ๐งโ๐ฆ Strict mode for Kids Apps
diff --git a/example/lib/main_page.dart b/example/lib/main_page.dart
index fe03f3e..e0da017 100644
--- a/example/lib/main_page.dart
+++ b/example/lib/main_page.dart
@@ -32,6 +32,16 @@ class MainPageState extends State {
showDebug: true,
timeToWaitForATTUserAuthorization: 15,
manualStart: true);
+ /*
+ final Map? map = {
+ 'afDevKey': dotenv.env["DEV_KEY"]!,
+ 'appId': dotenv.env["APP_ID"]!,
+ 'isDebug': true,
+ 'timeToWaitForATTUserAuthorization': 15.0//,
+ //'manualStart': false
+ };
+ _appsflyerSdk = AppsflyerSdk(map);
+ */
_appsflyerSdk = AppsflyerSdk(options);
/*
diff --git a/ios/Classes/AppsflyerSdkPlugin.h b/ios/Classes/AppsflyerSdkPlugin.h
index 3bcc073..a6055a9 100644
--- a/ios/Classes/AppsflyerSdkPlugin.h
+++ b/ios/Classes/AppsflyerSdkPlugin.h
@@ -18,7 +18,7 @@
@end
// Appsflyer JS objects
-#define kAppsFlyerPluginVersion @"6.14.2"
+#define kAppsFlyerPluginVersion @"6.14.3"
#define afDevKey @"afDevKey"
#define afAppId @"afAppId"
#define afIsDebug @"isDebug"
diff --git a/ios/Resources/PrivacyInfo.xcprivacy b/ios/Resources/PrivacyInfo.xcprivacy
deleted file mode 100644
index 5da2889..0000000
--- a/ios/Resources/PrivacyInfo.xcprivacy
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
- 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 6d56730..2c063dd 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.14.2'
+ s.version = '6.14.3'
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.
@@ -14,13 +14,12 @@ AppsFlyer is the market leader in mobile advertising attribution & analytics, he
s.source = { :git => "https://github.com/AppsFlyerSDK/flutter_appsflyer_sdk.git", :tag => s.version.to_s }
- s.ios.deployment_target = '9.0'
+ s.ios.deployment_target = '12.0'
s.requires_arc = true
s.static_framework = true
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
- s.ios.dependency 'AppsFlyerFramework','6.14.2'
- s.resource_bundles = {'flutter_appsflyer_sdk_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
+ s.ios.dependency 'AppsFlyerFramework','6.14.3'
end
diff --git a/lib/src/appsflyer_sdk.dart b/lib/src/appsflyer_sdk.dart
index 1363919..6952286 100644
--- a/lib/src/appsflyer_sdk.dart
+++ b/lib/src/appsflyer_sdk.dart
@@ -112,6 +112,12 @@ class AppsflyerSdk {
assert(appInviteOneLink is String);
}
+ if (options[AppsflyerConstants.AF_MANUAL_START] != null) {
+ afOptions[AppsflyerConstants.AF_MANUAL_START] = options[AppsflyerConstants.AF_MANUAL_START];
+ }else{
+ afOptions[AppsflyerConstants.AF_MANUAL_START] = false;
+ }
+
afOptions[AppsflyerConstants.APP_INVITE_ONE_LINK] = appInviteOneLink;
if (options[AppsflyerConstants.DISABLE_COLLECT_ASA] != null) {
@@ -174,7 +180,7 @@ class AppsflyerSdk {
validatedOptions?[AppsflyerConstants.AF_UDL] =
registerOnDeepLinkingCallback;
//Means that we automatically starting the SDK
- if (afOptions!.manualStart! == false) {
+ if (validatedOptions?[AppsflyerConstants.AF_MANUAL_START] == false) {
_isSdkStarted = true;
}
return _methodChannel.invokeMethod("initSdk", validatedOptions);
diff --git a/pubspec.yaml b/pubspec.yaml
index b1d2584..fb17829 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.14.2
+version: 6.14.3
homepage: https://github.com/AppsFlyerSDK/flutter_appsflyer_sdk