Skip to content

Commit b88a3e9

Browse files
authored
Merge pull request #151 from adjust/v503
Version 5.0.3
2 parents 71c4742 + 7f1a72b commit b88a3e9

File tree

21 files changed

+92
-78
lines changed

21 files changed

+92
-78
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### Version 5.0.3 (6th December 2024)
2+
#### Changed
3+
- Switched to native Android SDK version that depends on a specific version of the signature library.
4+
5+
#### Native SDKs
6+
- [[email protected]][ios_sdk_v5.0.1]
7+
- [[email protected]][android_sdk_v5.0.2]
8+
9+
---
10+
111
### Version 5.0.2 (23rd September 2024)
212
#### Fixed
313
- Fixed `Adjust.modulemap not found` error in certain CocoaPods integration cases.
@@ -516,3 +526,4 @@ In case you were using beta version of the SDK v5, please switch to the official
516526
[android_sdk_v4.38.5]: https://github.com/adjust/android_sdk/tree/v4.38.5
517527
[android_sdk_v5.0.0]: https://github.com/adjust/android_sdk/tree/v5.0.0
518528
[android_sdk_v5.0.1]: https://github.com/adjust/android_sdk/tree/v5.0.1
529+
[android_sdk_v5.0.2]: https://github.com/adjust/android_sdk/tree/v5.0.2

VERSION

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

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.1'
40+
implementation 'com.adjust.sdk:adjust-android:5.0.2'
4141
}

ios/adjust_sdk.podspec

Lines changed: 1 addition & 1 deletion
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 = '5.0.2'
3+
s.version = '5.0.3'
44
s.summary = 'Adjust Flutter SDK for iOS platform'
55
s.description = <<-DESC
66
Adjust Flutter SDK for iOS platform.

lib/adjust.dart

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

2626
class Adjust {
27-
static const String _sdkPrefix = 'flutter5.0.2';
27+
static const String _sdkPrefix = 'flutter5.0.3';
2828
static const MethodChannel _channel =
2929
const MethodChannel('com.adjust.sdk/api');
3030

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: adjust_sdk
22
description: This is the Flutter SDK of Adjust™. You can read more about Adjust™ at adjust.com.
33
homepage: https://github.com/adjust/flutter_sdk
4-
version: 5.0.2
4+
version: 5.0.3
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"

test/android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ rootProject.allprojects {
2525
apply plugin: 'com.android.library'
2626

2727
android {
28-
compileSdkVersion 32
28+
namespace 'com.adjust.test.lib'
29+
compileSdkVersion 35
2930

3031
defaultConfig {
3132
minSdkVersion 16
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.adjust.test.lib">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
</manifest>

test/android/src/main/java/com/adjust/test/lib/TestLibPlugin.java

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
import android.os.Looper;
1313
import android.util.Log;
1414

15+
import androidx.annotation.NonNull;
16+
1517
import io.flutter.embedding.engine.plugins.FlutterPlugin;
1618
import io.flutter.plugin.common.MethodCall;
1719
import io.flutter.plugin.common.MethodChannel;
1820
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
1921
import io.flutter.plugin.common.MethodChannel.Result;
20-
import io.flutter.plugin.common.PluginRegistry.Registrar;
2122

2223
import com.adjust.test.ICommandJsonListener;
2324
import com.adjust.test.TestLibrary;
@@ -30,50 +31,23 @@ public class TestLibPlugin implements FlutterPlugin, MethodCallHandler {
3031
private static String TAG = "TestLibPlugin";
3132
private TestLibrary testLibrary = null;
3233
private MethodChannel channel;
33-
private boolean v2Plugin;
34-
private boolean v2Attached = false;
35-
36-
private TestLibPlugin(MethodChannel channel) {
37-
this.channel = channel;
3834

39-
v2Plugin = false;
40-
}
35+
public TestLibPlugin() {}
4136

42-
public TestLibPlugin() {
43-
v2Plugin = true;
44-
}
45-
46-
// FlutterPlugin
4737
@Override
48-
public void onAttachedToEngine(FlutterPluginBinding binding) {
49-
if (!v2Plugin) {
50-
return;
51-
}
52-
if (v2Attached) {
53-
return;
54-
}
55-
56-
v2Attached = true;
57-
38+
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
5839
channel = new MethodChannel(binding.getBinaryMessenger(), "com.adjust.test.lib/api");
5940
channel.setMethodCallHandler(this);
6041
}
6142

6243
@Override
63-
public void onDetachedFromEngine(FlutterPluginBinding binding) {
64-
v2Attached = false;
44+
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
6545
if (channel != null) {
6646
channel.setMethodCallHandler(null);
6747
}
6848
channel = null;
6949
}
7050

71-
// Plugin registration.
72-
public static void registerWith(Registrar registrar) {
73-
final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.adjust.test.lib/api");
74-
channel.setMethodCallHandler(new TestLibPlugin(channel));
75-
}
76-
7751
@Override
7852
public void onMethodCall(MethodCall call, Result result) {
7953
switch (call.method) {

test/app/android/app/build.gradle

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,10 +12,10 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

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-
}
15+
// def flutterRoot = localProperties.getProperty('flutter.sdk')
16+
// if (flutterRoot == null) {
17+
// throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
18+
// }
1319

1420
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1521
if (flutterVersionCode == null) {
@@ -21,12 +27,13 @@ if (flutterVersionName == null) {
2127
flutterVersionName = '1.0'
2228
}
2329

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
30+
// apply plugin: 'com.android.application'
31+
// apply plugin: 'kotlin-android'
32+
// apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2733

2834
android {
29-
compileSdkVersion 33
35+
namespace 'com.adjust.app'
36+
compileSdkVersion 35
3037

3138
sourceSets {
3239
main.java.srcDirs += 'src/main/kotlin'
@@ -37,7 +44,7 @@ android {
3744
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3845
applicationId "com.adjust.app"
3946
minSdkVersion flutter.minSdkVersion
40-
targetSdkVersion 32
47+
targetSdkVersion 35
4148
versionCode flutterVersionCode.toInteger()
4249
versionName flutterVersionName
4350
}

0 commit comments

Comments
 (0)