-
Notifications
You must be signed in to change notification settings - Fork 3
/
commonlibs1.gradle
50 lines (49 loc) · 1.59 KB
/
commonlibs1.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
50
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
}
libraryVariants.all { variant ->
variant.outputs.all {
// outputFileName = "${variant.name}-${variant.versionName}.apk"
outputFileName = "${project.name}.aar"
}
}
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// }
// }
// dataBinding {
// enabled = true
// }
// viewBinding.enabled = true
buildFeatures {
dataBinding = true
// for view binding :
// viewBinding = true
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation librarys.design
implementation librarys.appcompatV7
implementation librarys.supportannotations
implementation librarys.recyclerviewv7
implementation librarys.swiperefreshlayout
}