public string GetAppVersionDisplayText() { string str = ((IMvxTextProvider)Mvx.get_IoCProvider().Resolve <IMvxTextProvider>()).GetText((string)null, (string)null, "VersionNumber") + " " + CrossVersionTracking.get_Current().get_CurrentVersion() + " - " + CrossVersionTracking.get_Current().get_CurrentBuild(); Ekreta.Mobile.Core.Models.Environments.Environments environment = ConfigurationRepository.EnvironmentSetting.Environment; if (environment != Ekreta.Mobile.Core.Models.Environments.Environments.PROD) { str += string.Format(" {0}", (object)environment); } return(str); }
public RemoteConfigurationService() { RemoteConfigurationService.KeyNames = ((IEnumerable <FieldInfo>) typeof(FirebaseRemoteConfigConstants).GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy)).Where <FieldInfo>((Func <FieldInfo, bool>)(fi => fi.IsLiteral && !fi.IsInitOnly)).Select <FieldInfo, string>((Func <FieldInfo, string>)(x => (string)x.GetRawConstantValue())).ToList <string>(); foreach (string keyName in RemoteConfigurationService.KeyNames) { RemoteConfigurationService.ChangedConfigList.AddOrUpdate(keyName, false, (Func <string, bool, bool>)((_, oldvalue) => false)); } Ekreta.Mobile.Core.Models.Environments.Environments environment = ConfigurationRepository.EnvironmentSetting.Environment; if (environment != Ekreta.Mobile.Core.Models.Environments.Environments.PROD) { return; } RemoteConfigurationService.Prefix = string.Format("{0}", (object)environment); }