From c478126be122b6aae748770e9b27c2fca16dd89c Mon Sep 17 00:00:00 2001 From: Yash Garg Date: Tue, 28 Mar 2023 17:20:33 +0530 Subject: [PATCH 1/2] chore: adapt Sentry logging for new changes --- app/build.gradle.kts | 2 ++ .../foundation/e/blisslauncher/BlissLauncher.java | 15 +-------------- gradle/libs.versions.toml | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 58255f5ac3..984edb1b75 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -46,6 +46,8 @@ android { setProperty("archivesBaseName", "BlissLauncher-$versionName") } + buildFeatures { buildConfig = true } + buildTypes { release { isMinifyEnabled = false diff --git a/app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java b/app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java index 3ffc93e2ff..5b9441a8a3 100755 --- a/app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java +++ b/app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java @@ -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()); } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 25a42ecb15..6c70b40021 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" } -- GitLab From d395ac7066c8acd21d0840893d47c50e5fb7499c Mon Sep 17 00:00:00 2001 From: Yash Garg Date: Tue, 28 Mar 2023 17:46:39 +0530 Subject: [PATCH 2/2] chore(deps): bump blur library for perf and T support --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6c70b40021..259707a49a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -35,7 +35,7 @@ dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = dagger-android-processor = { module = "com.google.dagger:dagger-android-processor", version.ref = "dagger" } greenrobot-eventbus = "org.greenrobot:eventbus:3.1.1" -hoko-blur = "com.hoko:hoko-blur:1.3.4" +hoko-blur = "io.github.hokofly:hoko-blur:1.4.0" kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlin" } kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" } -- GitLab