Skip to content

Commit bcb4202

Browse files
authored
feat(network_info_plus)!: Change Android compile SDK, update Android build config (#3669)
1 parent bb49385 commit bcb4202

File tree

6 files changed

+12
-17
lines changed

6 files changed

+12
-17
lines changed

packages/network_info_plus/network_info_plus/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ The functionality is not supported on Web.
2323
- Dart >=2.18.0 <4.0.0
2424
- iOS >=12.0
2525
- macOS >=10.14
26-
- Android `compileSDK` 34
2726
- Java 17
28-
- Android Gradle Plugin >=8.3.0
29-
- Gradle wrapper >=8.4
27+
- Kotlin 2.2.0
28+
- Android Gradle Plugin >=8.12.1
29+
- Gradle wrapper >=8.13
3030

3131
## Usage
3232

packages/network_info_plus/network_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.network_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.network_info'
29+
compileSdk = flutter.compileSdkVersion
3130

3231
compileOptions {
3332
sourceCompatibility JavaVersion.VERSION_17

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

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (flutterVersionName == null) {
2222
}
2323

2424
android {
25-
compileSdk 34
25+
compileSdk = flutter.compileSdkVersion
2626

2727
namespace 'dev.fluttercommunity.plus.network_info_plus_example'
2828

@@ -41,8 +41,8 @@ android {
4141

4242
defaultConfig {
4343
applicationId "dev.fluttercommunity.plus.network_info_plus_example"
44-
minSdk 21
45-
targetSdk 34
44+
minSdk flutter.minSdkVersion
45+
targetSdk flutter.targetSdkVersion
4646
versionCode flutterVersionCode.toInteger()
4747
versionName flutterVersionName
4848
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Oct 05 15:29:21 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/network_info_plus/network_info_plus/example/android/settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +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
21+
id "com.android.application" version "8.12.1" apply false
22+
id "org.jetbrains.kotlin.android" version "2.2.0" apply false
2223
}
2324

2425
include ":app"

0 commit comments

Comments
 (0)