-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle.kts
50 lines (42 loc) · 1.47 KB
/
build.gradle.kts
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
plugins {
id(GradlePluginId.ANDROID_LIBRARY)
kotlin(GradlePluginId.ANDROID_KTX)
kotlin(GradlePluginId.KAPT)
kotlin(GradlePluginId.ANDROID_EXTENSIONS_KTX)
}
android {
compileSdkVersion(AndroidConfig.COMPILE_SDK_VERSION)
buildToolsVersion(AndroidConfig.BUILD_TOOLS_VERSION)
buildFeatures.viewBinding = true
defaultConfig {
minSdkVersion(AndroidConfig.MIN_SDK_VERSION)
targetSdkVersion(AndroidConfig.TARGET_SDK_VERSION)
versionCode = AndroidConfig.VERSION_CODE
versionName = AndroidConfig.VERSION_NAME
testInstrumentationRunner = AndroidConfig.TEST_INSTRUMENTATION_RUNNER
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
getByName(BuildType.RELEASE) {
isMinifyEnabled = BuildTypeRelease.isMinifyEnabled
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(LibraryDependency.KOTLIN_STDLIB)
implementation(LibraryDependency.APP_COMPAT)
implementation(LibraryDependency.CORE_KTX)
implementation(LibraryDependency.CARDVIEW)
}