Reland: display features (#93117)

This commit is contained in:
Andrei Diaconu
2021-11-06 00:54:25 +02:00
committed by GitHub
parent 57f039f170
commit 9038fac960
63 changed files with 462 additions and 87 deletions

View File

@@ -958,7 +958,7 @@ String gradleFileWithApplicationId(String id) {
return '''
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
applicationId '$id'
@@ -975,7 +975,7 @@ version '1.0-SNAPSHOT'
apply plugin: 'com.android.library'
android {
compileSdkVersion 30
compileSdkVersion 31
}
''';
}

View File

@@ -47,7 +47,7 @@ void main() {
RegExp(r'com\.android\.tools\.build:gradle:(\d+\.\d+\.\d+)');
// Use AGP 4.1.0
String newBuildGradle = buildGradle.replaceAll(
final String newBuildGradle = buildGradle.replaceAll(
androidPluginRegExp, 'com.android.tools.build:gradle:4.1.0');
buildGradleFile.writeAsStringSync(newBuildGradle);
@@ -83,11 +83,6 @@ void main() {
.join(exampleAppDir.path, 'android', 'gradle', 'wrapper'))
.deleteSync(recursive: true);
// Use AGP 3.3.0
newBuildGradle = buildGradle.replaceAll(
androidPluginRegExp, 'com.android.tools.build:gradle:3.3.0');
buildGradleFile.writeAsStringSync(newBuildGradle);
// Enable R8 in gradle.properties
final File gradleProperties =
exampleAppDir.childDirectory('android').childFile('gradle.properties');

View File

@@ -108,7 +108,7 @@ class DeferredComponentModule {
apply plugin: "com.android.dynamic-feature"
android {
compileSdkVersion 30
compileSdkVersion 31
sourceSets {
applicationVariants.all { variant ->
@@ -119,7 +119,7 @@ class DeferredComponentModule {
defaultConfig {
minSdkVersion 16
targetSdkVersion 30
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

View File

@@ -162,7 +162,7 @@ class MultidexProject extends Project {
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 30
compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8