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

Commit cba19242 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Add logtif for exploratory tests

parent 67594bfd
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
# Built application files
*.apk
*.aar
*.ap_
*.aab

+3 −0
Original line number Diff line number Diff line
@@ -206,4 +206,7 @@ dependencies {
    // elib
    implementation(libs.elib)
    implementation(libs.telemetry)

    // Logtif
    implementation(libs.logtif)
}

app/libs/logtif.aar

0 → 100644
+145 KiB

File added.

No diff preview for this file type.

+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;
@@ -69,6 +71,8 @@ public class BlissLauncher extends Application {
        } else {
            Timber.plant(new Timber.DebugTree());
        }

        Logtif.INSTANCE.init(this, "BlissLauncherChannel");
    }

    private void onNotificationSettingsChanged() {
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;
import com.klee.logtif.Logtif;

import java.io.IOException;
import java.lang.ref.WeakReference;
@@ -125,6 +126,7 @@ public class WeatherUpdater {
        weatherManager.requestWeatherUpdate(location, (status, weatherInfo) -> notifyUi(context, weatherInfo, status));
    }

    @SuppressLint("MissingPermission")
    private synchronized void onNewLocationFetched(@Nullable Location location) {
        if (location == null) {
            Timber.tag(TAG).i("Could not fetch any location");
@@ -148,10 +150,12 @@ public class WeatherUpdater {

        if (weatherInfo == null) {
            Timber.tag(TAG).i("WeatherInfo is null. Status reported: %s", status);
            Logtif.INSTANCE.log(Logtif.ERROR, "Could not fetch weather %d", status);
            return;
        }

        Timber.tag(TAG).i("WeatherInfo=%s", weatherInfo);
        Logtif.INSTANCE.log(Logtif.INFO, "New weather info for " + weatherInfo.getCity());

        Preferences.setCachedWeatherInfo(context, now, weatherInfo);
        Intent updateIntent = new Intent(WeatherUpdateService.ACTION_UPDATE_FINISHED);
Loading