ac90eeb42f
Windows and M1 gradle verification sha256 values. Using: gradlew --write-verification-metadata sha256 help But aapt2 artifact had to be manually added. Fixes #11871, Fixes #11878, Closes #11877
55 lines
1.1 KiB
Groovy
55 lines
1.1 KiB
Groovy
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
|
|
multiDexEnabled true
|
|
}
|
|
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
sourceCompatibility JAVA_VERSION
|
|
targetCompatibility JAVA_VERSION
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = 'com.google.protobuf:protoc:3.18.0'
|
|
}
|
|
generateProtoTasks {
|
|
all().each { task ->
|
|
task.builtins {
|
|
java {
|
|
option "lite"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
lintChecks project(':lintchecks')
|
|
|
|
coreLibraryDesugaring libs.android.tools.desugar
|
|
|
|
api libs.androidx.annotation
|
|
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.google.protobuf.javalite
|
|
|
|
testImplementation testLibs.junit.junit
|
|
testImplementation testLibs.mockito.core
|
|
}
|