Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
42f21fd7
Unverified
Commit
42f21fd7
authored
3 years ago
by
Emmanuel Garcia
Committed by
GitHub
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standardize how Java8 is set in gradle files (#80600)
parent
0c1652f4
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
326 additions
and
29 deletions
+326
-29
build.gradle
dev/benchmarks/complex_layout/android/app/build.gradle
+5
-0
build.gradle
dev/benchmarks/macrobenchmarks/android/app/build.gradle
+5
-0
build.gradle
dev/benchmarks/microbenchmarks/android/app/build.gradle
+5
-0
build.gradle
dev/benchmarks/multiple_flutters/android/app/build.gradle
+10
-7
build.gradle
...benchmarks/platform_views_layout/android/app/build.gradle
+5
-0
build.gradle
..._views_layout_hybrid_composition/android/app/build.gradle
+5
-0
build.gradle
dev/benchmarks/test_apps/stocks/android/app/build.gradle
+5
-0
build_aar_module_test.dart
dev/devicelab/bin/tasks/build_aar_module_test.dart
+1
-1
gradle_java8_compile_test.dart
dev/devicelab/bin/tasks/gradle_java8_compile_test.dart
+106
-0
build.gradle
...tests/abstract_method_smoke_test/android/app/build.gradle
+8
-8
build.gradle
...tion_tests/android_custom_host_app/SampleApp/build.gradle
+2
-2
build.gradle
.../android_embedding_v2_smoke_test/android/app/build.gradle
+9
-0
build.gradle
...tion_tests/android_host_app_v2_embedding/app/build.gradle
+2
-2
build.gradle
..._tests/android_semantics_testing/android/app/build.gradle
+5
-0
build.gradle
dev/integration_tests/android_views/android/app/build.gradle
+5
-0
build.gradle
dev/integration_tests/channels/android/app/build.gradle
+5
-0
build.gradle
dev/integration_tests/external_ui/android/app/build.gradle
+5
-0
build.gradle
dev/integration_tests/flavors/android/app/build.gradle
+5
-0
build.gradle
...ntegration_tests/flutter_gallery/android/app/build.gradle
+5
-0
build.gradle
...tests/gradle_deprecated_settings/android/app/build.gradle
+5
-0
build.gradle
...ation_tests/hybrid_android_views/android/app/build.gradle
+5
-0
build.gradle
...dule_host_with_custom_build_v2_embedding/app/build.gradle
+4
-2
build.gradle
dev/integration_tests/non_nullable/android/app/build.gradle
+9
-0
build.gradle
...ation_tests/platform_interaction/android/app/build.gradle
+5
-0
build.gradle
...gration_tests/release_smoke_test/android/app/build.gradle
+5
-0
build.gradle
dev/integration_tests/ui/android/app/build.gradle
+5
-0
build.gradle
dev/manual_tests/android/app/build.gradle
+9
-0
build.gradle
examples/flutter_view/android/app/build.gradle
+5
-0
build.gradle
examples/hello_world/android/app/build.gradle
+5
-0
build.gradle
examples/image_list/android/app/build.gradle
+5
-0
build.gradle
examples/layers/android/app/build.gradle
+5
-0
build.gradle
examples/platform_channel/android/app/build.gradle
+5
-0
build.gradle
examples/platform_view/android/app/build.gradle
+5
-0
build.gradle.tmpl
...ols/templates/app/android-java.tmpl/app/build.gradle.tmpl
+5
-0
build.gradle.tmpl
...s/templates/app/android-kotlin.tmpl/app/build.gradle.tmpl
+9
-0
build.gradle.tmpl
...lates/module/android/deferred_component/build.gradle.tmpl
+5
-5
build.gradle.tmpl
...module/android/host_app_common/app.tmpl/build.gradle.tmpl
+2
-2
build.gradle.tmpl
...roid/library_new_embedding/Flutter.tmpl/build.gradle.tmpl
+5
-0
build.gradle.tmpl
...ools/templates/plugin/android-java.tmpl/build.gradle.tmpl
+5
-0
build.gradle.tmpl
...ls/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
+10
-0
build.gradle
packages/integration_test/android/build.gradle
+5
-0
build.gradle
packages/integration_test/example/android/app/build.gradle
+5
-0
No files found.
dev/benchmarks/complex_layout/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/macrobenchmarks/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"com.example.macrobenchmarks"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/microbenchmarks/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/multiple_flutters/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -12,8 +12,18 @@ android {
self
{
}
}
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
defaultConfig
{
applicationId
"dev.flutter.multipleflutters"
minSdkVersion
24
...
...
@@ -31,13 +41,6 @@ android {
signingConfig
debug
.
signingConfig
}
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
}
dependencies
{
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/platform_views_layout/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/platform_views_layout_hybrid_composition/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/benchmarks/test_apps/stocks/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.stocks"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/devicelab/bin/tasks/build_aar_module_test.dart
View file @
42f21fd7
...
...
@@ -262,7 +262,7 @@ Future<void> main() async {
}
catch
(
e
)
{
return
TaskResult
.
failure
(
e
.
toString
());
}
finally
{
rmTree
(
tempDir
);
//
rmTree(tempDir);
}
});
}
This diff is collapsed.
Click to expand it.
dev/devicelab/bin/tasks/gradle_java8_compile_test.dart
0 → 100644
View file @
42f21fd7
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:io'
;
import
'package:flutter_devicelab/framework/apk_utils.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/task_result.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
import
'package:path/path.dart'
as
path
;
Future
<
void
>
main
()
async
{
await
task
(()
async
{
try
{
await
runPluginProjectTest
((
FlutterPluginProject
pluginProject
)
async
{
section
(
'check main plugin file exists'
);
final
File
pluginMainKotlinFile
=
File
(
path
.
join
(
pluginProject
.
rootPath
,
'android'
,
'src'
,
'main'
,
'kotlin'
,
path
.
join
(
'com'
,
'example'
,
'aaa'
,
'AaaPlugin.kt'
,
),
),
);
if
(!
pluginMainKotlinFile
.
existsSync
())
{
throw
TaskResult
.
failure
(
'Expected
${pluginMainKotlinFile.path}
to exist, but it doesn
\'
t'
);
}
section
(
'add java 8 feature'
);
pluginMainKotlinFile
.
writeAsStringSync
(
r''
'
package com.example.aaa
import android.util.Log
import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import java.util.HashMap
/** AaaPlugin */
class AaaPlugin: FlutterPlugin, MethodCallHandler {
init {
val map: HashMap<String, String> = HashMap<String, String>()
// getOrDefault is a JAVA8 feature.
Log.d("AaaPlugin", map.getOrDefault("foo", "baz"))
}
/// The MethodChannel that will the communication between Flutter and native Android
///
/// This local reference serves to register the plugin with the Flutter Engine and unregister it
/// when the Flutter Engine is detached from the Activity
private lateinit var channel : MethodChannel
override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
channel = MethodChannel(flutterPluginBinding.binaryMessenger, "aaa")
channel.setMethodCallHandler(this)
}
override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
if (call.method == "getPlatformVersion") {
result.success("Android
${android.os.Build.VERSION.RELEASE}
")
} else {
result.notImplemented()
}
}
override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
channel.setMethodCallHandler(null)
}
}
'''
);
section
(
'Compiles'
);
await
inDirectory
(
pluginProject
.
exampleAndroidPath
,
()
{
return
flutter
(
'build'
,
options:
<
String
>[
'apk'
,
'--debug'
,
'--target-platform=android-arm'
],
);
});
});
return
TaskResult
.
success
(
null
);
}
on
TaskResult
catch
(
taskResult
)
{
return
taskResult
;
}
catch
(
e
)
{
return
TaskResult
.
failure
(
e
.
toString
());
}
});
}
This diff is collapsed.
Click to expand it.
dev/integration_tests/abstract_method_smoke_test/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -32,15 +32,19 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.abstract_method_smoke_test"
...
...
@@ -55,10 +59,6 @@ android {
signingConfig
signingConfigs
.
debug
}
}
kotlinOptions
{
jvmTarget
=
"1.8"
}
}
flutter
{
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/android_custom_host_app/SampleApp/build.gradle
View file @
42f21fd7
...
...
@@ -8,8 +8,8 @@ android {
compileSdkVersion
30
compileOptions
{
sourceCompatibility
1.
8
targetCompatibility
1.
8
sourceCompatibility
JavaVersion
.
VERSION_1_
8
targetCompatibility
JavaVersion
.
VERSION_1_
8
}
defaultConfig
{
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/android_embedding_v2_smoke_test/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -32,6 +32,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/android_host_app_v2_embedding/app/build.gradle
View file @
42f21fd7
...
...
@@ -8,8 +8,8 @@ android {
compileSdkVersion
30
compileOptions
{
sourceCompatibility
1.
8
targetCompatibility
1.
8
sourceCompatibility
JavaVersion
.
VERSION_1_
8
targetCompatibility
JavaVersion
.
VERSION_1_
8
}
defaultConfig
{
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/android_semantics_testing/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/android_views/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.integration.platformviews"
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/channels/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/external_ui/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.externalui"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/flavors/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"com.yourcompany.flavors"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/flutter_gallery/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -42,6 +42,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.demo.gallery"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/gradle_deprecated_settings/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"com.yourcompany.flavors"
minSdkVersion
21
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/hybrid_android_views/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.integration.platformviews"
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle
View file @
42f21fd7
...
...
@@ -6,10 +6,12 @@ apply plugin: 'com.android.application'
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
1.
8
targetCompatibility
1.
8
sourceCompatibility
JavaVersion
.
VERSION_1_
8
targetCompatibility
JavaVersion
.
VERSION_1_
8
}
defaultConfig
{
applicationId
"io.flutter.addtoapp"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/non_nullable/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -32,6 +32,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/platform_interaction/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/release_smoke_test/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.release_smoke_test"
...
...
This diff is collapsed.
Click to expand it.
dev/integration_tests/ui/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
targetSdkVersion
30
...
...
This diff is collapsed.
Click to expand it.
dev/manual_tests/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -32,6 +32,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
'1.8'
}
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
}
...
...
This diff is collapsed.
Click to expand it.
examples/flutter_view/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.flutter_view"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
examples/hello_world/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.hello_world"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
examples/image_list/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.image_list"
...
...
This diff is collapsed.
Click to expand it.
examples/layers/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.layers"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
examples/platform_channel/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.platform_channel"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
examples/platform_view/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
applicationId
"io.flutter.examples.platform_view"
minSdkVersion
16
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/app/android-java.tmpl/app/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -27,6 +27,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{androidIdentifier}}"
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/app/android-kotlin.tmpl/app/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -28,6 +28,15 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -21,6 +21,11 @@ apply plugin: "com.android.dynamic-feature"
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
applicationVariants.all { variant ->
main.assets.srcDirs += "${project.buildDir}/intermediates/flutter/${variant.name}/deferred_assets"
...
...
@@ -34,11 +39,6 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -6,8 +6,8 @@ android {
compileSdkVersion 30
compileOptions {
sourceCompatibility
1.
8
targetCompatibility
1.
8
sourceCompatibility
JavaVersion.VERSION_1_
8
targetCompatibility
JavaVersion.VERSION_1_
8
}
defaultConfig {
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/module/android/library_new_embedding/Flutter.tmpl/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -32,6 +32,11 @@ version '1.0'
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -24,6 +24,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion 16
}
...
...
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
View file @
42f21fd7
...
...
@@ -27,9 +27,19 @@ apply plugin: 'kotlin-android'
android {
compileSdkVersion 30
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 16
}
...
...
This diff is collapsed.
Click to expand it.
packages/integration_test/android/build.gradle
View file @
42f21fd7
...
...
@@ -28,6 +28,11 @@ apply plugin: 'com.android.library'
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
minSdkVersion
16
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
This diff is collapsed.
Click to expand it.
packages/integration_test/example/android/app/build.gradle
View file @
42f21fd7
...
...
@@ -31,6 +31,11 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
compileSdkVersion
30
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.integration_test_example"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment