// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/logging/CrashlyticsExceptionWearHandler.java
// public class CrashlyticsExceptionWearHandler implements ExceptionWearHandler{
//     @Override
//     /**
//      * Exception handler with Crashlytics support, also it will be shown in logcat.
//      */
//     public void handleException(Throwable throwable, DataMap map) {
//         Timber.d("HandleException %s", throwable);
//         Crashlytics.setBool("wear_exception", true);
//         Crashlytics.setString("board", map.getString("board"));
//         Crashlytics.setString("fingerprint", map.getString("fingerprint"));
//         Crashlytics.setString("model", map.getString("model"));
//         Crashlytics.setString("manufacturer", map.getString("manufacturer"));
//         Crashlytics.setString("product", map.getString("product"));
//         Crashlytics.setString("api_level", map.getString("api_level"));
// 
//         Crashlytics.logException(throwable);
//     }
// }
// 
// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/logging/TimberCrashlytics.java
// public class TimberCrashlytics extends Timber.Tree {
//     @Override
//     protected void log(int priority, String tag, String message, Throwable t) {
//         if (t != null) {
//             Crashlytics.log(priority, tag, message);
//             Crashlytics.logException(t);
//         }
//     }
// }
// 
// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/notification/VibrationCenterChannels.java
// @TargetApi(Build.VERSION_CODES.O)
// public class VibrationCenterChannels {
//     public static String CHANNEL_TEMPORARY_MUTE = "TEMPORARY_MUTE";
// 
//     public static void init(Context context) {
//         if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
//             return;
//         }
// 
//         NotificationManager notificationManager = (NotificationManager)
//                 context.getSystemService(Context.NOTIFICATION_SERVICE);
//         assert notificationManager != null;
// 
//         NotificationChannel channel = new NotificationChannel(
//                 CHANNEL_TEMPORARY_MUTE,
//                 context.getString(R.string.temporary_mute_channel_name),
//                 NotificationManager.IMPORTANCE_MIN
//         );
//         notificationManager.createNotificationChannel(channel);
// 
//     }
// }


import android.app.Application;
import android.content.pm.ApplicationInfo;
import com.crashlytics.android.Crashlytics;
import com.matejdro.wearutils.logging.FileLogger;
import com.matejdro.wearvibrationcenter.logging.CrashlyticsExceptionWearHandler;
import com.matejdro.wearvibrationcenter.logging.TimberCrashlytics;
import com.matejdro.wearvibrationcenter.notification.VibrationCenterChannels;
import io.fabric.sdk.android.Fabric;
import pl.tajchert.exceptionwear.ExceptionDataListenerService;
import timber.log.Timber;
package com.matejdro.wearvibrationcenter;




public class WearVibrationCenter extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        Timber.setAppTag("WearVibrationCenter");

        boolean isDebuggable = (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/logging/CrashlyticsExceptionWearHandler.java
// public class CrashlyticsExceptionWearHandler implements ExceptionWearHandler{
//     @Override
//     /**
//      * Exception handler with Crashlytics support, also it will be shown in logcat.
//      */
//     public void handleException(Throwable throwable, DataMap map) {
//         Timber.d("HandleException %s", throwable);
//         Crashlytics.setBool("wear_exception", true);
//         Crashlytics.setString("board", map.getString("board"));
//         Crashlytics.setString("fingerprint", map.getString("fingerprint"));
//         Crashlytics.setString("model", map.getString("model"));
//         Crashlytics.setString("manufacturer", map.getString("manufacturer"));
//         Crashlytics.setString("product", map.getString("product"));
//         Crashlytics.setString("api_level", map.getString("api_level"));
// 
//         Crashlytics.logException(throwable);
//     }
// }
// 
// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/logging/TimberCrashlytics.java
// public class TimberCrashlytics extends Timber.Tree {
//     @Override
//     protected void log(int priority, String tag, String message, Throwable t) {
//         if (t != null) {
//             Crashlytics.log(priority, tag, message);
//             Crashlytics.logException(t);
//         }
//     }
// }
// 
// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/notification/VibrationCenterChannels.java
// @TargetApi(Build.VERSION_CODES.O)
// public class VibrationCenterChannels {
//     public static String CHANNEL_TEMPORARY_MUTE = "TEMPORARY_MUTE";
// 
//     public static void init(Context context) {
//         if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
//             return;
//         }
// 
//         NotificationManager notificationManager = (NotificationManager)
//                 context.getSystemService(Context.NOTIFICATION_SERVICE);
//         assert notificationManager != null;
// 
//         NotificationChannel channel = new NotificationChannel(
//                 CHANNEL_TEMPORARY_MUTE,
//                 context.getString(R.string.temporary_mute_channel_name),
//                 NotificationManager.IMPORTANCE_MIN
//         );
//         notificationManager.createNotificationChannel(channel);
// 
//     }
// }


// Path: mobile/src/main/java/com/matejdro/wearvibrationcenter/WearVibrationCenter.java
import android.app.Application;
import android.content.pm.ApplicationInfo;
import com.crashlytics.android.Crashlytics;
import com.matejdro.wearutils.logging.FileLogger;
import com.matejdro.wearvibrationcenter.logging.CrashlyticsExceptionWearHandler;
import com.matejdro.wearvibrationcenter.logging.TimberCrashlytics;
import com.matejdro.wearvibrationcenter.notification.VibrationCenterChannels;
import io.fabric.sdk.android.Fabric;
import pl.tajchert.exceptionwear.ExceptionDataListenerService;
import timber.log.Timber;

package com.matejdro.wearvibrationcenter;




public class WearVibrationCenter extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        Timber.setAppTag("WearVibrationCenter");

        boolean isDebuggable = (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
        if (!isDebuggable) {