package com.ianhanniballake.contractiontimer;

import android.app.Application;

import com.google.firebase.analytics.FirebaseAnalytics;
import com.ianhanniballake.contractiontimer.appwidget.AppWidgetUpdateHandler;
import com.ianhanniballake.contractiontimer.notification.NotificationUpdateService;
import com.ianhanniballake.contractiontimer.strictmode.StrictModeController;

/**
 * Creates the Contraction Timer application, setting strict mode in debug mode
 */
public class ContractionTimerApplication extends Application {
    /**
     * Sets strict mode if we are in debug mode.
     *
     * @see android.app.Application#onCreate()
     */
    @Override
    public void onCreate() {
        if (BuildConfig.DEBUG) {
            StrictModeController.createInstance().setStrictMode();
        }
        FirebaseAnalytics.getInstance(this).setUserProperty("debug", Boolean.toString(BuildConfig.DEBUG));
        super.onCreate();
        AppWidgetUpdateHandler.createInstance().updateAllWidgets(this);
        NotificationUpdateService.updateNotification(this);
    }
}
@@ -73,16 +73,56 @@
 ation;%0A%0A
+import com.google.firebase.FirebaseApp;%0A
 import c
@@ -832,16 +832,72 @@
       %7D%0A
+        if (!FirebaseApp.getApps(this).isEmpty()) %7B%0A    
         
@@ -995,16 +995,26 @@
 EBUG));%0A
+        %7D%0A
         

Disable call to Analytics in the background_crash process