Example #1
0
 public PRODEnvironmentSetting()
 {
     this.Environment = Ekreta.Mobile.Core.Models.Environments.Environments.PROD;
     this.ConfigurationServiceApiKey = "7856d350-1fda-45f5-822d-e1a2f3f1acf0";
     this.MobileApiAudienceClientId  = "919e0c1c-76a2-4646-a2fb-7085bbbf3c56";
     this.GoogleAnalyticsTrackingId  = "UA-110150737-1";
     this.HockeyAppAndroidAppId      = "58014eafdeb146c69f72ab1bc6e0fecc";
     this.HockeyAppiOSAppId          = "26f6d56f30d84b079f7b654bfa9b1d46";
     this.CacheTimeoutInSeconds      = 300;
     this.HttpTimeoutInSeconds       = 60;
     this.MobileApiVersion           = 0;
     this.AppVersionUrl          = "https://kretamobile.blob.core.windows.net/configuration/EllenorzoMobilVersionInfo.json";
     this.DefaultUserAgentHeader = "Kreta.Ellenorzo/" + CrossVersionTracking.get_Current().get_CurrentVersion() + "." + CrossVersionTracking.get_Current().get_CurrentBuild();
     this.EugyintezesAPIUrl      = "https://eugyintezes.e-kreta.hu";
     this.RatingEmail            = "*****@*****.**";
 }
 public TESTEnvironmentSetting()
 {
     this.Environment = Ekreta.Mobile.Core.Models.Environments.Environments.TEST;
     this.ConfigurationServiceApiKey = "c9f72983-a6c6-44d5-ab21-40d80b087366";
     this.MobileApiAudienceClientId  = "4596201c-ec1c-4df7-99c0-940d035946c8";
     this.GoogleAnalyticsTrackingId  = "UA-97112613-2";
     this.HockeyAppAndroidAppId      = "58014eafdeb146c69f72ab1bc6e0fecc";
     this.HockeyAppiOSAppId          = "26f6d56f30d84b079f7b654bfa9b1d46";
     this.CacheTimeoutInSeconds      = 300;
     this.HttpTimeoutInSeconds       = 60;
     this.MobileApiVersion           = 0;
     this.AppVersionUrl          = "https://kretamobile.blob.core.windows.net/configuration/EllenorzoMobilVersionInfo.json";
     this.DefaultUserAgentHeader = "Kreta.Ellenorzo/" + CrossVersionTracking.get_Current().get_CurrentVersion() + "." + CrossVersionTracking.get_Current().get_CurrentBuild();
     this.EugyintezesAPIUrl      = "https://eugyintezes.ekreta-mobil.hu";
     this.RatingEmail            = "*****@*****.**";
 }
 public DEVEnvironmentSetting()
 {
     this.Environment = Ekreta.Mobile.Core.Models.Environments.Environments.DEV;
     this.ConfigurationServiceApiKey = "34b347b2-bd69-4e4f-aef3-6709cf109e5b";
     this.MobileApiAudienceClientId  = "69bfdce9-2c9f-4a12-aa7b-4fe15e1228dc";
     this.GoogleAnalyticsTrackingId  = "UA-97112613-2";
     this.HockeyAppAndroidAppId      = "58014eafdeb146c69f72ab1bc6e0fecc";
     this.HockeyAppiOSAppId          = "26f6d56f30d84b079f7b654bfa9b1d46";
     this.CacheTimeoutInSeconds      = 0;
     this.HttpTimeoutInSeconds       = 60;
     this.MobileApiVersion           = 0;
     this.AppVersionUrl          = "https://kretamobile.blob.core.windows.net/configuration/EllenorzoMobilVersionInfo.json";
     this.DefaultUserAgentHeader = "Kreta.Ellenorzo/" + CrossVersionTracking.get_Current().get_CurrentVersion() + "." + CrossVersionTracking.get_Current().get_CurrentBuild();
     this.EugyintezesAPIUrl      = "https://eugyintezes.ekreta-mobil.hu";
     this.RatingEmail            = "*****@*****.**";
 }
Example #4
0
 private string PutExtraContent(string content, Profile profile, bool sensitiveData)
 {
     try
     {
         string newValue = CrossVersionTracking.get_Current().get_CurrentVersion() + "." + CrossVersionTracking.get_Current().get_CurrentBuild();
         content = content.Replace("[version]", newValue);
         content = content.Replace("[os]", string.Format("{0} {1}", (object)CrossDeviceInfo.get_Current().get_Platform(), (object)CrossDeviceInfo.get_Current().get_Version()));
         content = content.Replace("[device]", CrossDeviceInfo.get_Current().get_Manufacturer() + " " + CrossDeviceInfo.get_Current().get_DeviceName() + " ");
         if (sensitiveData)
         {
             content = content.Replace("[name]", profile.Student.DisplayName);
             content = content.Replace("[institution]", profile.Institute.Name);
             content = content.Replace("[instituteCode]", profile.Student.InstituteCode);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(content);
 }
        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);
        }
Example #6
0
 private async Task <bool> CheckVersion()
 {
     return(await this._appVersionService.NeedUpdateApp(this._systemInfo.Platform, CrossVersionTracking.get_Current().get_CurrentVersion(), CrossVersionTracking.get_Current().get_CurrentBuild()));
 }