From 67fd9fdb0f8b53726716568588afbaa0761d9836 Mon Sep 17 00:00:00 2001 From: Prasanna Swaminathan Date: Fri, 15 Aug 2025 15:46:15 -0400 Subject: [PATCH] Add `common_google_play_services_unknown_issue` to keep.xml Otherwise this can get stripped out by the resource shrinker. The issue here arises when running Firebase on a device without Google Play services. Without this, an app having undergone resource shrinking will crash being unable to find this resource. Because some Firebase services are documented to work without Play services, this shouldn't cause a crash. --- firebase-common/src/main/res/raw/firebase_common_keep.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebase-common/src/main/res/raw/firebase_common_keep.xml b/firebase-common/src/main/res/raw/firebase_common_keep.xml index f44a10deaab..d9203a9ac59 100644 --- a/firebase-common/src/main/res/raw/firebase_common_keep.xml +++ b/firebase-common/src/main/res/raw/firebase_common_keep.xml @@ -1,3 +1,3 @@ \ No newline at end of file + tools:keep="@string/google_app_id,@string/gcm_defaultSenderId,@string/google_api_key,@string/firebase_database_url,@string/ga_trackingId,@string/google_storage_bucket,@string/project_id,@string/common_google_play_services_unknown_issue" />