Commit a16aa35d authored by Max Lv's avatar Max Lv

Refine remote config

parent 5abb9061
{
"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"
}
\ No newline at end of file
}
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment