Converted all minor modules to .gradle.kts.
This commit is contained in:
parent
d77744c562
commit
766733617e
36 changed files with 312 additions and 311 deletions
|
@ -1,26 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.core.ui'
|
||||
|
||||
buildFeatures {
|
||||
compose true
|
||||
}
|
||||
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = '1.4.4'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
lintChecks project(':lintchecks')
|
||||
|
||||
def composeBom = platform(libs.androidx.compose.bom)
|
||||
api composeBom
|
||||
androidTestApi composeBom
|
||||
api libs.androidx.compose.material3
|
||||
api libs.androidx.compose.ui.tooling.preview
|
||||
debugApi libs.androidx.compose.ui.tooling.core
|
||||
}
|
28
core-ui/build.gradle.kts
Normal file
28
core-ui/build.gradle.kts
Normal file
|
@ -0,0 +1,28 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.core.ui"
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = "1.4.4"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
lintChecks(project(":lintchecks"))
|
||||
|
||||
platform(libs.androidx.compose.bom).let { composeBom ->
|
||||
api(composeBom)
|
||||
androidTestApi(composeBom)
|
||||
}
|
||||
|
||||
api(libs.androidx.compose.material3)
|
||||
api(libs.androidx.compose.ui.tooling.preview)
|
||||
debugApi(libs.androidx.compose.ui.tooling.core)
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
id 'kotlin-kapt'
|
||||
id 'com.squareup.wire'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.core.util'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(':core-util-jvm'))
|
||||
|
||||
implementation libs.androidx.sqlite
|
||||
|
||||
testImplementation testLibs.junit.junit
|
||||
testImplementation testLibs.mockito.core
|
||||
testImplementation (testLibs.robolectric.robolectric)
|
||||
}
|
||||
|
||||
wire {
|
||||
kotlin {
|
||||
javaInterop = true
|
||||
}
|
||||
|
||||
sourcePath {
|
||||
srcDir 'src/main/protowire'
|
||||
}
|
||||
}
|
29
core-util/build.gradle.kts
Normal file
29
core-util/build.gradle.kts
Normal file
|
@ -0,0 +1,29 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
id("kotlin-kapt")
|
||||
id("com.squareup.wire")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.core.util"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":core-util-jvm"))
|
||||
|
||||
implementation(libs.androidx.sqlite)
|
||||
|
||||
testImplementation(testLibs.junit.junit)
|
||||
testImplementation(testLibs.mockito.core)
|
||||
testImplementation(testLibs.robolectric.robolectric)
|
||||
}
|
||||
|
||||
wire {
|
||||
kotlin {
|
||||
javaInterop = true
|
||||
}
|
||||
|
||||
sourcePath {
|
||||
srcDir("src/main/protowire")
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.devicetransfer.app'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.devicetransfer.app"
|
||||
|
||||
ndk {
|
||||
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
||||
}
|
||||
|
||||
buildConfigField "String", "LIBSIGNAL_VERSION", "\"libsignal ${libs.versions.libsignal.client.get()}\""
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':device-transfer')
|
||||
}
|
21
device-transfer/app/build.gradle.kts
Normal file
21
device-transfer/app/build.gradle.kts
Normal file
|
@ -0,0 +1,21 @@
|
|||
plugins {
|
||||
id("signal-sample-app")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.devicetransfer.app"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.devicetransfer.app"
|
||||
|
||||
ndk {
|
||||
abiFilters += setOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
||||
}
|
||||
|
||||
buildConfigField("String", "LIBSIGNAL_VERSION", "\"libsignal ${libs.versions.libsignal.client.get()}\"")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":device-transfer"))
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.devicetransfer'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
implementation libs.libsignal.android
|
||||
api libs.greenrobot.eventbus
|
||||
|
||||
testImplementation (testLibs.robolectric.robolectric) {
|
||||
exclude group: 'com.google.protobuf', module: 'protobuf-java'
|
||||
}
|
||||
testImplementation testLibs.robolectric.shadows.multidex
|
||||
testImplementation testLibs.hamcrest.hamcrest
|
||||
|
||||
testImplementation(testFixtures(project(":libsignal-service")))
|
||||
}
|
21
device-transfer/lib/build.gradle.kts
Normal file
21
device-transfer/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,21 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.devicetransfer"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
implementation(libs.libsignal.android)
|
||||
api(libs.greenrobot.eventbus)
|
||||
|
||||
testImplementation(testLibs.robolectric.robolectric) {
|
||||
exclude(group = "com.google.protobuf", module = "protobuf-java")
|
||||
}
|
||||
testImplementation(testLibs.robolectric.shadows.multidex)
|
||||
testImplementation(testLibs.hamcrest.hamcrest)
|
||||
|
||||
testImplementation(testFixtures(project(":libsignal-service")))
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
id 'kotlin-kapt'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.donations.app'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.donations.app"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':donations')
|
||||
implementation project(':core-util')
|
||||
}
|
17
donations/app/build.gradle.kts
Normal file
17
donations/app/build.gradle.kts
Normal file
|
@ -0,0 +1,17 @@
|
|||
plugins {
|
||||
id("signal-sample-app")
|
||||
id("kotlin-kapt")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.donations.app"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.donations.app"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":donations"))
|
||||
implementation(project(":core-util"))
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
id 'kotlin-parcelize'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.donations'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
|
||||
implementation libs.kotlin.reflect
|
||||
implementation libs.jackson.module.kotlin
|
||||
implementation libs.jackson.core
|
||||
|
||||
testImplementation (testLibs.robolectric.robolectric) {
|
||||
exclude group: 'com.google.protobuf', module: 'protobuf-java'
|
||||
}
|
||||
|
||||
api libs.google.play.services.wallet
|
||||
api libs.square.okhttp3
|
||||
}
|
23
donations/lib/build.gradle.kts
Normal file
23
donations/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,23 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
id("kotlin-parcelize")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.donations"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
|
||||
implementation(libs.kotlin.reflect)
|
||||
implementation(libs.jackson.module.kotlin)
|
||||
implementation(libs.jackson.core)
|
||||
|
||||
testImplementation(testLibs.robolectric.robolectric) {
|
||||
exclude(group = "com.google.protobuf", module = "protobuf-java")
|
||||
}
|
||||
|
||||
api(libs.google.play.services.wallet)
|
||||
api(libs.square.okhttp3)
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
id 'kotlin-kapt'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.glide'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation libs.glide.glide
|
||||
kapt libs.glide.compiler
|
||||
|
||||
implementation project(':glide-webp')
|
||||
}
|
15
glide-config/build.gradle.kts
Normal file
15
glide-config/build.gradle.kts
Normal file
|
@ -0,0 +1,15 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
id("kotlin-kapt")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.glide"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.glide.glide)
|
||||
kapt(libs.glide.compiler)
|
||||
|
||||
implementation(project(":glide-webp"))
|
||||
}
|
|
@ -1,19 +1,19 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
id 'kotlin-kapt'
|
||||
id("signal-sample-app")
|
||||
id("kotlin-kapt")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.imageeditor.app'
|
||||
namespace = "org.signal.imageeditor.app"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.imageeditor.app"
|
||||
applicationId = "org.signal.imageeditor.app"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':image-editor')
|
||||
implementation(project(":image-editor"))
|
||||
|
||||
implementation libs.glide.glide
|
||||
kapt libs.glide.compiler
|
||||
implementation(libs.glide.glide)
|
||||
kapt(libs.glide.compiler)
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.imageeditor'
|
||||
namespace = "org.signal.imageeditor"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
implementation(project(":core-util"))
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.pagingtest'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.pagingtest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':paging')
|
||||
}
|
15
paging/app/build.gradle.kts
Normal file
15
paging/app/build.gradle.kts
Normal file
|
@ -0,0 +1,15 @@
|
|||
plugins {
|
||||
id("signal-sample-app")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.pagingtest"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.pagingtest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":paging"))
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.paging'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
}
|
11
paging/lib/build.gradle.kts
Normal file
11
paging/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,11 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.paging"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.github.chrisbanes.photoview'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
}
|
11
photoview/build.gradle.kts
Normal file
11
photoview/build.gradle.kts
Normal file
|
@ -0,0 +1,11 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.github.chrisbanes.photoview"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.appcompat:appcompat:1.4.1")
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.qrtest'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.qrtest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':qr')
|
||||
|
||||
implementation libs.google.zxing.android.integration
|
||||
implementation libs.google.zxing.core
|
||||
}
|
18
qr/app/build.gradle.kts
Normal file
18
qr/app/build.gradle.kts
Normal file
|
@ -0,0 +1,18 @@
|
|||
plugins {
|
||||
id("signal-sample-app")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.qrtest"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.qrtest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":qr"))
|
||||
|
||||
implementation(libs.google.zxing.android.integration)
|
||||
implementation(libs.google.zxing.core)
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.qr'
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
|
||||
implementation libs.androidx.camera.core
|
||||
implementation libs.androidx.camera.camera2
|
||||
implementation libs.androidx.camera.lifecycle
|
||||
implementation libs.androidx.camera.view
|
||||
implementation libs.androidx.lifecycle.common.java8
|
||||
implementation libs.androidx.lifecycle.livedata.core
|
||||
|
||||
implementation libs.google.guava.android
|
||||
implementation libs.google.zxing.android.integration
|
||||
implementation libs.google.zxing.core
|
||||
}
|
22
qr/lib/build.gradle.kts
Normal file
22
qr/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,22 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.qr"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
|
||||
implementation(libs.androidx.camera.core)
|
||||
implementation(libs.androidx.camera.camera2)
|
||||
implementation(libs.androidx.camera.lifecycle)
|
||||
implementation(libs.androidx.camera.view)
|
||||
implementation(libs.androidx.lifecycle.common.java8)
|
||||
implementation(libs.androidx.lifecycle.livedata.core)
|
||||
|
||||
implementation(libs.google.guava.android)
|
||||
implementation(libs.google.zxing.android.integration)
|
||||
implementation(libs.google.zxing.core)
|
||||
}
|
|
@ -1,15 +1,15 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
id("signal-sample-app")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.smsexporter.app'
|
||||
namespace = "org.signal.smsexporter.app"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.smsexporter.app"
|
||||
applicationId = "org.signal.smsexporter.app"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':sms-exporter')
|
||||
implementation(project(":sms-exporter"))
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.smsexporter'
|
||||
namespace = "org.signal.smsexporter"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
implementation(project(":core-util"))
|
||||
|
||||
implementation libs.androidx.core.role
|
||||
implementation libs.android.smsmms
|
||||
implementation(libs.androidx.core.role)
|
||||
implementation(libs.android.smsmms)
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-sample-app'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.spinnertest'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.signal.spinnertest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':spinner')
|
||||
|
||||
implementation libs.androidx.sqlite
|
||||
implementation libs.signal.android.database.sqlcipher
|
||||
}
|
18
spinner/app/build.gradle.kts
Normal file
18
spinner/app/build.gradle.kts
Normal file
|
@ -0,0 +1,18 @@
|
|||
plugins {
|
||||
id("signal-sample-app")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.spinnertest"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "org.signal.spinnertest"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":spinner"))
|
||||
|
||||
implementation(libs.androidx.sqlite)
|
||||
implementation(libs.signal.android.database.sqlcipher)
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.spinner'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
|
||||
implementation libs.jknack.handlebars
|
||||
implementation libs.nanohttpd.webserver
|
||||
implementation libs.nanohttpd.websocket
|
||||
implementation libs.androidx.sqlite
|
||||
|
||||
testImplementation testLibs.junit.junit
|
||||
}
|
18
spinner/lib/build.gradle.kts
Normal file
18
spinner/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,18 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.spinner"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
|
||||
implementation(libs.jknack.handlebars)
|
||||
implementation(libs.nanohttpd.webserver)
|
||||
implementation(libs.nanohttpd.websocket)
|
||||
implementation(libs.androidx.sqlite)
|
||||
|
||||
testImplementation(testLibs.junit.junit)
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.codewaves.stickyheadergrid'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
}
|
11
sticky-header-grid/build.gradle.kts
Normal file
11
sticky-header-grid/build.gradle.kts
Normal file
|
@ -0,0 +1,11 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.codewaves.stickyheadergrid"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.recyclerview:recyclerview:1.2.1")
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
plugins {
|
||||
id 'signal-library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'org.signal.video'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':core-util')
|
||||
|
||||
implementation(libs.bundles.mp4parser) {
|
||||
exclude group: 'junit', module: 'junit'
|
||||
}
|
||||
}
|
15
video/lib/build.gradle.kts
Normal file
15
video/lib/build.gradle.kts
Normal file
|
@ -0,0 +1,15 @@
|
|||
plugins {
|
||||
id("signal-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "org.signal.video"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core-util"))
|
||||
|
||||
implementation(libs.bundles.mp4parser) {
|
||||
exclude(group = "junit", module = "junit")
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue