-
Notifications
You must be signed in to change notification settings - Fork 3
/
commonlibs2.gradle
49 lines (46 loc) · 1.49 KB
/
commonlibs2.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
def config = rootProject.ext //配置
def librarys = config.dependencies //
android {
compileSdkVersion config.compileSdkVersion
defaultConfig {
minSdkVersion config.minSdkVersion
targetSdkVersion config.targetSdkVersion
multiDexEnabled true
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
vectorDrawables.useSupportLibrary = true
// javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
flavorDimensions "keep"
productFlavors {
bxnt_nation { dimension "keep" }
bxny_nation { dimension "keep" }
bxn_nation { dimension "keep" }
}
libraryVariants.all { variant ->
variant.outputs.all {
// outputFileName = "${project.name}_${variant.flavorName}.aar"
outputFileName = "${project.name}_${variant.flavorName}.aar"
}
}
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// }
// }
buildFeatures {
dataBinding = true
// for view binding :
// viewBinding = true
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
}