Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Converted all minor modules to .gradle.kts.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal authored and cody-signal committed Dec 4, 2023
1 parent d77744c commit 7667336
Show file tree
Hide file tree
Showing 36 changed files with 312 additions and 311 deletions.
26 changes: 0 additions & 26 deletions core-ui/build.gradle

This file was deleted.

28 changes: 28 additions & 0 deletions core-ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
29 changes: 0 additions & 29 deletions core-util/build.gradle

This file was deleted.

29 changes: 29 additions & 0 deletions core-util/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
}
}
21 changes: 0 additions & 21 deletions device-transfer/app/build.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions device-transfer/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"))
}
21 changes: 0 additions & 21 deletions device-transfer/lib/build.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions device-transfer/lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")))
}
17 changes: 0 additions & 17 deletions donations/app/build.gradle

This file was deleted.

17 changes: 17 additions & 0 deletions donations/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"))
}
23 changes: 0 additions & 23 deletions donations/lib/build.gradle

This file was deleted.

23 changes: 23 additions & 0 deletions donations/lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
15 changes: 0 additions & 15 deletions glide-config/build.gradle

This file was deleted.

15 changes: 15 additions & 0 deletions glide-config/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"))
}
14 changes: 7 additions & 7 deletions image-editor/app/build.gradle
Original file line number Diff line number Diff line change
@@ -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)
}
6 changes: 3 additions & 3 deletions image-editor/lib/build.gradle
Original file line number Diff line number Diff line change
@@ -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"))
}
15 changes: 0 additions & 15 deletions paging/app/build.gradle

This file was deleted.

15 changes: 15 additions & 0 deletions paging/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
id("signal-sample-app")
}

android {
namespace = "org.signal.pagingtest"

defaultConfig {
applicationId = "org.signal.pagingtest"
}
}

dependencies {
implementation(project(":paging"))
}
Loading

0 comments on commit 7667336

Please sign in to comment.