Skip to content

Commit

Permalink
Merge pull request #117 from adjust/v4350
Browse files Browse the repository at this point in the history
Version 4.35.0
  • Loading branch information
uerceg authored Sep 27, 2023
2 parents 0dd8999 + c72dac0 commit 0bfddde
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 17 deletions.
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
### Version 4.35.0 (27th September 2023)
#### Added
- Added support for SigV3 library. Update authorization header building logic to use `adj_signing_id`.
- Added ability to indicate if only final Android attribution is needed in attribution callback (by default attribution callback return intermediate attribution as well before final attribution if not enabled with this setter method) by setting the `androidFinalAttributionEnabled` member of the `AdjustConfig` instance.

#### Native SDKs
- [[email protected]][ios_sdk_v4.35.0]
- [[email protected]][android_sdk_v4.35.0]

---

### Version 4.34.0 (6th September 2023)
#### Added
- Added support for Android apps using Gradle 8.0 or later.
- Added ability to delay SDK start on iOS platform in order to wait for an answer to the ATT dialog. You can set the number of seconds to wait (capped internally to 120) by setting the `attConsentWaitingInterval` method of the `AdjustConfig` instance.
- Added ability to delay SDK start on iOS platform in order to wait for an answer to the ATT dialog. You can set the number of seconds to wait (capped internally to 120) by setting the `attConsentWaitingInterval` member of the `AdjustConfig` instance.
- Added support for purchase verification. In case you are using this feature, you can now use it by calling `verifyAppStorePurchase` (for iOS) and `verifyPlayStorePurchase` (for Android) methods of the `Adjust` instance.

#### Native SDKs
Expand Down Expand Up @@ -337,6 +348,7 @@
[ios_sdk_v4.33.2]: https://github.com/adjust/ios_sdk/tree/v4.33.2
[ios_sdk_v4.33.4]: https://github.com/adjust/ios_sdk/tree/v4.33.4
[ios_sdk_v4.34.2]: https://github.com/adjust/ios_sdk/tree/v4.34.2
[ios_sdk_v4.35.0]: https://github.com/adjust/ios_sdk/tree/v4.35.0

[android_sdk_v4.17.0]: https://github.com/adjust/android_sdk/tree/v4.17.0
[android_sdk_v4.18.0]: https://github.com/adjust/android_sdk/tree/v4.18.0
Expand All @@ -353,4 +365,5 @@
[android_sdk_v4.32.0]: https://github.com/adjust/android_sdk/tree/v4.32.0
[android_sdk_v4.33.2]: https://github.com/adjust/android_sdk/tree/v4.33.2
[android_sdk_v4.33.3]: https://github.com/adjust/android_sdk/tree/v4.33.3
[android_sdk_v4.34.0]: https://github.com/adjust/android_sdk/tree/v4.34.0
[android_sdk_v4.34.0]: https://github.com/adjust/android_sdk/tree/v4.34.0
[android_sdk_v4.35.0]: https://github.com/adjust/android_sdk/tree/v4.35.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ You can add Adjust SDK to your Flutter app by adding following to your `pubspec.

```yaml
dependencies:
adjust_sdk: ^4.34.0
adjust_sdk: ^4.35.0
```
Then navigate to your project in the terminal and run:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.34.0
4.35.0
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ android {
}

dependencies {
api 'com.adjust.sdk:adjust-android:4.34.0'
api 'com.adjust.sdk:adjust-android:4.35.0'
}
7 changes: 7 additions & 0 deletions android/src/main/java/com/adjust/sdk/flutter/AdjustSdk.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ private void start(final MethodCall call, final Result result) {
adjustConfig.setCoppaCompliantEnabled(coppaCompliantEnabled);
}

// Final attribution.
if (configMap.containsKey("finalAndroidAttributionEnabled")) {
String strFinalAndroidAttributionEnabled = (String) configMap.get("finalAndroidAttributionEnabled");
boolean finalAndroidAttributionEnabled = Boolean.parseBoolean(strFinalAndroidAttributionEnabled);
adjustConfig.setFinalAttributionEnabled(finalAndroidAttributionEnabled);
}

// Google Play Store kids apps.
if (configMap.containsKey("playStoreKidsAppEnabled")) {
String strPlayStoreKidsAppEnabled = (String) configMap.get("playStoreKidsAppEnabled");
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -526,7 +526,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -558,7 +558,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
4 changes: 2 additions & 2 deletions ios/adjust_sdk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'adjust_sdk'
s.version = '4.34.0'
s.version = '4.35.0'
s.summary = 'Adjust Flutter SDK for iOS platform'
s.description = <<-DESC
Adjust Flutter SDK for iOS platform.
Expand All @@ -14,5 +14,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'

s.dependency 'Flutter'
s.dependency 'Adjust', '4.34.2'
s.dependency 'Adjust', '4.35.0'
end
2 changes: 1 addition & 1 deletion lib/adjust.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import 'package:flutter/services.dart';
import 'package:meta/meta.dart';

class Adjust {
static const String _sdkPrefix = 'flutter4.34.0';
static const String _sdkPrefix = 'flutter4.35.0';
static const MethodChannel _channel =
const MethodChannel('com.adjust.sdk/api');

Expand Down
4 changes: 4 additions & 0 deletions lib/adjust_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class AdjustConfig {
bool? playStoreKidsAppEnabled;
bool? coppaCompliantEnabled;
bool? linkMeEnabled;
bool? finalAndroidAttributionEnabled;
String? sdkPrefix;
String? userAgent;
String? defaultTracker;
Expand Down Expand Up @@ -243,6 +244,9 @@ class AdjustConfig {
if (coppaCompliantEnabled != null) {
configMap['coppaCompliantEnabled'] = coppaCompliantEnabled.toString();
}
if (finalAndroidAttributionEnabled != null) {
configMap['finalAndroidAttributionEnabled'] = finalAndroidAttributionEnabled.toString();
}
if (linkMeEnabled != null) {
configMap['linkMeEnabled'] = linkMeEnabled.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: adjust_sdk
description: This is the Flutter SDK of Adjust™. You can read more about Adjust™ at adjust.com.
homepage: https://github.com/adjust/flutter_sdk
version: 4.34.0
version: 4.35.0

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/app/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
5 changes: 5 additions & 0 deletions test/app/lib/command_executor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ class CommandExecutor {
_command.getFirstParameterValue('playStoreKids') == 'true';
}

if (_command.containsParameter('finalAttributionEnabled')) {
adjustConfig!.finalAndroidAttributionEnabled =
_command.getFirstParameterValue('finalAttributionEnabled') == 'true';
}

if (_command.containsParameter('sendInBackground')) {
adjustConfig!.sendInBackground =
_command.getFirstParameterValue('sendInBackground') == 'true';
Expand Down
2 changes: 1 addition & 1 deletion test/app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _MyAppState extends State<MyApp> {
void initState() {
super.initState();

String _address = '192.168.2.112';
String _address = '192.168.86.34';
if (Platform.isAndroid) {
String _protocol = 'https';
String _port = '8443';
Expand Down
2 changes: 1 addition & 1 deletion test/ios/test_lib.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'test_lib'
s.version = '4.34.0'
s.version = '4.35.0'
s.summary = 'Adjust test library for iOS platform'
s.description = <<-DESC
Adjust test library for iOS platform.
Expand Down
2 changes: 1 addition & 1 deletion test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test_lib
description: Flutter plugin for Adjust Testing Library. Intended exclusively for internal use.
version: 4.34.0
version: 4.35.0
author: Adjust ([email protected])

environment:
Expand Down

0 comments on commit 0bfddde

Please sign in to comment.