Signal-Android/core-util/build.gradle

62 lines
1.4 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.library'
id 'com.google.protobuf'
id 'kotlin-android'
id 'kotlin-kapt'
}
android {
buildToolsVersion BUILD_TOOL_VERSION
compileSdkVersion COMPILE_SDK
defaultConfig {
minSdkVersion MINIMUM_SDK
targetSdkVersion TARGET_SDK
2021-06-10 15:47:12 -04:00
multiDexEnabled true
}
compileOptions {
2021-06-10 15:47:12 -04:00
coreLibraryDesugaringEnabled true
sourceCompatibility JAVA_VERSION
targetCompatibility JAVA_VERSION
}
kotlinOptions {
jvmTarget = '1.8'
}
}
2020-12-20 00:44:26 -05:00
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.18.0'
2020-12-20 00:44:26 -05:00
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
}
}
}
dependencies {
2021-01-05 19:13:38 -04:00
lintChecks project(':lintchecks')
coreLibraryDesugaring libs.android.tools.desugar
2021-06-10 15:47:12 -04:00
api libs.androidx.annotation
2021-01-05 19:13:38 -04:00
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.common.java8
implementation libs.google.protobuf.javalite
implementation libs.androidx.sqlite
2022-07-27 12:48:51 -04:00
implementation libs.rxjava3.rxjava
2021-01-05 19:13:38 -04:00
testImplementation testLibs.junit.junit
testImplementation testLibs.mockito.core
testImplementation (testLibs.robolectric.robolectric) {
exclude group: 'com.google.protobuf', module: 'protobuf-java'
}
2021-01-05 19:13:38 -04:00
}