2021-10-08 15:18:52 -04:00
|
|
|
plugins {
|
2023-02-13 17:03:08 -05:00
|
|
|
id 'signal-library'
|
2021-10-08 15:18:52 -04:00
|
|
|
id 'com.google.protobuf'
|
|
|
|
id 'kotlin-kapt'
|
|
|
|
}
|
2020-12-04 18:31:58 -05:00
|
|
|
|
|
|
|
android {
|
2023-02-11 15:35:01 -05:00
|
|
|
namespace 'org.signal.core.util'
|
2020-12-04 18:31:58 -05:00
|
|
|
}
|
|
|
|
|
2020-12-20 00:44:26 -05:00
|
|
|
protobuf {
|
|
|
|
protoc {
|
2021-12-30 00:15:16 -05:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-04 18:31:58 -05:00
|
|
|
dependencies {
|
2021-09-14 14:57:04 -03:00
|
|
|
implementation libs.google.protobuf.javalite
|
2022-03-23 12:56:11 -04:00
|
|
|
implementation libs.androidx.sqlite
|
2021-01-05 19:13:38 -04:00
|
|
|
|
2021-09-14 14:57:04 -03:00
|
|
|
testImplementation testLibs.junit.junit
|
|
|
|
testImplementation testLibs.mockito.core
|
2022-03-23 12:56:11 -04:00
|
|
|
testImplementation (testLibs.robolectric.robolectric) {
|
|
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-java'
|
|
|
|
}
|
2021-01-05 19:13:38 -04:00
|
|
|
}
|