Refine remote config

This commit is contained in:
Max Lv
2017-11-28 20:47:41 -08:00
parent 5abb9061c4
commit a16aa35d3c
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"project_info": {
"project_number": "261400168171",
"firebase_url": "https://admob-app-id-3330146721.firebaseio.com",
"firebase_url": "https://shadowsocks.azureedge.net",
"project_id": "admob-app-id-3330146721",
"storage_bucket": "admob-app-id-3330146721.appspot.com"
},
@@ -47,4 +47,4 @@
}
],
"configuration_version": "1"
}
}
@@ -152,7 +152,8 @@ class ShadowsocksApplication extends Application {
FirebaseApp.initializeApp(this)
remoteConfig.setDefaults(R.xml.default_configs)
remoteConfig.fetch().addOnCompleteListener(task => if (task.isSuccessful) remoteConfig.activateFetched())
remoteConfig.fetch().addOnCompleteListener(task =>
if (task.isSuccessful) remoteConfig.activateFetched() else Log.e(TAG, "Failed to fetch config"))
JobManager.create(this).addJobCreator(DonaldTrump)