Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 7f01cb51 authored by Yash Garg's avatar Yash Garg 💬
Browse files

cleanup: revert sentry integration

parent da98c5fe
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -178,5 +178,4 @@ dependencies {

    // elib
    implementation(libs.elib)
    implementation(libs.telemetry)
}
+1 −19
Original line number Diff line number Diff line
@@ -8,10 +8,6 @@ import android.database.ContentObserver;
import android.net.Uri;
import android.os.Handler;
import android.provider.Settings;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import foundation.e.blisslauncher.core.DeviceProfile;
import foundation.e.blisslauncher.core.IconsHandler;
@@ -19,7 +15,6 @@ import foundation.e.blisslauncher.core.blur.BlurWallpaperProvider;
import foundation.e.blisslauncher.core.customviews.WidgetHost;
import foundation.e.blisslauncher.features.launcher.AppProvider;
import foundation.e.blisslauncher.features.notification.NotificationService;
import foundation.e.lib.telemetry.Telemetry;
import timber.log.Timber;

public class BlissLauncher extends Application {
@@ -51,21 +46,8 @@ public class BlissLauncher extends Application {
        };
        getContentResolver().registerContentObserver(NOTIFICATION_BADGING_URI, false, notificationSettingsObserver);

        if (!BuildConfig.DEBUG) {
            Telemetry.INSTANCE.init(BuildConfig.SENTRY_DSN, this);
            Timber.plant(new Timber.Tree() {
                @Override
                protected void log(int priority, @Nullable String tag, @NonNull String message, @Nullable Throwable t) {
                    Log.println(priority, tag, message);
                    if (priority == Log.WARN || priority == Log.ERROR) {
                        Telemetry.INSTANCE.reportMessage(tag + ": " + message);
                    }
                }
            });
        } else {
        Timber.plant(new Timber.DebugTree());
    }
    }

    private void onNotificationSettingsChanged() {
        boolean areNotificationDotsEnabled = Settings.Secure.getInt(getContentResolver(),