Firebase ProGuard rules

Firebase - mobile and web application development platform.

Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money.

ProGuard rules for Firebase

ProGuard has the optimization step and removes unused classes, fields, attributes and methods from bytecode. ProGuard also optimizes the code, removes unused code instructions, and obfuscates the remaining classes, fields, and methods with short names. Specify the next rules in your proguard-rules.pro file to fix errors.

# Add this global rule
-keepattributes Signature

# This rule will properly ProGuard all the model classes in
# the package com.yourcompany.models. Modify to fit the structure
# of your app.
-keepclassmembers class com.yourcompany.models.** {
  *;
}

For more information about Firebase please see the website.

Static Gson ProGuard rules

Popular ProGuard rules