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

Commit 1fc50436 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Add logtif

parent 1889f0ce
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -209,4 +209,6 @@ dependencies {
    // elib
    implementation(libs.elib)
    implementation(libs.telemetry)

    implementation(libs.logtif)
}
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.klee.logtif.Logtif;

import foundation.e.blisslauncher.core.DeviceProfile;
import foundation.e.blisslauncher.core.IconsHandler;
import foundation.e.blisslauncher.core.blur.BlurWallpaperProvider;
@@ -52,6 +54,8 @@ public class BlissLauncher extends Application {
        sAppWidgetHost = new WidgetHost(getApplicationContext(), R.id.APPWIDGET_HOST_ID);
        sAppWidgetHost.startListening();

        Logtif.init(this, "SampleApp");

        connectAppProvider();
        BlurWallpaperProvider.Companion.getInstance(this);

+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ import android.os.IBinder;

import androidx.annotation.Nullable;

import com.klee.logtif.Logtif;

import timber.log.Timber;

public class WeatherUpdateService extends Service {
@@ -62,6 +64,7 @@ public class WeatherUpdateService extends Service {

    @Override
    public void onDestroy() {
        Logtif.log(Logtif.WARNING, "Service has been killed");
        mHandler.removeCallbacksAndMessages(null);
        mHandlerThread.quitSafely();
        super.onDestroy();
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ dependencyResolutionManagement {
        google()
        mavenCentral()
        versionCatalogs { create("libs") { from(files("../gradle/libs.versions.toml")) } }
        maven { url = uri("https://jitpack.io") }
    }
}

+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ androidx-test-espresso = { module = "androidx.test.espresso:espresso-core", vers
androidx-test-junit = "androidx.test.ext:junit:1.1.4"
androidx-localbroadcast = "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0"
apache-commons = "org.apache.commons:commons-lang3:3.12.0"
logtif = "com.github.jonathanklee:Logtif:0.3"

build-spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }