mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-03 15:11:42 +01:00
62 lines
1.4 KiB
Kotlin
62 lines
1.4 KiB
Kotlin
/*
|
|
* Copyright 2026 Signal Messenger, LLC
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("java-library")
|
|
id("org.jetbrains.kotlin.jvm")
|
|
id("idea")
|
|
id("org.jlleitschuh.gradle.ktlint")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
targetCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
}
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = JvmTarget.fromTarget(libs.versions.kotlinJvmTarget.get())
|
|
freeCompilerArgs = listOf("-Xjvm-default=all")
|
|
suppressWarnings = true
|
|
}
|
|
}
|
|
}
|
|
|
|
ktlint {
|
|
version.set("1.5.0")
|
|
}
|
|
|
|
tasks.whenTaskAdded {
|
|
if (name == "lint") {
|
|
enabled = false
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":lib:libsignal-service"))
|
|
|
|
implementation(libs.libsignal.client)
|
|
api(libs.square.okhttp3)
|
|
api(libs.square.okio)
|
|
|
|
api(libs.rxjava3.rxjava)
|
|
implementation(libs.rxjava3.rxkotlin)
|
|
|
|
implementation(libs.kotlin.stdlib.jdk8)
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
implementation(libs.kotlinx.coroutines.core.jvm)
|
|
|
|
implementation(project(":core:util-jvm"))
|
|
implementation(project(":core:models-jvm"))
|
|
|
|
testImplementation(testLibs.junit.junit)
|
|
testImplementation(testLibs.assertk)
|
|
testImplementation(testLibs.mockk)
|
|
}
|