Exemplo n.º 1
0
 public void LogException(Exception exception)
 {
     Crashlytics.Crashlytics.LogException(MonoExceptionHelper.Create(exception));
 }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
            StrictMode.SetVmPolicy(builder.Build());
            Stormlion.ImageCropper.Droid.Platform.Init();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);
            LoadApplication(new App());

            Fabric.Fabric.With(this, new Crashlytics.Crashlytics());
            Crashlytics.Crashlytics.HandleManagedExceptions();
            AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) =>
                                                          Crashlytics.Crashlytics.LogException(MonoExceptionHelper.Create(e.ExceptionObject as Exception));
        }
Exemplo n.º 3
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     this.ActionBar.SetIcon(null);
     CrossCurrentActivity.Current.Init(this, bundle);
     global::Xamarin.Forms.Forms.Init(this, bundle);
     StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
     StrictMode.SetVmPolicy(builder.Build());
     Rg.Plugins.Popup.Popup.Init(this, bundle);
     Stormlion.ImageCropper.Droid.Platform.Init();
     LoadApplication(new App());
     Fabric.Fabric.With(this, new Crashlytics.Crashlytics());
     Crashlytics.Crashlytics.HandleManagedExceptions();
     AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) =>
                                                   Crashlytics.Crashlytics.LogException(MonoExceptionHelper.Create(e.ExceptionObject as Exception));
 }