Converted all minor modules to .gradle.kts.

This commit is contained in:
Greyson Parrelli 2023-11-26 12:18:03 -05:00 committed by Cody Henthorne
parent d77744c562
commit 766733617e
36 changed files with 312 additions and 311 deletions

View file

@ -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
View 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)
}

View file

@ -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'
}
}

View 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")
}
}

View file

@ -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')
}

View 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"))
}

View file

@ -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")))
}

View 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")))
}

View file

@ -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')
}

View 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"))
}

View file

@ -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
}

View 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)
}

View file

@ -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')
}

View 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"))
}

View file

@ -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)
}

View file

@ -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"))
}

View file

@ -1,15 +0,0 @@
plugins {
id 'signal-sample-app'
}
android {
namespace 'org.signal.pagingtest'
defaultConfig {
applicationId "org.signal.pagingtest"
}
}
dependencies {
implementation project(':paging')
}

View file

@ -0,0 +1,15 @@
plugins {
id("signal-sample-app")
}
android {
namespace = "org.signal.pagingtest"
defaultConfig {
applicationId = "org.signal.pagingtest"
}
}
dependencies {
implementation(project(":paging"))
}

View file

@ -1,11 +0,0 @@
plugins {
id 'signal-library'
}
android {
namespace 'org.signal.paging'
}
dependencies {
implementation project(':core-util')
}

View file

@ -0,0 +1,11 @@
plugins {
id("signal-library")
}
android {
namespace = "org.signal.paging"
}
dependencies {
implementation(project(":core-util"))
}

View file

@ -1,11 +0,0 @@
plugins {
id 'signal-library'
}
android {
namespace 'com.github.chrisbanes.photoview'
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
}

View file

@ -0,0 +1,11 @@
plugins {
id("signal-library")
}
android {
namespace = "com.github.chrisbanes.photoview"
}
dependencies {
implementation("androidx.appcompat:appcompat:1.4.1")
}

View file

@ -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
View 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)
}

View file

@ -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
View 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)
}

View file

@ -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"))
}

View file

@ -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)
}

View file

@ -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
}

View 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)
}

View file

@ -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
}

View 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)
}

View file

@ -1,11 +0,0 @@
plugins {
id 'signal-library'
}
android {
namespace 'com.codewaves.stickyheadergrid'
}
dependencies {
implementation 'androidx.recyclerview:recyclerview:1.2.1'
}

View file

@ -0,0 +1,11 @@
plugins {
id("signal-library")
}
android {
namespace = "com.codewaves.stickyheadergrid"
}
dependencies {
implementation("androidx.recyclerview:recyclerview:1.2.1")
}

View file

@ -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'
}
}

View 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")
}
}