Reland engine display features (#89511)

This commit is contained in:
Andrei Diaconu
2021-11-05 03:37:55 +02:00
committed by GitHub
parent b8d53d51e4
commit 058dfd49a0
63 changed files with 463 additions and 88 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

@@ -161,7 +161,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
@@ -179,7 +179,7 @@ class MultidexProject extends Project {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.multidextest2"
minSdkVersion 16
minSdkVersion 19
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName