Skip to content

Commit 7a228c3

Browse files
authored
feat(android_intent_plus)!: Change Android compile SDK, update Android build config (#3673)
1 parent 3bd253b commit 7a228c3

File tree

8 files changed

+14
-36
lines changed

8 files changed

+14
-36
lines changed

packages/android_intent_plus/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ This plugin allows Flutter apps to launch arbitrary intents when the platform is
1818

1919
- Flutter >=3.12.0
2020
- Dart >=3.1.0 <4.0.0
21-
- Android `compileSDK` 34
2221
- Java 17
23-
- Android Gradle Plugin >=8.3.0
24-
- Gradle wrapper >=8.4
22+
- Kotlin 2.2.0
23+
- Android Gradle Plugin >=8.12.1
24+
- Gradle wrapper >=8.13
2525

2626
## Usage
2727

packages/android_intent_plus/android/build.gradle

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

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:8.3.1'
11+
classpath 'com.android.tools.build:gradle:8.12.1'
1212
}
1313
}
1414

@@ -22,9 +22,8 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdk 34
26-
2725
namespace 'dev.fluttercommunity.plus.androidintent'
26+
compileSdk = flutter.compileSdkVersion
2827

2928
defaultConfig {
3029
minSdk 19
@@ -46,7 +45,7 @@ android {
4645
}
4746

4847
dependencies {
49-
implementation 'androidx.annotation:annotation:1.8.2'
48+
implementation 'androidx.annotation:annotation:1.9.1'
5049
testImplementation 'junit:junit:4.13.2'
5150
testImplementation 'org.mockito:mockito-core:5.13.0'
5251
testImplementation 'androidx.test:core:1.6.1'

packages/android_intent_plus/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/android_intent_plus/example/android/app/build.gradle

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ if (flutterVersionName == null) {
2323
}
2424

2525
android {
26-
compileSdk 34
27-
2826
namespace 'io.flutter.plugins.androidintentexample'
27+
compileSdk = flutter.compileSdkVersion
2928

3029
compileOptions {
3130
sourceCompatibility JavaVersion.VERSION_17
@@ -38,9 +37,8 @@ android {
3837

3938
defaultConfig {
4039
applicationId "io.flutter.plugins.androidintentexample"
41-
minSdk 21
42-
targetSdk 34
43-
multiDexEnabled true
40+
minSdk flutter.minSdkVersion
41+
targetSdk flutter.targetSdkVersion
4442

4543
versionCode flutterVersionCode.toInteger()
4644
versionName flutterVersionName
@@ -61,15 +59,6 @@ flutter {
6159
}
6260

6361
dependencies {
64-
constraints {
65-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22") {
66-
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
67-
}
68-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22") {
69-
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
70-
}
71-
}
72-
implementation 'androidx.multidex:multidex:2.0.1'
7362
implementation 'androidx.core:core-ktx:1.13.1'
7463
testImplementation 'junit:junit:4.13.2'
7564
androidTestImplementation 'androidx.test:runner:1.6.1'

packages/android_intent_plus/example/android/app/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sun Oct 02 17:46:54 EEST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

packages/android_intent_plus/example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.3.1" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.22" apply false
21+
id "com.android.application" version "8.12.1" apply false
22+
id "org.jetbrains.kotlin.android" version "2.2.0" apply false
2323
}
2424

2525
include ":app"

packages/android_intent_plus/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: android_intent_plus_example
22
description: Demonstrates how to use the android_intent plugin.
33

44
environment:
5-
sdk: ">=2.18.0 <4.0.0"
6-
flutter: ">=3.3.0"
5+
sdk: ">=3.1.0 <4.0.0"
6+
flutter: ">=3.12.0"
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)