From 7ac48e8db09fd2016120befb02eb32c31a5f82d7 Mon Sep 17 00:00:00 2001 From: celenity Date: Sat, 26 Jul 2025 02:07:18 -0400 Subject: [PATCH] Disable legacy packaging to improve performance Mozilla only enables this due to it being necessary for the Gecko Profiler (https://bugzilla.mozilla.org/show_bug.cgi?id=1865634). We disable the Gecko Profiler at build-time though, so this doesn't apply to us Signed-off-by: celenity --- scripts/prebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index 141789e..b159c76 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -229,6 +229,11 @@ mkdir -vp app/src/main/assets/wallpapers/dark-dune mkdir -vp app/src/main/assets/wallpapers/dune mkdir -vp app/src/main/assets/wallpapers/firey-red +# Disable legacy packaging to improve performance +## Mozilla only keeps this on for the Gecko Profiler; we disable the Gecko Profiler at build-time, so we don't need to worry about it +## https://bugzilla.mozilla.org/show_bug.cgi?id=1865634 +sed -i -e 's|useLegacyPackaging = .*|useLegacyPackaging = false|g' app/build.gradle + # Set up target parameters case "$1" in arm)