From 3eb689cb1fdef28947fdbd60f6a8089f971e78d1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 28 Oct 2023 16:35:51 +0200 Subject: [PATCH] Removing build-id for F-Droid release --- app/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7eee997ef5..c20c70fac4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,10 +47,6 @@ android { cmake { cFlags "-ffile-prefix-map=${rootDir}=." cppFlags "-ffile-prefix-map=${rootDir}=." - // https://f-droid.org/docs/Reproducible_Builds/ - // The build ID is a 160-bit SHA1 string computed over the elf header bits and section contents in the file. - // It is bundled in the elf file as an entry in the notes section. - // readelf -n ./app/build/intermediates/stripped_native_libs/xxxRelease/out/lib/armeabi-v7a/libfairemail.so } } @@ -230,6 +226,15 @@ android { fdroid { dimension "all" manifestPlaceholders.largeHeap = false + externalNativeBuild { + cmake { + arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none" + // https://f-droid.org/docs/Reproducible_Builds/ + // The build ID is a 160-bit SHA1 string computed over the elf header bits and section contents in the file. + // It is bundled in the elf file as an entry in the notes section. + // readelf -n ./app/build/intermediates/stripped_native_libs/xxxRelease/out/lib/armeabi-v7a/libfairemail.so + } + } buildConfigField "boolean", "TEST_RELEASE", "false" buildConfigField "boolean", "BETA_RELEASE", "true" buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"