Reland: display features (#93117)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.50'
|
||||
ext.kotlin_version = '1.4.32'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
|
||||
@@ -19,7 +19,7 @@ if (flutterVersionName == null) {
|
||||
apply plugin: "com.android.dynamic-feature"
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
compileSdkVersion 31
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
@@ -35,7 +35,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 30
|
||||
targetSdkVersion 31
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ def flutterPluginVersion = 'managed'
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
compileSdkVersion 31
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
@@ -13,7 +13,7 @@ android {
|
||||
defaultConfig {
|
||||
applicationId "{{androidIdentifier}}.host"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 30
|
||||
targetSdkVersion 31
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ rootProject.allprojects {
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
compileSdkVersion 31
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
|
||||
@@ -2,7 +2,7 @@ group '{{androidIdentifier}}'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.50'
|
||||
ext.kotlin_version = '1.4.32'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
@@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
compileSdkVersion 31
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
|
||||
@@ -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
|
||||
}
|
||||
''';
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user