diff --git a/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java b/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java index cd7693db48..849a1e3fd5 100644 --- a/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java +++ b/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java @@ -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"