Skip to content

Commit 085b89f

Browse files
authored
Merge pull request #157 from adjust/v504
Version 5.0.4
2 parents b88a3e9 + 09f7e7f commit 085b89f

File tree

27 files changed

+211
-86
lines changed

27 files changed

+211
-86
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
### Version 5.0.4 (6th February 2025)
2+
#### Added
3+
- Added sending of the additional parameter to improve troubleshooting of `SKAdNetwork` related issues.
4+
5+
#### Fixed
6+
- Fixed occasional occurrences in which ATT waiting interval timer was not being started.
7+
- Fixed occasional NPE occurrences when app was entering background (https://github.com/adjust/android_sdk/issues/630).
8+
- Fixed occasional NPE occurrences when `updateSkanConversionValue` returns `null` as error (https://github.com/adjust/flutter_sdk/issues/156).
9+
10+
#### Native SDKs
11+
- [[email protected]][ios_sdk_v5.1.0]
12+
- [[email protected]][android_sdk_v5.1.0]
13+
14+
---
15+
116
### Version 5.0.3 (6th December 2024)
217
#### Changed
318
- Switched to native Android SDK version that depends on a specific version of the signature library.
@@ -500,6 +515,7 @@ In case you were using beta version of the SDK v5, please switch to the official
500515
[ios_sdk_v4.38.4]: https://github.com/adjust/ios_sdk/tree/v4.38.4
501516
[ios_sdk_v5.0.0]: https://github.com/adjust/ios_sdk/tree/v5.0.0
502517
[ios_sdk_v5.0.1]: https://github.com/adjust/ios_sdk/tree/v5.0.1
518+
[ios_sdk_v5.1.0]: https://github.com/adjust/ios_sdk/tree/v5.1.0
503519

504520
[android_sdk_v4.17.0]: https://github.com/adjust/android_sdk/tree/v4.17.0
505521
[android_sdk_v4.18.0]: https://github.com/adjust/android_sdk/tree/v4.18.0
@@ -527,3 +543,4 @@ In case you were using beta version of the SDK v5, please switch to the official
527543
[android_sdk_v5.0.0]: https://github.com/adjust/android_sdk/tree/v5.0.0
528544
[android_sdk_v5.0.1]: https://github.com/adjust/android_sdk/tree/v5.0.1
529545
[android_sdk_v5.0.2]: https://github.com/adjust/android_sdk/tree/v5.0.2
546+
[android_sdk_v5.1.0]: https://github.com/adjust/android_sdk/tree/v5.1.0

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.3
1+
5.0.4

android/build.gradle

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

3939
dependencies {
40-
implementation 'com.adjust.sdk:adjust-android:5.0.2'
40+
implementation 'com.adjust.sdk:adjust-android:5.1.0'
4141
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Feb 17 11:59:04 CET 2022
1+
#Mon Jan 06 12:48:45 CET 2025
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

example/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: cad4d1333eb70e66fe8e993b10fa09306a48269d
8-
channel: master
7+
revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
17+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
18+
- platform: android
19+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
20+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
21+
- platform: ios
22+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
23+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
24+
- platform: linux
25+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
26+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
27+
- platform: macos
28+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
29+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
30+
- platform: web
31+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
32+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
33+
- platform: windows
34+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
35+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/android/app/build.gradle

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id "dev.flutter.flutter-gradle-plugin"
6+
}
7+
18
def localProperties = new Properties()
2-
def localPropertiesFile = rootProject.file('local.properties')
9+
def localPropertiesFile = rootProject.file("local.properties")
310
if (localPropertiesFile.exists()) {
4-
localPropertiesFile.withReader('UTF-8') { reader ->
11+
localPropertiesFile.withReader("UTF-8") { reader ->
512
localProperties.load(reader)
613
}
714
}
815

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
14-
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
16+
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
1517
if (flutterVersionCode == null) {
16-
flutterVersionCode = '1'
18+
flutterVersionCode = "1"
1719
}
1820

19-
def flutterVersionName = localProperties.getProperty('flutter.versionName')
21+
def flutterVersionName = localProperties.getProperty("flutter.versionName")
2022
if (flutterVersionName == null) {
21-
flutterVersionName = '1.0'
23+
flutterVersionName = "1.0"
2224
}
2325

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2826
android {
29-
compileSdkVersion 33
27+
namespace = "com.adjust.examples"
28+
compileSdk = 34
3029

31-
sourceSets {
32-
main.java.srcDirs += 'src/main/kotlin'
30+
compileOptions {
31+
sourceCompatibility = JavaVersion.VERSION_1_8
32+
targetCompatibility = JavaVersion.VERSION_1_8
3333
}
3434

35-
3635
defaultConfig {
3736
applicationId "com.adjust.examples"
3837
minSdkVersion flutter.minSdkVersion
39-
targetSdkVersion 33
38+
targetSdkVersion 34
4039
versionCode flutterVersionCode.toInteger()
4140
versionName flutterVersionName
4241
}
@@ -45,19 +44,15 @@ android {
4544
release {
4645
// TODO: Add your own signing config for the release build.
4746
// Signing with the debug keys for now, so `flutter run --release` works.
48-
signingConfig signingConfigs.debug
47+
signingConfig = signingConfigs.debug
4948
}
5049
}
51-
lint {
52-
checkReleaseBuilds false
53-
disable 'InvalidPackage'
54-
}
55-
namespace 'com.adjust.examples'
5650
}
5751

5852
flutter {
59-
source '../..'
53+
source = "../.."
6054
}
6155

6256
dependencies {
63-
}
57+
implementation 'com.adjust.sdk:adjust-android:5.1.0'
58+
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
<action android:name="android.intent.action.MAIN"/>
3737
<category android:name="android.intent.category.LAUNCHER"/>
3838
</intent-filter>
39+
40+
<intent-filter>
41+
<action android:name="android.intent.action.VIEW" />
42+
<category android:name="android.intent.category.DEFAULT" />
43+
<category android:name="android.intent.category.BROWSABLE" />
44+
<data android:scheme="adjustexample" />
45+
</intent-filter>
3946
</activity>
4047
<!-- Don't delete the meta-data below.
4148
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
package com.adjust.examples
22

3+
import android.content.Intent
4+
import android.os.Bundle
5+
import com.adjust.sdk.Adjust
6+
import com.adjust.sdk.AdjustDeeplink
37
import io.flutter.embedding.android.FlutterActivity
48

5-
class MainActivity: FlutterActivity() {
9+
class MainActivity: FlutterActivity(){
10+
override fun onCreate(savedInstanceState: Bundle?) {
11+
super.onCreate(savedInstanceState)
12+
val intent: Intent = intent
13+
val data = intent.data
14+
Adjust.processDeeplink(AdjustDeeplink(data), this)
15+
}
16+
17+
override fun onNewIntent(intent: Intent) {
18+
super.onNewIntent(intent)
19+
val data = intent?.data
20+
Adjust.processDeeplink(AdjustDeeplink(data), this)
21+
}
22+
23+
624
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<!-- Theme applied to the Android Window while the process is starting -->
4-
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
55
<!-- Show a splash screen on the activity. Automatically removed when
6-
Flutter draws its first frame -->
6+
the Flutter engine draws its first frame -->
77
<item name="android:windowBackground">@drawable/launch_background</item>
88
</style>
99
<!-- Theme applied to the Android Window as soon as the process has started.
1010
This theme determines the color of the Android Window while your
1111
Flutter UI initializes, as well as behind your Flutter UI while its
1212
running.
13-
13+
1414
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15-
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16-
<item name="android:windowBackground">@android:color/white</item>
15+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
1717
</style>
1818
</resources>

example/android/build.gradle

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

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.1.4'
9+
classpath 'com.android.tools.build:gradle:8.8.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
@@ -18,12 +18,12 @@ allprojects {
1818
}
1919
}
2020

21-
rootProject.buildDir = '../build'
21+
rootProject.buildDir = "../build"
2222
subprojects {
2323
project.buildDir = "${rootProject.buildDir}/${project.name}"
2424
}
2525
subprojects {
26-
project.evaluationDependsOn(':app')
26+
project.evaluationDependsOn(":app")
2727
}
2828

2929
tasks.register("clean", Delete) {

0 commit comments

Comments
 (0)