Skip to content

Commit 243749a

Browse files
committed
feat: 配置安卓打包文件
AndroidX
1 parent 6378dcf commit 243749a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

android/app/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ android {
4343
targetSdkVersion 28
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
46-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
46+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4747
}
4848
// 配置安卓打包
4949
signingConfigs {
@@ -65,6 +65,9 @@ android {
6565
useProguard true
6666

6767
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
68+
dependencies {
69+
implementation 'com.android.support:support-fragment:28.0.0'
70+
}
6871
}
6972
}
7073
}
@@ -75,6 +78,6 @@ flutter {
7578

7679
dependencies {
7780
testImplementation 'junit:junit:4.12'
78-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
79-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
81+
androidTestImplementation 'androidx.test:runner:1.1.1'
82+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
8083
}

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.2.1'
8+
classpath 'com.android.tools.build:gradle:3.3.0'
99
}
1010
}
1111

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2+
android.enableJetifier=true
3+
android.useAndroidX=true

0 commit comments

Comments
 (0)