Skip to content

Commit b211905

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

7 files changed

Lines changed: 9 additions & 17 deletions

File tree

packages/connectivity_plus/connectivity_plus/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ This plugin allows Flutter apps to discover network connectivity types that can
2626
- Dart >=3.3.0 <4.0.0
2727
- iOS >=12.0
2828
- macOS >=10.14
29-
- Android `compileSDK` 34
3029
- Java 17
31-
- Android Gradle Plugin >=8.3.0
32-
- Gradle wrapper >=8.4
30+
- Android Gradle Plugin >=8.12.1
31+
- Gradle wrapper >=8.13
3332

3433
## Usage
3534

packages/connectivity_plus/connectivity_plus/android/build.gradle

Lines changed: 2 additions & 3 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.connectivity'
26+
compileSdk = flutter.compileSdkVersion
2827

2928
compileOptions {
3029
sourceCompatibility JavaVersion.VERSION_17

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

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

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

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

2929
android {
30-
compileSdk 34
30+
compileSdk = flutter.compileSdkVersion
3131

3232
namespace 'io.flutter.plugins.connectivityexample'
3333

@@ -42,8 +42,8 @@ android {
4242

4343
defaultConfig {
4444
applicationId "io.flutter.plugins.connectivityexample"
45-
minSdk 21
46-
targetSdk 34
45+
minSdk flutter.minSdkVersion
46+
targetSdk flutter.targetSdkVersion
4747
versionCode flutterVersionCode.toInteger()
4848
versionName flutterVersionName
4949
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
3-
android.enableJetifier=true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Oct 05 14:43:11 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/connectivity_plus/connectivity_plus/example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ 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
2222
}
2323

2424
include ":app"

0 commit comments

Comments
 (0)