46 lines
No EOL
886 B
Groovy
46 lines
No EOL
886 B
Groovy
plugins {
|
|
id 'signal-library'
|
|
id 'com.google.protobuf'
|
|
id 'kotlin-kapt'
|
|
id 'com.squareup.wire'
|
|
}
|
|
|
|
android {
|
|
namespace 'org.signal.core.util'
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = 'com.google.protobuf:protoc:3.18.0'
|
|
}
|
|
generateProtoTasks {
|
|
all().each { task ->
|
|
task.builtins {
|
|
java {
|
|
option "lite"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.google.protobuf.javalite
|
|
implementation libs.androidx.sqlite
|
|
|
|
testImplementation testLibs.junit.junit
|
|
testImplementation testLibs.mockito.core
|
|
testImplementation (testLibs.robolectric.robolectric) {
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-java'
|
|
}
|
|
}
|
|
|
|
wire {
|
|
kotlin {
|
|
javaInterop = true
|
|
}
|
|
|
|
sourcePath {
|
|
srcDir 'src/main/protowire'
|
|
}
|
|
} |