Пример #1
0
        public static void Run()
        {
            CrossVersionTracking.Current.Track();

            Crashes.GetErrorAttachment = (report) => ErrorAttachment.AttachmentWithText(CrossVersionTracking.Current.ToString());

            if (!string.IsNullOrEmpty(PrivateKeys.MobileCenter.AppSecret))
            {
                MobileCenter.Start(PrivateKeys.MobileCenter.AppSecret,
                                   typeof(Microsoft.Azure.Mobile.Analytics.Analytics),
                                   typeof(Microsoft.Azure.Mobile.Crashes.Crashes));
            }

            PclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new NativeMessageHandler();

            Settings.RegisterDefaultSettings();

#if __ANDROID__
            Settings.VersionNumber = CrossVersionTracking.Current.CurrentVersion;

            Settings.BuildNumber = CrossVersionTracking.Current.CurrentBuild;
#endif
        }
Пример #2
0
        public static void Run()
        {
            CrossVersionTracking.Current.Track();

            AnalyticsManager.Shared.ConfigureHockeyApp();

            PclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new NativeMessageHandler();

            Settings.RegisterDefaultSettings();
        }
Пример #3
0
        public static void Run()
        {
            configureHockeyApp();

            XWeather.Bootstrap.Run();

            PclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new NativeMessageHandler();

            Settings.RegisterDefaultSettings();
        }
Пример #4
0
        public static void Run()
        {
            AnalyticsManager.Shared.ConfigureHockeyApp();

            LocationProviderFactory.Create = () => new LocationProvider();

            XWeather.Bootstrap.Run();

            PclExportClient.Configure();

            JsonHttpClient.GlobalHttpMessageHandlerFactory = () => new NativeMessageHandler();

            Settings.RegisterDefaultSettings();
        }
Пример #5
0
 public static PclExportClient Configure()
 {
     Configure(Provider ?? (Provider = new IosPclExportClient()));
     IosPclExport.Configure();
     return(Provider);
 }
 public static PclExportClient Configure()
 {
     Configure(Provider ?? (Provider = new IosPclExportClient()));
     IosPclExport.Configure();
     return Provider;
 }