Skip to content

Commit

Permalink
fix: android builder firebase proguard keep rules
Browse files Browse the repository at this point in the history
Backporting rules that were already applied when newFirebaseMessaging was on, but they are needed in all cases.
  • Loading branch information
shannah committed Nov 18, 2023
1 parent 8aebb8e commit 9f4729a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3167,11 +3167,8 @@ public void usesClassMethod(String cls, String method) {

String keepOverride = request.getArg("android.proguardKeepOverride", "Exceptions, InnerClasses, Signature, Deprecated, SourceFile, LineNumberTable, *Annotation*, EnclosingMethod");

String keepFirebase = "";
if (newFirebaseMessaging) {
keepFirebase = "-keep class com.google.android.gms.** { *; }\n\n" +
"-keep class com.google.firebase.** { *; }\n\n";
}
String keepFirebase = "-keep class com.google.android.gms.** { *; }\n\n" +
"-keep class com.google.firebase.** { *; }\n\n";
// workaround broken optimizer in proguard
String proguardConfigOverride = "-dontusemixedcaseclassnames\n"
+ "-dontskipnonpubliclibraryclasses\n"
Expand Down

0 comments on commit 9f4729a

Please sign in to comment.