Adds support for generating projects that use AndroidX support libraries (#31028)
This commit is contained in:
committed by
Emmanuel Garcia
parent
16a23dd27e
commit
d0e45a2369
@@ -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}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user