49 lines
1.1 KiB
Groovy
49 lines
1.1 KiB
Groovy
|
apply plugin: 'com.android.library'
|
||
|
apply plugin: 'kotlin-android'
|
||
|
apply plugin: 'org.jlleitschuh.gradle.ktlint'
|
||
|
|
||
|
android {
|
||
|
buildToolsVersion BUILD_TOOL_VERSION
|
||
|
compileSdkVersion COMPILE_SDK
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdkVersion MINIMUM_SDK
|
||
|
targetSdkVersion TARGET_SDK
|
||
|
multiDexEnabled true
|
||
|
}
|
||
|
|
||
|
compileOptions {
|
||
|
coreLibraryDesugaringEnabled true
|
||
|
sourceCompatibility JAVA_VERSION
|
||
|
targetCompatibility JAVA_VERSION
|
||
|
}
|
||
|
|
||
|
kotlinOptions {
|
||
|
jvmTarget = '1.8'
|
||
|
}
|
||
|
|
||
|
lintOptions {
|
||
|
disable 'InvalidVectorPath'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ktlint {
|
||
|
// Use a newer version to resolve https://github.com/JLLeitschuh/ktlint-gradle/issues/507
|
||
|
version = "0.43.2"
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
lintChecks project(':lintchecks')
|
||
|
|
||
|
implementation project(':core-util')
|
||
|
|
||
|
coreLibraryDesugaring libs.android.tools.desugar
|
||
|
|
||
|
implementation libs.androidx.core.ktx
|
||
|
implementation libs.androidx.fragment.ktx
|
||
|
implementation libs.androidx.annotation
|
||
|
implementation libs.androidx.appcompat
|
||
|
|
||
|
implementation libs.kotlin.stdlib.jdk8
|
||
|
}
|