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
d7631275
Unverified
Commit
d7631275
authored
Oct 15, 2021
by
Emmanuel Garcia
Committed by
GitHub
Oct 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump targetSdkVersion to 31 and organize static values (#91719)
parent
ff6f4620
Changes
48
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
198 additions
and
165 deletions
+198
-165
.gitignore
.gitignore
+1
-1
build.gradle
dev/benchmarks/complex_layout/android/app/build.gradle
+3
-3
build.gradle
dev/benchmarks/macrobenchmarks/android/app/build.gradle
+3
-3
build.gradle
dev/benchmarks/microbenchmarks/android/app/build.gradle
+3
-3
build.gradle
...benchmarks/platform_views_layout/android/app/build.gradle
+3
-3
build.gradle
..._views_layout_hybrid_composition/android/app/build.gradle
+3
-3
build.gradle
dev/benchmarks/test_apps/stocks/android/app/build.gradle
+3
-3
build.gradle
...tests/abstract_method_smoke_test/android/app/build.gradle
+2
-2
last-build.bin
...id_custom_host_app/.gradle/6.3/fileChanges/last-build.bin
+0
-0
gc.properties
...n_tests/android_custom_host_app/.gradle/6.3/gc.properties
+0
-0
gc.properties
...tests/android_custom_host_app/.gradle/vcs-1/gc.properties
+0
-0
build.gradle
.../android_embedding_v2_smoke_test/android/app/build.gradle
+2
-2
last-build.bin
...t_app_v2_embedding/.gradle/6.3/fileChanges/last-build.bin
+0
-0
gc.properties
...s/android_host_app_v2_embedding/.gradle/6.3/gc.properties
+0
-0
gc.properties
...android_host_app_v2_embedding/.gradle/vcs-1/gc.properties
+0
-0
build.gradle
..._tests/android_semantics_testing/android/app/build.gradle
+3
-3
build.gradle
dev/integration_tests/android_views/android/app/build.gradle
+3
-3
AndroidManifest.xml
...ts/android_views/android/app/src/main/AndroidManifest.xml
+4
-3
build.gradle
dev/integration_tests/channels/android/app/build.gradle
+3
-3
build.gradle
...n_tests/deferred_components_test/android/app/build.gradle
+3
-3
build.gradle
dev/integration_tests/external_ui/android/app/build.gradle
+3
-3
build.gradle
dev/integration_tests/flavors/android/app/build.gradle
+3
-3
build.gradle
...ntegration_tests/flutter_gallery/android/app/build.gradle
+3
-3
build.gradle
...tests/gradle_deprecated_settings/android/app/build.gradle
+2
-2
build.gradle
...ation_tests/hybrid_android_views/android/app/build.gradle
+3
-3
last-build.bin
...build_v2_embedding/.gradle/6.3/fileChanges/last-build.bin
+0
-0
gc.properties
..._with_custom_build_v2_embedding/.gradle/6.3/gc.properties
+0
-0
gc.properties
...ith_custom_build_v2_embedding/.gradle/vcs-1/gc.properties
+0
-0
build.gradle
dev/integration_tests/non_nullable/android/app/build.gradle
+3
-3
build.gradle
...ation_tests/platform_interaction/android/app/build.gradle
+3
-3
build.gradle
...gration_tests/release_smoke_test/android/app/build.gradle
+3
-3
build.gradle
dev/integration_tests/ui/android/app/build.gradle
+3
-3
build.gradle
dev/manual_tests/android/app/build.gradle
+3
-3
build.gradle
examples/api/android/app/build.gradle
+3
-3
build.gradle
examples/flutter_view/android/app/build.gradle
+3
-3
build.gradle
examples/hello_world/android/app/build.gradle
+3
-3
build.gradle
examples/image_list/android/app/build.gradle
+3
-3
build.gradle
examples/layers/android/app/build.gradle
+3
-3
build.gradle
examples/platform_channel/android/app/build.gradle
+3
-3
build.gradle
examples/platform_view/android/app/build.gradle
+3
-3
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+90
-57
build.gradle.tmpl
...plates/app_shared/android-java.tmpl/app/build.gradle.tmpl
+3
-3
build.gradle.tmpl
...ates/app_shared/android-kotlin.tmpl/app/build.gradle.tmpl
+3
-3
build.gradle.tmpl
...roid/library_new_embedding/Flutter.tmpl/build.gradle.tmpl
+3
-3
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+3
-3
deferred_components_test.dart
...ools/test/integration.shard/deferred_components_test.dart
+1
-2
deferred_components_project.dart
...egration.shard/test_data/deferred_components_project.dart
+3
-3
build.gradle
packages/integration_test/example/android/app/build.gradle
+3
-3
No files found.
.gitignore
View file @
d7631275
...
@@ -61,7 +61,7 @@ unlinked_spec.ds
...
@@ -61,7 +61,7 @@ unlinked_spec.ds
# Android related
# Android related
**/android/**/gradle-wrapper.jar
**/android/**/gradle-wrapper.jar
**/android/.gradle
.gradle/
**/android/captures/
**/android/captures/
**/android/gradlew
**/android/gradlew
**/android/gradlew.bat
**/android/gradlew.bat
...
...
dev/benchmarks/complex_layout/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_11
sourceCompatibility
JavaVersion
.
VERSION_11
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/benchmarks/macrobenchmarks/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"com.example.macrobenchmarks"
applicationId
"com.example.macrobenchmarks"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
dev/benchmarks/microbenchmarks/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/benchmarks/platform_views_layout/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/benchmarks/platform_views_layout_hybrid_composition/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/benchmarks/test_apps/stocks/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.stocks"
applicationId
"io.flutter.examples.stocks"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/abstract_method_smoke_test/android/app/build.gradle
View file @
d7631275
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -49,7 +49,7 @@ android {
...
@@ -49,7 +49,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.abstract_method_smoke_test"
applicationId
"com.example.abstract_method_smoke_test"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/android_custom_host_app/.gradle/6.3/fileChanges/last-build.bin
deleted
100644 → 0
View file @
ff6f4620
File deleted
dev/integration_tests/android_custom_host_app/.gradle/6.3/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/android_custom_host_app/.gradle/vcs-1/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/android_embedding_v2_smoke_test/android/app/build.gradle
View file @
d7631275
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -49,7 +49,7 @@ android {
...
@@ -49,7 +49,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.android_embedding_v2_smoke_test"
applicationId
"com.example.android_embedding_v2_smoke_test"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/android_host_app_v2_embedding/.gradle/6.3/fileChanges/last-build.bin
deleted
100644 → 0
View file @
ff6f4620
File deleted
dev/integration_tests/android_host_app_v2_embedding/.gradle/6.3/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/android_host_app_v2_embedding/.gradle/vcs-1/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/android_semantics_testing/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/integration_tests/android_views/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -39,8 +39,8 @@ android {
...
@@ -39,8 +39,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.integration.platformviews"
applicationId
"io.flutter.integration.platformviews"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/android_views/android/app/src/main/AndroidManifest.xml
View file @
d7631275
...
@@ -5,13 +5,14 @@ found in the LICENSE file. -->
...
@@ -5,13 +5,14 @@ found in the LICENSE file. -->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.integration.platformviews"
>
package=
"io.flutter.integration.platformviews"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<application
<application
android:name=
"io.flutter.app.FlutterApplication"
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"platform_views"
>
android:label=
"platform_views"
>
<activity
<activity
android:exported=
"true"
android:name=
".MainActivity"
android:name=
".MainActivity"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
...
@@ -21,8 +22,8 @@ found in the LICENSE file. -->
...
@@ -21,8 +22,8 @@ found in the LICENSE file. -->
android:name=
"io.flutter.app.android.SplashScreenUntilFirstFrame"
android:name=
"io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value=
"true"
/>
android:value=
"true"
/>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<!-- Don't delete the meta-data below.
<!-- Don't delete the meta-data below.
...
...
dev/integration_tests/channels/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/integration_tests/deferred_components_test/android/app/build.gradle
View file @
d7631275
...
@@ -36,7 +36,7 @@ apply plugin: 'kotlin-android'
...
@@ -36,7 +36,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
sourceSets
{
sourceSets
{
main
.
java
.
srcDirs
+=
'src/main/kotlin'
main
.
java
.
srcDirs
+=
'src/main/kotlin'
...
@@ -49,8 +49,8 @@ android {
...
@@ -49,8 +49,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.integration.deferred_components_test"
applicationId
"io.flutter.integration.deferred_components_test"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/external_ui/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -28,8 +28,8 @@ android {
...
@@ -28,8 +28,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.externalui"
applicationId
"io.flutter.externalui"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
}
}
...
...
dev/integration_tests/flavors/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -28,8 +28,8 @@ android {
...
@@ -28,8 +28,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"com.yourcompany.flavors"
applicationId
"com.yourcompany.flavors"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
}
}
...
...
dev/integration_tests/flutter_gallery/android/app/build.gradle
View file @
d7631275
...
@@ -40,7 +40,7 @@ apply plugin: 'com.android.application'
...
@@ -40,7 +40,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -49,8 +49,8 @@ android {
...
@@ -49,8 +49,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.demo.gallery"
applicationId
"io.flutter.demo.gallery"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
dev/integration_tests/gradle_deprecated_settings/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -29,7 +29,7 @@ android {
...
@@ -29,7 +29,7 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"com.yourcompany.flavors"
applicationId
"com.yourcompany.flavors"
minSdkVersion
21
minSdkVersion
21
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
}
}
...
...
dev/integration_tests/hybrid_android_views/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -39,8 +39,8 @@ android {
...
@@ -39,8 +39,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.integration.platformviews"
applicationId
"io.flutter.integration.platformviews"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/module_host_with_custom_build_v2_embedding/.gradle/6.3/fileChanges/last-build.bin
deleted
100644 → 0
View file @
ff6f4620
File deleted
dev/integration_tests/module_host_with_custom_build_v2_embedding/.gradle/6.3/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/module_host_with_custom_build_v2_embedding/.gradle/vcs-1/gc.properties
deleted
100644 → 0
View file @
ff6f4620
dev/integration_tests/non_nullable/android/app/build.gradle
View file @
d7631275
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -48,8 +48,8 @@ android {
...
@@ -48,8 +48,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.non_nullable"
applicationId
"com.example.non_nullable"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
dev/integration_tests/platform_interaction/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"0.0.1"
versionName
"0.0.1"
}
}
...
...
dev/integration_tests/release_smoke_test/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -39,8 +39,8 @@ android {
...
@@ -39,8 +39,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.release_smoke_test"
applicationId
"com.example.release_smoke_test"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
dev/integration_tests/ui/android/app/build.gradle
View file @
d7631275
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
...
@@ -19,7 +19,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -27,8 +27,8 @@ android {
...
@@ -27,8 +27,8 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
}
}
...
...
dev/manual_tests/android/app/build.gradle
View file @
d7631275
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -52,8 +52,8 @@ android {
...
@@ -52,8 +52,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.manual_tests"
applicationId
"com.example.manual_tests"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/api/android/app/build.gradle
View file @
d7631275
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
...
@@ -30,7 +30,7 @@ apply plugin: 'kotlin-android'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -48,8 +48,8 @@ android {
...
@@ -48,8 +48,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"dev.flutter.flutter_api_samples"
applicationId
"dev.flutter.flutter_api_samples"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/flutter_view/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.flutter_view"
applicationId
"io.flutter.examples.flutter_view"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/hello_world/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.hello_world"
applicationId
"io.flutter.examples.hello_world"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/image_list/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -39,8 +39,8 @@ android {
...
@@ -39,8 +39,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.image_list"
applicationId
"com.example.image_list"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/layers/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.layers"
applicationId
"io.flutter.examples.layers"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
examples/platform_channel/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.platform_channel"
applicationId
"io.flutter.examples.platform_channel"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
examples/platform_view/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.platform_view"
applicationId
"io.flutter.examples.platform_view"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
}
}
...
...
packages/flutter_tools/gradle/flutter.gradle
View file @
d7631275
This diff is collapsed.
Click to expand it.
packages/flutter_tools/templates/app_shared/android-java.tmpl/app/build.gradle.tmpl
View file @
d7631275
...
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
...
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
android {
compileSdkVersion
30
compileSdkVersion
flutter.compileSdkVersion
compileOptions {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
...
@@ -35,8 +35,8 @@ android {
...
@@ -35,8 +35,8 @@ android {
defaultConfig {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{androidIdentifier}}"
applicationId "{{androidIdentifier}}"
minSdkVersion
16
minSdkVersion
flutter.minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
versionName flutterVersionName
}
}
...
...
packages/flutter_tools/templates/app_shared/android-kotlin.tmpl/app/build.gradle.tmpl
View file @
d7631275
...
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
...
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
android {
compileSdkVersion
30
compileSdkVersion
flutter.compileSdkVersion
compileOptions {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
...
@@ -44,8 +44,8 @@ android {
...
@@ -44,8 +44,8 @@ android {
defaultConfig {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{androidIdentifier}}"
applicationId "{{androidIdentifier}}"
minSdkVersion
16
minSdkVersion
flutter.minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
versionName flutterVersionName
}
}
...
...
packages/flutter_tools/templates/module/android/library_new_embedding/Flutter.tmpl/build.gradle.tmpl
View file @
d7631275
...
@@ -30,7 +30,7 @@ group '{{androidIdentifier}}'
...
@@ -30,7 +30,7 @@ group '{{androidIdentifier}}'
version '1.0'
version '1.0'
android {
android {
compileSdkVersion
30
compileSdkVersion
flutter.compileSdkVersion
compileOptions {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
...
@@ -38,8 +38,8 @@ android {
...
@@ -38,8 +38,8 @@ android {
}
}
defaultConfig {
defaultConfig {
minSdkVersion
16
minSdkVersion
flutter.minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
versionName flutterVersionName
}
}
...
...
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
d7631275
...
@@ -2368,7 +2368,7 @@ void main() {
...
@@ -2368,7 +2368,7 @@ void main() {
expect
(
env
[
'flutter'
].
allows
(
Version
(
2
,
4
,
9
)),
false
);
expect
(
env
[
'flutter'
].
allows
(
Version
(
2
,
4
,
9
)),
false
);
});
});
testUsingContext
(
'default app uses
Android SDK 30
'
,
()
async
{
testUsingContext
(
'default app uses
flutter default versions
'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
Cache
.
flutterRoot
=
'../..'
;
final
CreateCommand
command
=
CreateCommand
();
final
CreateCommand
command
=
CreateCommand
();
...
@@ -2380,8 +2380,8 @@ void main() {
...
@@ -2380,8 +2380,8 @@ void main() {
final
String
buildContent
=
await
globals
.
fs
.
file
(
'
${projectDir.path}
/android/app/build.gradle'
).
readAsString
();
final
String
buildContent
=
await
globals
.
fs
.
file
(
'
${projectDir.path}
/android/app/build.gradle'
).
readAsString
();
expect
(
buildContent
.
contains
(
'compileSdkVersion
30
'
),
true
);
expect
(
buildContent
.
contains
(
'compileSdkVersion
flutter.compileSdkVersion
'
),
true
);
expect
(
buildContent
.
contains
(
'targetSdkVersion
30
'
),
true
);
expect
(
buildContent
.
contains
(
'targetSdkVersion
flutter.targetSdkVersion
'
),
true
);
});
});
testUsingContext
(
'Linux plugins handle partially camel-case project names correctly'
,
()
async
{
testUsingContext
(
'Linux plugins handle partially camel-case project names correctly'
,
()
async
{
...
...
packages/flutter_tools/test/integration.shard/deferred_components_test.dart
View file @
d7631275
...
@@ -40,6 +40,7 @@ void main() {
...
@@ -40,6 +40,7 @@ void main() {
'--target-platform=android-arm64'
'--target-platform=android-arm64'
],
workingDirectory:
tempDir
.
path
);
],
workingDirectory:
tempDir
.
path
);
expect
(
result
.
exitCode
,
0
);
expect
(
result
.
stdout
.
toString
(),
contains
(
'app-release.aab'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'app-release.aab'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components prebuild validation passed.'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components prebuild validation passed.'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components gen_snapshot validation passed.'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components gen_snapshot validation passed.'
));
...
@@ -60,8 +61,6 @@ void main() {
...
@@ -60,8 +61,6 @@ void main() {
expect
(
archive
.
findFile
(
'component1/assets/flutter_assets/test_assets/asset2.txt'
)
!=
null
,
true
);
expect
(
archive
.
findFile
(
'component1/assets/flutter_assets/test_assets/asset2.txt'
)
!=
null
,
true
);
expect
(
archive
.
findFile
(
'base/assets/flutter_assets/test_assets/asset1.txt'
)
!=
null
,
true
);
expect
(
archive
.
findFile
(
'base/assets/flutter_assets/test_assets/asset1.txt'
)
!=
null
,
true
);
expect
(
result
.
exitCode
,
0
);
});
});
testWithoutContext
(
'simple build appbundle all targets succeeds'
,
()
async
{
testWithoutContext
(
'simple build appbundle all targets succeeds'
,
()
async
{
...
...
packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart
View file @
d7631275
...
@@ -177,7 +177,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
...
@@ -177,7 +177,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
apply from: "
$flutterRoot
/packages/flutter_tools/gradle/flutter.gradle"
apply from: "
$flutterRoot
/packages/flutter_tools/gradle/flutter.gradle"
android {
android {
compileSdkVersion
30
compileSdkVersion
flutter.compileSdkVersion
sourceSets {
sourceSets {
main.java.srcDirs += '
src
/
main
/
kotlin
'
main.java.srcDirs += '
src
/
main
/
kotlin
'
...
@@ -190,8 +190,8 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
...
@@ -190,8 +190,8 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
defaultConfig {
defaultConfig {
// Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "ninja.qian.splitaottest1"
applicationId "ninja.qian.splitaottest1"
minSdkVersion
16
minSdkVersion
flutter.minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
versionName flutterVersionName
}
}
...
...
packages/integration_test/example/android/app/build.gradle
View file @
d7631275
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
...
@@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
30
compileSdkVersion
flutter
.
compileSdkVersion
compileOptions
{
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
@@ -39,8 +39,8 @@ android {
...
@@ -39,8 +39,8 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.example.integration_test_example"
applicationId
"com.example.integration_test_example"
minSdkVersion
16
minSdkVersion
flutter
.
minSdkVersion
targetSdkVersion
30
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
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