diff --git a/AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj b/AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj index 08d045d..d8730e3 100644 --- a/AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj +++ b/AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj @@ -7,8 +7,8 @@ AppsFlyerBinding.Android AppsFlyerBinding.Android - 6.12.2.6 - 6.12.2 + 6.13.0 + 6.13.0 true 21 @@ -22,7 +22,7 @@ AppsFlyer https://github.com/AppsFlyerSDK/XamarinAndroidBinding README.md - 6.12.2 + 6.13.0 @@ -41,12 +41,12 @@ - + \ No newline at end of file diff --git a/AppsFlyerBinding.Android/Jars/af-android-sdk-6.12.2.aar b/AppsFlyerBinding.Android/Jars/af-android-sdk-6.12.2.aar deleted file mode 100644 index 69d2c1b..0000000 Binary files a/AppsFlyerBinding.Android/Jars/af-android-sdk-6.12.2.aar and /dev/null differ diff --git a/AppsFlyerBinding.Android/Jars/af-android-sdk-6.13.0.aar b/AppsFlyerBinding.Android/Jars/af-android-sdk-6.13.0.aar new file mode 100644 index 0000000..73b484f Binary files /dev/null and b/AppsFlyerBinding.Android/Jars/af-android-sdk-6.13.0.aar differ diff --git a/README.md b/README.md index fe63ed2..2e472de 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Xamarin Binding integration guide For Android -AppsFlyer Xamarin Binding version `v6.12.2` -Built with AppsFlyer Android SDK `v6.12.2` +AppsFlyer Xamarin Binding version `v6.13.0` +Built with AppsFlyer Android SDK `v6.13.0` ## ❗ v6 Breaking Changes @@ -45,6 +45,7 @@ The API for the binding coincides with the native Android API, which can be foun - [Stop](#Stop) - [Wait For Customer User ID](#WaitForCustomerUserId) - [SetPreinstallAttribution](#SetPreinstallAttribution) + - [DMA Consent](#DMAConsent) - [Sample App](#sample_app) @@ -406,7 +407,30 @@ AppsFlyerLib.Instance.SetCustomerIdAndLogSession("custom_id", this.BaseContext); ```c# AppsFlyerLib.Instance.SetPreinstallAttribution(string mediaSource, string campaign, string siteId); ``` +### +## DMA Consent + +As part of the EU Digital Marketing Act (DMA) legislation, big tech companies must get consent from European end users before using personal data from third-party services for advertising.
+Read more [here](https://dev.appsflyer.com/hc/docs/android-send-consent-for-dma-compliance) +```c# +//Automatic collection +AppsFlyerLib.Instance.EnableTCFDataCollection(true); // When using CMP, the SDK will collect the consent data + +// OR + +// Manual collection +// hasConsentForDataUsage (1st argument): Indicates whether the user has consented to use their data for advertising purposes. +// hasConsentForAdsPersonalization (2nd argument): Indicates whether the user has consented to use their data for personalized advertising purposes. +AppsFlyerConsent consent = AppsFlyerConsent.ForGDPRUser(true, true); +// or +// If GDPR doesn’t apply to the user +AppsFlyerConsent consent = AppsFlyerConsent.ForNonGDPRUser(); + +AppsFlyerLib.Instance.SetConsentData(consent); +... +AppsFlyerLib.Instance.Start(this.Application, "xXxXxXx"); +``` ###
## Sample App diff --git a/pack.sh b/pack.sh old mode 100644 new mode 100755 index 39eedd6..b9dbe45 --- a/pack.sh +++ b/pack.sh @@ -1,8 +1,8 @@ rm -rf AppsFlyerBinding.Android/bin rm -rf AppsFlyerBinding.Android/obj -dotnet clean -dotnet restore +dotnet clean AppsFlyerBinding.Android/ +dotnet restore AppsFlyerBinding.Android/ dotnet pack -c Release AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj mv AppsFlyerBinding.Android/bin/Release/AppsFlyerXamarinBinding*.nupkg nugets/ \ No newline at end of file