Skip to content

Commit 59a2f2a

Browse files
authored
Merge pull request #16 from adjust/v4210
Version 4.21.0
2 parents c32421e + a39a0bf commit 59a2f2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+293
-230
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
### Version 4.21.0 (25th March 2021)
2+
#### Added
3+
- Added `disableThirdPartySharing` method to `Adjust` interface to allow disabling of data sharing with third parties outside of Adjust ecosystem.
4+
- Added support for signature library as a plugin.
5+
- Added more aggressive sending retry logic for install session package.
6+
- Added additional parameters to `ad_revenue` package payload.
7+
- Added external device ID support.
8+
9+
#### Native SDKs
10+
- [[email protected]][ios_sdk_v4.21.0]
11+
- [[email protected]][android_sdk_v4.21.0]
12+
13+
---
14+
115
### Version 4.18.1 (9th October 2019)
216
#### Fixed
317
- Fixed lack of `getAdid` method implementation in native iOS bridge (thanks to @HenriBeck).
@@ -83,7 +97,8 @@
8397
[ios_sdk_v4.17.3]: https://github.com/adjust/ios_sdk/tree/v4.17.3
8498
[ios_sdk_v4.18.0]: https://github.com/adjust/ios_sdk/tree/v4.18.0
8599
[ios_sdk_v4.18.3]: https://github.com/adjust/ios_sdk/tree/v4.18.3
100+
[ios_sdk_v4.21.0]: https://github.com/adjust/ios_sdk/tree/v4.21.0
86101

87102
[android_sdk_v4.17.0]: https://github.com/adjust/android_sdk/tree/v4.17.0
88103
[android_sdk_v4.18.0]: https://github.com/adjust/android_sdk/tree/v4.18.0
89-
[android_sdk_v4.18.3]: https://github.com/adjust/android_sdk/tree/v4.18.3
104+
[android_sdk_v4.21.0]: https://github.com/adjust/android_sdk/tree/v4.21.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2018 adjust GmbH
3+
Copyright (c) 2012-2020 Adjust GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ This is the Flutter SDK of Adjust™. You can read more about Adjust™ at [adju
6666
* [Event buffering](#af-event-buffering)
6767
* [Background tracking](#af-background-tracking)
6868
* [GDPR right to be forgotten](#af-gdpr-forget-me)
69+
* [Disable third-party sharing](#af-disable-third-party-sharing)
6970

7071
### License
7172

@@ -86,7 +87,7 @@ You can add Adjust SDK to your Flutter app by adding following to your `pubspec.
8687

8788
```yaml
8889
dependencies:
89-
adjust_sdk: ^4.18.1
90+
adjust_sdk: ^4.21.0
9091
```
9192
9293
Then navigate to your project in the terminal and run:
@@ -898,6 +899,17 @@ Adjust.gdprForgetMe();
898899

899900
Upon receiving this information, Adjust will erase the user's data and the Adjust SDK will stop tracking the user. No requests from this device will be sent to Adjust in the future.
900901

902+
### <a id="af-disable-third-party-sharing"></a>Disable third-party sharing
903+
904+
You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing partners, but has allowed it to be shared for statistics purposes.
905+
906+
Call the following method to instruct the Adjust SDK to communicate the user's choice to disable data sharing to the Adjust backend:
907+
908+
```dart
909+
Adjust.disableThirdPartySharing();
910+
```
911+
912+
Upon receiving this information, Adjust will block the sharing of that specific user's data to partners and the Adjust SDK will continue to work as usual.
901913

902914
[dashboard]: http://adjust.com
903915
[adjust.com]: http://adjust.com

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.18.1
1+
4.21.0

android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.4.1'
10+
classpath 'com.android.tools.build:gradle:3.6.1'
1111
}
1212
}
1313
rootProject.allprojects {
@@ -24,17 +24,17 @@ rootProject.allprojects {
2424
}
2525
apply plugin: 'com.android.library'
2626
android {
27-
compileSdkVersion 28
27+
compileSdkVersion 29
2828

2929
defaultConfig {
3030
minSdkVersion 16
31-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
31+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3232
}
3333
lintOptions {
3434
disable 'InvalidPackage'
3535
}
3636
}
3737

3838
dependencies {
39-
implementation 'com.adjust.sdk:adjust-android:4.18.3'
39+
implementation 'com.adjust.sdk:adjust-android:4.21.0'
4040
}

android/src/main/java/com/adjust/sdk/flutter/AdjustSdk.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ public void onMethodCall(MethodCall call, final Result result) {
119119
case "gdprForgetMe":
120120
gdprForgetMe(result);
121121
break;
122+
case "disableThirdPartySharing":
123+
disableThirdPartySharing(result);
124+
break;
122125
case "addSessionCallbackParameter":
123126
addSessionCallbackParameter(call, result);
124127
break;
@@ -229,6 +232,12 @@ private void start(final MethodCall call, final Result result) {
229232
adjustConfig.setDefaultTracker(defaultTracker);
230233
}
231234

235+
// External device ID.
236+
if (configMap.containsKey("externalDeviceId")) {
237+
String externalDeviceId = (String) configMap.get("externalDeviceId");
238+
adjustConfig.setExternalDeviceId(externalDeviceId);
239+
}
240+
232241
// User agent.
233242
if (configMap.containsKey("userAgent")) {
234243
String userAgent = (String) configMap.get("userAgent");
@@ -569,6 +578,11 @@ private void gdprForgetMe(final Result result) {
569578
result.success(null);
570579
}
571580

581+
private void disableThirdPartySharing(final Result result) {
582+
Adjust.disableThirdPartySharing(applicationContext);
583+
result.success(null);
584+
}
585+
572586
private void getAttribution(final Result result) {
573587
AdjustAttribution adjustAttribution = Adjust.getAttribution();
574588
if (adjustAttribution == null) {

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ build/
99
ios/.generated/
1010
packages
1111
.flutter-plugins
12+
.flutter-plugins-dependencies
13+
ios/Flutter/flutter_export_environment.sh

example/android/app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apply plugin: 'com.android.application'
1515
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
1616

1717
android {
18-
compileSdkVersion 28
18+
compileSdkVersion 29
1919

2020
lintOptions {
2121
disable 'InvalidPackage'
@@ -25,10 +25,10 @@ android {
2525
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2626
applicationId "com.adjust.examples"
2727
minSdkVersion 16
28-
targetSdkVersion 28
28+
targetSdkVersion 29
2929
versionCode 1
3030
versionName "1.0"
31-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
31+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3232
}
3333

3434
buildTypes {
@@ -45,9 +45,9 @@ flutter {
4545
}
4646

4747
dependencies {
48-
testImplementation 'junit:junit:4.12'
49-
androidTestImplementation 'com.android.support.test:runner:1.0.1'
50-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
51-
implementation 'com.google.android.gms:play-services-analytics:16.0.4'
52-
implementation 'com.android.installreferrer:installreferrer:1.0'
48+
testImplementation 'junit:junit:4.13'
49+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
50+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
51+
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
52+
implementation 'com.android.installreferrer:installreferrer:1.1.2'
5353
}

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.4.1'
8+
classpath 'com.android.tools.build:gradle:3.6.1'
99
}
1010
}
1111

example/android/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M
2+
android.useAndroidX=true
3+
android.enableJetifier=true
4+
android.enableR8=true

0 commit comments

Comments
 (0)