Skip to content

An open-source cross-platform alternative to AirDrop

feat: remove build id in dart jni

Tien Do Nam78445157aed7
diff --git a/app/android/build.gradle b/app/android/build.gradle
index 836f6dfc..3884c3c0 100644
--- a/app/android/build.gradle
+++ b/app/android/build.gradle
@@ -25,6 +25,25 @@ subprojects {
}
+// Disable the linker build-id in the "jni" pub package's native library.
+// https://github.com/localsend/localsend/issues/3219
+// https://f-droid.org/docs/Reproducible_Builds/
+subprojects {
+ plugins.withId("com.android.library") {
+ if (project.name == "jni") {
+ project.android {
+ defaultConfig {
+ externalNativeBuild {
+ cmake {
+ arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none"
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
subprojects {
project.evaluationDependsOn(':app')
}