Adds support for generating projects that use AndroidX support libraries (#31028)

This commit is contained in:
Josh Burton
2019-06-01 13:33:02 +12:00
committed by Emmanuel Garcia
parent 16a23dd27e
commit d0e45a2369
19 changed files with 206 additions and 10 deletions

View File

@@ -38,7 +38,12 @@ android {
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
{{#androidX}}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
{{/androidX}}
{{^androidX}}
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
{{/androidX}}
}
buildTypes {
@@ -56,6 +61,12 @@ flutter {
dependencies {
testImplementation 'junit:junit:4.12'
{{#androidX}}
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
{{/androidX}}
{{^androidX}}
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
{{/androidX}}
}