Fix build script

This commit is contained in:
世界 2021-04-14 08:03:56 +08:00
parent 735fdcf2b8
commit 91db8f4bd7
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 2 additions and 7 deletions

View File

@ -443,14 +443,9 @@ dependencies {
testImplementation "org.robolectric:robolectric:4.5.1"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
def ll = new File("TMessagesProj/libs").list()
if ((ll == null || ll.length == 0) && !targetTask.contains("foss")) {
System.err.println("Missing libs")
System.exit(1)
}
if (!targetAbi.isBlank()) {
if (ll.length) {
def ll = new File("TMessagesProj/libs").list()
if (ll != null && ll.length == 1) {
implementation project(":ss-rust")
implementation project(":ssr-libev")
}