From 73b42397448e3d612db62743c7e3609adbda37d9 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 23 Sep 2023 12:37:23 +0200 Subject: [PATCH] Add libsignal_client_path property to override libsignal-client jar fiel --- lib/build.gradle.kts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 719f8bb037..8c766a8198 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -8,8 +8,17 @@ java { targetCompatibility = JavaVersion.VERSION_17 } +val libsignalClientPath = project.findProperty("libsignal_client_path")?.toString() + dependencies { - implementation(libs.signalservice) + if (libsignalClientPath == null) { + implementation(libs.signalservice) + } else { + implementation(libs.signalservice) { + exclude(group = "org.signal", module = "libsignal-client") + } + implementation(files(libsignalClientPath)) + } implementation(libs.jackson.databind) implementation(libs.protobuf) implementation(libs.bouncycastle)