Skip to content

Commit ccd1a5b

Browse files
brunobowdenKyleFin
authored andcommitted
[multiple] Java 8 target for all plugins with -Werror compiler arg (flutter-team-archive#3216)
1 parent fe878ed commit ccd1a5b

13 files changed

Lines changed: 34 additions & 28 deletions

File tree

packages/android_alarm_manager/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ apply plugin: 'com.android.library'
2828

2929
android {
3030
compileSdkVersion 29
31-
compileOptions {
32-
sourceCompatibility JavaVersion.VERSION_1_8
33-
targetCompatibility JavaVersion.VERSION_1_8
34-
}
3531
defaultConfig {
3632
minSdkVersion 16
3733
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -54,6 +50,10 @@ android {
5450
}
5551
}
5652
}
53+
compileOptions {
54+
sourceCompatibility JavaVersion.VERSION_1_8
55+
targetCompatibility JavaVersion.VERSION_1_8
56+
}
5757
}
5858

5959
dependencies {

packages/android_intent/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Remove references to the V1 Android embedding.
44
* Updated Android lint settings.
5+
* Specify Java 8 for Android build.
56

67
## 2.0.2
78

packages/android_intent/android/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ android {
3737
disable 'InvalidPackage'
3838
disable 'GradleDependency'
3939
}
40-
41-
40+
compileOptions {
41+
sourceCompatibility JavaVersion.VERSION_1_8
42+
targetCompatibility JavaVersion.VERSION_1_8
43+
}
4244
testOptions {
4345
unitTests.includeAndroidResources = true
4446
unitTests.returnDefaultValues = true

packages/camera/camera/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ android {
3939
baseline file("lint-baseline.xml")
4040
}
4141
compileOptions {
42-
sourceCompatibility = '1.8'
43-
targetCompatibility = '1.8'
42+
sourceCompatibility JavaVersion.VERSION_1_8
43+
targetCompatibility JavaVersion.VERSION_1_8
4444
}
4545

4646

packages/connectivity/connectivity/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Remove references to the Android V1 embedding.
44
* Updated Android lint settings.
5+
* Specify Java 8 for Android build.
56

67
## 3.0.6
78

packages/connectivity/connectivity/android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ android {
5050
}
5151
}
5252
}
53+
compileOptions {
54+
sourceCompatibility JavaVersion.VERSION_1_8
55+
targetCompatibility JavaVersion.VERSION_1_8
56+
}
5357
}

packages/path_provider/path_provider/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 2.0.4
22

33
* Updated Android lint settings.
4+
* Specify Java 8 for Android build.
45

56
## 2.0.3
67

packages/path_provider/path_provider/android/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ android {
3232
disable 'InvalidPackage'
3333
disable 'GradleDependency'
3434
}
35-
android {
36-
compileOptions {
37-
sourceCompatibility 1.8
38-
targetCompatibility 1.8
39-
}
35+
compileOptions {
36+
sourceCompatibility JavaVersion.VERSION_1_8
37+
targetCompatibility JavaVersion.VERSION_1_8
4038
}
4139

4240

packages/path_provider/path_provider/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: path_provider
22
description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.
33
repository: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
5-
version: 2.0.3
5+
version: 2.0.4
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

packages/video_player/video_player/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.1
2+
3+
* Specify Java 8 for Android build.
4+
15
## 2.2.0
26

37
* Add `contentUri` based VideoPlayerController.

0 commit comments

Comments
 (0)