Firebase minimal proguard config requirement

423 views
Skip to first unread message

aka...@vmax.com

unread,
Nov 8, 2016, 8:18:54 AM11/8/16
to Firebase Google Group
Hi Team,

I am integrating Firebase SDK in my android application(Native app). I am using following packages availed by Firebase SDK:

import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;

Also, we have added following dependency in gradle file:

compile 'com.google.firebase:firebase-database:9.6.0'
compile 'com.google.firebase:firebase-auth:9.6.0'

With this as a configuration, it is increasing the application size and method count drastically. 

Can you suggest a preferable & minimal proguard configuration which will suit our above requirement?

Thanks



*************************

CONFIDENTIALITY CAUTION

This communication (including any accompanying documents) is intended only for the use of the addressee(s) and contains PRIVATE AND CONFIDENTIAL information. Unauthorized reading, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify us immediately by e-mail and promptly destroy the original communication. Please do not copy it or use it for any other purposes, or disclose its contents to any other person. Unless stated to the contrary, any opinions or comments are personal to the writer and do not represent the official view of the Company. In case where it represents our official view, it needs to be revalidated and is subject to the terms of our engagement.

Thank you for your co-operation.

*************************

Ian Barber

unread,
Nov 8, 2016, 2:46:34 PM11/8/16
to Firebase Google Group
I would definitely use 9.8.0 rather than 9.6.0 (or if you want to stick with 9.6, use 9.6.1). 

If you are using proguard the libs do ship with proguard rules in the aar, so it should be as minimal as possible. I'm not sure there's much we can advise beyond that. How much of an increase are you seeing on a proguarded build?
Reply all
Reply to author
Forward
0 new messages