From 8e4333fa031d0bd134072f7ed6b582da3a4b124c Mon Sep 17 00:00:00 2001 From: "FC (Fay) Stegerman" Date: Mon, 19 Aug 2024 01:02:51 +0000 Subject: [PATCH] disable ELF build-id for github flavor --- app/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 481cc96ad0..865831bc2a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -205,6 +205,15 @@ android { dimension "all" manifestPlaceholders.largeHeap = false manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("github" + getVersionCode() + getRevision()).getBytes()).toString(); + externalNativeBuild { + cmake { + arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none" // -z,max-page-size=16384 + // https://gitlab.com/IzzyOnDroid/repo/-/wikis/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"