commit 40fc6da7b6ffa34a53fabccb177c6066a54d8654
parent c8a58ee14289223adb851543830129b3397efde5
Author: Serban Stanca <sstanca@mozilla.com>
Date: Tue, 28 Oct 2025 18:56:10 +0200
Revert "Bug 1987633 - Remove appservices keep rules. r=android-reviewers,nalexander" as requested by @ryanvm for possibly causing bug 1996527.
This reverts commit 8197d5c649889e3170d62c368156b4878e2b130d.
Diffstat:
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/mobile/android/fenix/app/proguard-rules.pro b/mobile/android/fenix/app/proguard-rules.pro
@@ -20,5 +20,11 @@
public static int d(...);
}
+####################################################################################################
+# Mozilla Application Services
+####################################################################################################
+
+-keep class mozilla.appservices.** { *; }
+
# Keep code generated from Glean Metrics
-keep class org.mozilla.fenix.GleanMetrics.** { *; }
diff --git a/mobile/android/focus-android/app/proguard-rules.pro b/mobile/android/focus-android/app/proguard-rules.pro
@@ -3,6 +3,18 @@
# If we update this, we'll have to update our Sentry config to upload ProGuard mappings.
-dontobfuscate
+
+##### Default proguard settings:
+
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/sebastian/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
####################################################################################################
# Android architecture components
####################################################################################################
@@ -11,6 +23,12 @@
-dontwarn mozilla.components.**
####################################################################################################
+# Mozilla Application Services
+####################################################################################################
+
+-keep class mozilla.appservices.** { *; }
+
+####################################################################################################
# REMOVE all Log messages except warnings and errors
####################################################################################################
-assumenosideeffects class android.util.Log {