Skip to content

Commit e16630d

Browse files
authored
Merge pull request #86 from adjust/v4310
Version 4.31.0
2 parents 499f4b1 + 7745c14 commit e16630d

File tree

14 files changed

+46
-23
lines changed

14 files changed

+46
-23
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### Version 4.31.0 (3rd August 2022)
2+
#### Added
3+
- Added support for `LinkMe` feature.
4+
- Added support to get Facebook install referrer information in attribution callback.
5+
6+
#### Native SDKs
7+
- [[email protected]][ios_sdk_v4.31.0]
8+
- [[email protected]][android_sdk_v4.31.0]
9+
10+
---
11+
112
### Version 4.30.0 (9th June 2022)
213
#### Added
314
- Added ability to mark your app as COPPA compliant. You can enable this setting by setting `coppaCompliantEnabled` member of `AdjustConfig` instance to `true`.
@@ -274,6 +285,7 @@
274285
[ios_sdk_v4.29.6]: https://github.com/adjust/ios_sdk/tree/v4.29.6
275286
[ios_sdk_v4.29.7]: https://github.com/adjust/ios_sdk/tree/v4.29.7
276287
[ios_sdk_v4.30.0]: https://github.com/adjust/ios_sdk/tree/v4.30.0
288+
[ios_sdk_v4.31.0]: https://github.com/adjust/ios_sdk/tree/v4.31.0
277289

278290
[android_sdk_v4.17.0]: https://github.com/adjust/android_sdk/tree/v4.17.0
279291
[android_sdk_v4.18.0]: https://github.com/adjust/android_sdk/tree/v4.18.0
@@ -286,3 +298,4 @@
286298
[android_sdk_v4.28.1]: https://github.com/adjust/android_sdk/tree/v4.28.1
287299
[android_sdk_v4.28.5]: https://github.com/adjust/android_sdk/tree/v4.28.5
288300
[android_sdk_v4.30.1]: https://github.com/adjust/android_sdk/tree/v4.30.1
301+
[android_sdk_v4.31.0]: https://github.com/adjust/android_sdk/tree/v4.31.0

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ You can add Adjust SDK to your Flutter app by adding following to your `pubspec.
104104

105105
```yaml
106106
dependencies:
107-
adjust_sdk: ^4.30.0
107+
adjust_sdk: ^4.31.0
108108
```
109109
110110
Then navigate to your project in the terminal and run:
@@ -310,17 +310,9 @@ class MainScreenState extends State<MainScreen> with WidgetsBindingObserver {
310310

311311
### <a id="qs-sdk-signature"></a>SDK signature
312312

313-
An account manager must activate the Adjust SDK signature. Contact Adjust support ([email protected]) if you are interested in using this feature.
313+
When you set up the SDK Signature, each SDK communication package is "signed". This lets Adjust’s servers easily detect and reject any install activity that is not legitimate.
314314

315-
If the SDK signature has already been enabled on your account and you have access to App Secrets in your Adjust Dashboard, please use the method below to integrate the SDK signature into your app.
316-
317-
An App Secret is set by calling `setAppSecret` on your config instance:
318-
319-
```dart
320-
AdjustConfig adjustConfig = new AdjustConfig(yourAppToken, environment);
321-
adjustConfig.setAppSecret(secretId, info1, info2, info3, info4);
322-
Adjust.start(adjustConfig);
323-
```
315+
There are just a few steps involved in setting up the SDK Signature. Please contact your Technical Account Manager or [email protected] to get started.
324316

325317
### <a id="qs-adjust-logging"></a>Adjust logging
326318

@@ -910,6 +902,7 @@ The callback function will be called after the SDK receives the final attributio
910902
- `costType` the cost type string
911903
- `costAmount` the cost amount
912904
- `costCurrency` the cost currency string
905+
- `fbInstallReferrer` the Facebook install referrer information
913906

914907
**Note**: The cost data - `costType`, `costAmount` & `costCurrency` are only available when configured in `AdjustConfig` by setting `needsCost` member to `true`. If not configured or configured, but not being part of the attribution, these fields will have value `null`. This feature is available in SDK v4.26.0 and later.
915908

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.30.0
1+
4.31.0

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ android {
3636
}
3737

3838
dependencies {
39-
api 'com.adjust.sdk:adjust-android:4.30.1'
39+
api 'com.adjust.sdk:adjust-android:4.31.0'
4040
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ public void onAttributionChanged(AdjustAttribution adjustAttribution) {
428428
adjustAttributionMap.put("costAmount", adjustAttribution.costAmount != null ?
429429
adjustAttribution.costAmount.toString() : "");
430430
adjustAttributionMap.put("costCurrency", adjustAttribution.costCurrency);
431+
adjustAttributionMap.put("fbInstallReferrer", adjustAttribution.fbInstallReferrer);
431432
if (channel != null) {
432433
channel.invokeMethod(dartMethodName, adjustAttributionMap);
433434
}
@@ -744,6 +745,7 @@ private void getAttribution(final Result result) {
744745
adjustAttributionMap.put("costAmount", adjustAttribution.costAmount != null ?
745746
adjustAttribution.costAmount.toString() : "");
746747
adjustAttributionMap.put("costCurrency", adjustAttribution.costCurrency);
748+
adjustAttributionMap.put("fbInstallReferrer", adjustAttribution.fbInstallReferrer);
747749
result.success(adjustAttributionMap);
748750
}
749751

ios/Classes/AdjustSdk.m

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
146146
NSString *sendInBackground = call.arguments[@"sendInBackground"];
147147
NSString *needsCost = call.arguments[@"needsCost"];
148148
NSString *coppaCompliantEnabled = call.arguments[@"coppaCompliantEnabled"];
149+
NSString *linkMeEnabled = call.arguments[@"linkMeEnabled"];
149150
NSString *allowiAdInfoReading = call.arguments[@"allowiAdInfoReading"];
150151
NSString *allowAdServicesInfoReading = call.arguments[@"allowAdServicesInfoReading"];
151152
NSString *allowIdfaReading = call.arguments[@"allowIdfaReading"];
@@ -188,10 +189,15 @@ - (void)start:(FlutterMethodCall *)call withResult:(FlutterResult)result {
188189
}
189190

190191
// COPPA compliance.
191-
if ([self isFieldValid:coppaCompliantEnabled]) {
192-
[adjustConfig setCoppaCompliantEnabled:[coppaCompliantEnabled boolValue]];
193-
}
194-
192+
if ([self isFieldValid:coppaCompliantEnabled]) {
193+
[adjustConfig setCoppaCompliantEnabled:[coppaCompliantEnabled boolValue]];
194+
}
195+
196+
// LinkMe.
197+
if ([self isFieldValid:linkMeEnabled]) {
198+
[adjustConfig setLinkMeEnabled:[linkMeEnabled boolValue]];
199+
}
200+
195201
// Default tracker.
196202
if ([self isFieldValid:defaultTracker]) {
197203
[adjustConfig setDefaultTracker:defaultTracker];

ios/adjust_sdk.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'adjust_sdk'
3-
s.version = '4.30.0'
3+
s.version = '4.31.0'
44
s.summary = 'Adjust Flutter SDK for iOS platform'
55
s.description = <<-DESC
66
Adjust Flutter SDK for iOS platform.
@@ -14,5 +14,5 @@ Pod::Spec.new do |s|
1414
s.ios.deployment_target = '8.0'
1515

1616
s.dependency 'Flutter'
17-
s.dependency 'Adjust', '4.30.0'
17+
s.dependency 'Adjust', '4.31.0'
1818
end

lib/adjust.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import 'package:flutter/services.dart';
1919
import 'package:meta/meta.dart';
2020

2121
class Adjust {
22-
static const String _sdkPrefix = 'flutter4.30.0';
22+
static const String _sdkPrefix = 'flutter4.31.0';
2323
static const MethodChannel _channel =
2424
const MethodChannel('com.adjust.sdk/api');
2525

lib/adjust_attribution.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class AdjustAttribution {
1818
final String? costType;
1919
final num? costAmount;
2020
final String? costCurrency;
21+
// Android only
22+
final String? fbInstallReferrer;
2123

2224
AdjustAttribution({
2325
required this.trackerToken,
@@ -31,6 +33,7 @@ class AdjustAttribution {
3133
required this.costType,
3234
required this.costAmount,
3335
required this.costCurrency,
36+
required this.fbInstallReferrer,
3437
});
3538

3639
factory AdjustAttribution.fromMap(dynamic map) {
@@ -54,6 +57,7 @@ class AdjustAttribution {
5457
costType: map['costType'],
5558
costAmount: parsedCostAmount != -1 ? parsedCostAmount : null,
5659
costCurrency: map['costCurrency'],
60+
fbInstallReferrer: map['fbInstallReferrer'],
5761
);
5862
} catch (e) {
5963
throw Exception(

lib/adjust_config.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class AdjustConfig {
7575
bool? preinstallTrackingEnabled;
7676
bool? playStoreKidsAppEnabled;
7777
bool? coppaCompliantEnabled;
78+
bool? linkMeEnabled;
7879
String? sdkPrefix;
7980
String? userAgent;
8081
String? defaultTracker;
@@ -223,6 +224,9 @@ class AdjustConfig {
223224
if (coppaCompliantEnabled != null) {
224225
configMap['coppaCompliantEnabled'] = coppaCompliantEnabled.toString();
225226
}
227+
if (linkMeEnabled != null) {
228+
configMap['linkMeEnabled'] = linkMeEnabled.toString();
229+
}
226230
if (allowiAdInfoReading != null) {
227231
configMap['allowiAdInfoReading'] = allowiAdInfoReading.toString();
228232
}

0 commit comments

Comments
 (0)