Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Conversation

@patm1987
Copy link

@patm1987 patm1987 commented Apr 5, 2021

… compiles

RemoteConfig moved to RemoteConfigDeprecated
instances of Firebase.Unity.Editor removed

… compiles

RemoteConfig moved to RemoteConfigDeprecated
instances of Firebase.Unity.Editor removed
var targets = kv.Value;
foreach (var target in targets) {
var value = FirebaseRemoteConfig.GetValue(target.FullKeyString);
var value = FirebaseRemoteConfigDeprecated.GetValue(target.FullKeyString);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FirebaseRemoteConfig.DefaultInstance?

if (!fetching) {
#if UNITY_EDITOR
var settings = FirebaseRemoteConfig.Settings;
var settings = FirebaseRemoteConfigDeprecated.Settings;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FirebaseRemoteConfig.DefaultInstance.ConfigSettings?
Similar to those in below

Initialize(status => {
FirebaseRemoteConfig.SetDefaults(defaultValues);
FirebaseRemoteConfig.FetchAsync(TimeSpan.Zero).ContinueWith(task => {
FirebaseRemoteConfigDeprecated.SetDefaults(defaultValues);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firebase.RemoteConfig.FirebaseRemoteConfig.DefaultInstance.SetDefaultAsync(defaults).ContinueWithOnMainThread( task => {
  // check if it failed...
  return Firebase.RemoteConfig.FirebaseRemoteConfig.DefaultInstance.FetchAndActivateAsync();
}).Unwrap().ContinueWithOnMainThread(task => {
      fetching = false;
      activateFetched = true;
      CallActivateFetchedCallbacks();
});

In FirebaseInitializer, removed the fetching variable. It seemed to only matter if fetching was ever set to true, and it never was.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants