From 672151b8a2002d925dc27864e8bb230cd7a89385 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 9 May 2023 14:29:58 +0200 Subject: [PATCH] Fix nightly and release build by temporarily deactivate `removeUnusedCode`. Related to #8408 --- vector-app/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vector-app/build.gradle b/vector-app/build.gradle index 042dd471c7..f76fb466ad 100644 --- a/vector-app/build.gradle +++ b/vector-app/build.gradle @@ -259,7 +259,8 @@ android { release { resValue "string", "app_name", "Element" postprocessing { - removeUnusedCode true + // FIXME Set to true. + removeUnusedCode false removeUnusedResources true // We do not activate obfuscation as it makes it hard then to read crash reports, and it's a bit useless on an open source project :) obfuscate false @@ -276,7 +277,8 @@ android { // Just override the background color of the launcher icon for the nightly build. // We need to copy paste this block, this is not done automatically by `initWith release` postprocessing { - removeUnusedCode true + // FIXME Set to true. + removeUnusedCode false removeUnusedResources true // We do not activate obfuscation as it makes it hard then to read crash reports, and it's a bit useless on an open source project :) obfuscate false