Skip to content

Commit b94d387

Browse files
Add explicit compiler version (#320)
* Add explicit compiler version Hoping to get rid of the Java 7 deprecation warning * bump version * update gradle dependencies Co-authored-by: Miguel Beltran <[email protected]>
1 parent c1a31ae commit b94d387

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

packages/connectivity_plus/connectivity_plus/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.4
2+
3+
- Android: Add explicit compiler version to avoid warnings
4+
15
## 1.0.3
26

37
- Android: migrate to mavenCentral

packages/connectivity_plus/connectivity_plus/android/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ rootProject.allprojects {
1818
google()
1919
mavenCentral()
2020
}
21+
tasks.withType(JavaCompile).configureEach {
22+
javaCompiler = javaToolchains.compilerFor {
23+
languageVersion = JavaLanguageVersion.of(8)
24+
}
25+
}
2126
}
2227

2328
project.getTasks().withType(JavaCompile){
@@ -36,4 +41,4 @@ android {
3641
lintOptions {
3742
disable 'InvalidPackage'
3843
}
39-
}
44+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.5.0'
8+
classpath 'com.android.tools.build:gradle:4.2.0'
99
}
1010
}
1111

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

packages/connectivity_plus/connectivity_plus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: connectivity_plus
22
description: Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.
3-
version: 1.0.3
3+
version: 1.0.4
44
homepage: https://plus.fluttercommunity.dev/
55
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/
66

0 commit comments

Comments
 (0)