-
Notifications
You must be signed in to change notification settings - Fork 16
/
common_build.gradle
35 lines (29 loc) · 1.07 KB
/
common_build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Created on 2022-2-11 5:35:39 PM.
* Copyright © 2022 刘振林. All rights reserved.
*/
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
targetSdkVersion rootProject.ext.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
if (plugins.hasPlugin('com.android.application')) {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
rootProject.ext.proguardRulesFileName
} else {
consumerProguardFiles rootProject.ext.proguardRulesFileName
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.appcompat:appcompat:$rootProject.ext.appcompatVersion"
testImplementation "junit:junit:$rootProject.ext.testJunitVersion"
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.androidTestJunitVersion"
}