-
Notifications
You must be signed in to change notification settings - Fork 8
/
androidLib.gradle
58 lines (51 loc) · 1.57 KB
/
androidLib.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
51
52
53
54
55
56
57
58
apply plugin: 'com.android.library'
apply plugin: "kotlin-android"
apply plugin: 'kotlin-android-extensions'
apply plugin: "kotlin-kapt"
apply plugin: "com.jakewharton.butterknife"
check.dependsOn detekt
android {
compileSdkVersion prjectCompileSdkVersion
defaultConfig {
minSdkVersion projectMinSdkVersion
targetSdkVersion projectTargetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
debuggable isReleaseDebuggable
minifyEnabled isReleaseMinify
shrinkResources isReleaseShrinkResources
multiDexEnabled isReleaseMultiDex
proguardFiles(getDefaultProguardFile("proguard-android.txt"),
"$proguardFileAddress")
}
debug {
ext.alwaysUpdateBuildId = false
shrinkResources isDebugShrinkResources
debuggable isDebugDebuggable
minifyEnabled isDebugMinify
multiDexEnabled isDebugMultiDex
proguardFiles(getDefaultProguardFile("proguard-android.txt"),
"$proguardFileAddress")
// testCoverageEnabled isDebugTestCoverage
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
androidExtensions {
defaultCacheImplementation = "SPARSE_ARRAY"
experimental = true
}
viewBinding{
enabled = true
}
}
dependencies{
implementation kotlinStd8
implementation butterKnife
}