Modern Apps git

← Modern-Apps.git

messages: reduce unnneeded natives for signal library

Commit
449021f3d3a2d1024459f08fe07baba96ae75739
Author
Vayun Mathur <[email protected]>
When
2026-07-19 21:12 UTC (4 months ago)
Parents
5bd453b

Diff

messages/build.gradle.kts
diff --git a/messages/build.gradle.kts b/messages/build.gradle.ktsindex 1e30b380f4..c2c26dc15a 100644--- a/messages/build.gradle.kts+++ b/messages/build.gradle.kts@@ -26,6 +26,19 @@ android {     compileOptions {         isCoreLibraryDesugaringEnabled = true     }+    packaging {+        resources {+            // libsignal-client bundles its desktop JNI natives (macOS .dylib,+            // Windows .dll) as Java resources. They can never load on Android and+            // add ~40 MB to the APK — strip them. The Android lib/arm64-v8a/+            // libsignal_jni.so is unaffected.+            excludes += setOf("**/*.dylib", "*.dylib", "**/*.dll", "*.dll")+        }+        jniLibs {+            // Test-only libsignal native (NativeTesting bridge); unused in prod.+            excludes += "**/libsignal_jni_testing.so"+        }+    } }  dependencies {