Don't mix up configs

This commit is contained in:
Maxime Dor
2017-09-29 05:34:21 +02:00
parent 4f3ecc19f3
commit ed2d13decf
8 changed files with 256 additions and 234 deletions

View File

@@ -43,6 +43,10 @@ public class GoogleFirebaseBackend {
GoogleFirebaseBackend(boolean isEnabled, String name, String credsPath, String db) {
this.isEnabled = isEnabled;
if (!isEnabled) {
return;
}
try {
FirebaseApp fbApp = FirebaseApp.initializeApp(getOpts(credsPath, db), name);
fbAuth = FirebaseAuth.getInstance(fbApp);