Skip to content

Commit

Permalink
Merge pull request #28 from AppsFlyerSDK/dev/DELIVERY-54558/update-6.…
Browse files Browse the repository at this point in the history
…13.0

6.13.0 + DMA consent
  • Loading branch information
amit-kremer93 authored Mar 3, 2024
2 parents b2e219b + c8eb6c8 commit 22a0609
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
10 changes: 5 additions & 5 deletions AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<RootNamespace>AppsFlyerBinding.Android</RootNamespace>
<AssemblyName>AppsFlyerBinding.Android</AssemblyName>
<!--x.x.x.build_ver, platform_extension includes this value -->
<AssemblyVersion>6.12.2.6</AssemblyVersion>
<FileVersion>6.12.2</FileVersion>
<AssemblyVersion>6.13.0</AssemblyVersion>
<FileVersion>6.13.0</FileVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
</PropertyGroup>
Expand All @@ -22,7 +22,7 @@
<Copyright>AppsFlyer</Copyright>
<PackageProjectUrl>https://github.com/AppsFlyerSDK/XamarinAndroidBinding</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>6.12.2</PackageVersion>
<PackageVersion>6.13.0</PackageVersion>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -41,12 +41,12 @@
<TransformFile Include="Transforms\*.xml" />
</ItemGroup>

<!-- <ItemGroup>
<ItemGroup>
<None Remove="Xamarin.Kotlin.StdLib.Jdk7" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk7" Version="1.5.10" />
</ItemGroup>-->
</ItemGroup>

</Project>
Binary file not shown.
Binary file not shown.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

## <a id="v6-breaking-changes"> ❗ v6 Breaking Changes

Expand Down Expand Up @@ -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)


Expand Down Expand Up @@ -406,7 +407,30 @@ AppsFlyerLib.Instance.SetCustomerIdAndLogSession("custom_id", this.BaseContext);
```c#
AppsFlyerLib.Instance.SetPreinstallAttribution(string mediaSource, string campaign, string siteId);
```
### <a id="DMAConsent">

## 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.<br>
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");
```

### <a id="sample_app">
## Sample App
Expand Down
4 changes: 2 additions & 2 deletions pack.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 22a0609

Please sign in to comment.