Skip to content

Commit d663b20

Browse files
committed
feat(device_info_plus)!: Change Android compile SDK, update Android build config
1 parent b49befe commit d663b20

7 files changed

Lines changed: 14 additions & 21 deletions

File tree

packages/device_info_plus/device_info_plus/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Get current device information from within the Flutter application.
2020
- Dart >=3.7.0 <4.0.0
2121
- iOS >=12.0
2222
- macOS >=10.14
23-
- Android `compileSDK` 34
2423
- Java 17
25-
- Android Gradle Plugin >=8.3.0
26-
- Gradle wrapper >=8.4
24+
- Kotlin 2.2.0
25+
- Android Gradle Plugin >=8.12.1
26+
- Gradle wrapper >=8.13
2727

2828
# Usage
2929

packages/device_info_plus/device_info_plus/android/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ group 'dev.fluttercommunity.plus.device_info'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.7.22'
5+
ext.kotlin_version = '2.2.0'
66
repositories {
77
google()
88
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:8.3.1'
12+
classpath 'com.android.tools.build:gradle:8.12.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -25,9 +25,8 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdk 34
29-
3028
namespace 'dev.fluttercommunity.plus.device_info'
29+
compileSdk = flutter.compileSdkVersion
3130

3231
compileOptions {
3332
sourceCompatibility JavaVersion.VERSION_17

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

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

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

Lines changed: 3 additions & 4 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.deviceinfoexample.example'
27+
compileSdk = flutter.compileSdkVersion
2928

3029
compileOptions {
3130
sourceCompatibility JavaVersion.VERSION_17
@@ -46,8 +45,8 @@ android {
4645

4746
defaultConfig {
4847
applicationId "io.flutter.plugins.deviceinfoexample.example"
49-
minSdk 21
50-
targetSdk 34
48+
minSdk flutter.minSdkVersion
49+
targetSdk flutter.targetSdkVersion
5150
versionCode flutterVersionCode.toInteger()
5251
versionName flutterVersionName
5352
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Oct 05 15:15:38 CEST 2021
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/device_info_plus/device_info_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.9.23" 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/device_info_plus/device_info_plus/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ flutter:
1919
uses-material-design: true
2020

2121
environment:
22-
sdk: '>=3.4.0 <4.0.0'
23-
flutter: '>=3.22.0'
22+
sdk: '>=3.7.0 <4.0.0'
23+
flutter: '>=3.29.0'
2424

2525

0 commit comments

Comments
 (0)