[go: nahoru, domu]

Skip to content

Commit

Permalink
Integrate Latest @ 294545507
Browse files Browse the repository at this point in the history
CL: 294545507
  • Loading branch information
a-maurice committed Feb 25, 2020
1 parent f35a087 commit 061b506
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion analytics/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ with the
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion auth/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ with the
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion crashlytics/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inside the Unity Editor.
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion database/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inside the Unity Editor.
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion dynamic_links/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using the
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion functions/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inside the Unity Editor.
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion messaging/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using the
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class UIHandler : MonoBehaviour {

// Initialize remote config, and set the default values.
void InitializeFirebase() {
// [START set_defaults]
System.Collections.Generic.Dictionary<string, object> defaults =
new System.Collections.Generic.Dictionary<string, object>();

Expand All @@ -61,6 +62,7 @@ class UIHandler : MonoBehaviour {
defaults.Add("config_test_bool", false);

Firebase.RemoteConfig.FirebaseRemoteConfig.SetDefaults(defaults);
// [END set_defaults]
DebugLog("RemoteConfig configured and ready!");
isFirebaseInitialized = true;
}
Expand Down Expand Up @@ -104,18 +106,20 @@ class UIHandler : MonoBehaviour {
}
}

// [START fetch_async]
// Start a fetch request.
// FetchAsync only fetches new data if the current data is older than the provided
// timespan. Otherwise it assumes the data is "recent enough", and does nothing.
// By default the timespan is 12 hours, and for production apps, this is a good
// number. For this example though, it's set to a timespan of zero, so that
// changes in the console will always show up immediately.
public Task FetchDataAsync() {
DebugLog("Fetching data...");
// FetchAsync only fetches new data if the current data is older than the provided
// timespan. Otherwise it assumes the data is "recent enough", and does nothing.
// By default the timespan is 12 hours, and for production apps, this is a good
// number. For this example though, it's set to a timespan of zero, so that
// changes in the console will always show up immediately.
System.Threading.Tasks.Task fetchTask = Firebase.RemoteConfig.FirebaseRemoteConfig.FetchAsync(
TimeSpan.Zero);
return fetchTask.ContinueWithOnMainThread(FetchComplete);
}
//[END fetch_async]

void FetchComplete(Task fetchTask) {
if (fetchTask.IsCanceled) {
Expand Down
2 changes: 1 addition & 1 deletion remote_config/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using the
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down
2 changes: 1 addition & 1 deletion storage/testapp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inside the Unity Editor.
## Requirements

* [Unity](http://unity3d.com/) 5.3 or higher.
* [Xcode](https://developer.apple.com/xcode/) 10.1 or higher
* [Xcode](https://developer.apple.com/xcode/) 10.3 or higher
(when developing for iOS).
* [Android SDK](https://developer.android.com/studio/index.html#downloads)
(when developing for Android).
Expand Down

0 comments on commit 061b506

Please sign in to comment.