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

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

chore: adapt Sentry logging for new changes

parent ed95094a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@ android {
        setProperty("archivesBaseName", "BlissLauncher-$versionName")
    }

    buildFeatures { buildConfig = true }

    buildTypes {
        release {
            isMinifyEnabled = false
+1 −14
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;
@@ -52,16 +48,7 @@ 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);
                    }
                }
            });
            Telemetry.init(BuildConfig.SENTRY_DSN, this, true);
        } else {
            Timber.plant(new Timber.DebugTree());
        }
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ tools-timber = "com.jakewharton.timber:timber:5.0.1"
timber = "com.jakewharton.timber:timber:4.7.1"
restriction-bypass = "com.github.ChickenHook:RestrictionBypass:2.2"
elib = "foundation.e:elib:0.0.1-alpha11"
telemetry = "foundation.e.lib:telemetry:0.0.4-alpha"
telemetry = "foundation.e.lib:telemetry:0.0.6-alpha"

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }