Code cleanup

This commit is contained in:
CappielloAntonio 2021-07-17 12:54:31 +02:00
parent 0b92e85c4e
commit e462d193e0
3 changed files with 4 additions and 13 deletions

View file

@ -30,11 +30,6 @@ android {
buildFeatures {
viewBinding = true
}
packagingOptions {
exclude 'META-INF/NOTICE.md'
exclude 'META-INF/LICENSE.md'
}
}
dependencies {
@ -43,9 +38,6 @@ dependencies {
// Jellyfin
implementation 'com.github.jellyfin.jellyfin-apiclient-java:android:0.7.7'
// Subsonic
implementation 'net.beardbot:subsonic-client:0.2.0'
// Kotlin
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'
@ -98,5 +90,5 @@ dependencies {
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
// Red screen of death
debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
// debugImplementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
}

View file

@ -2,13 +2,13 @@ package com.cappielloantonio.play;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
/**
* Instrumented test, which will execute on an Android device.

View file

@ -8,7 +8,6 @@ import androidx.preference.PreferenceManager;
import com.cappielloantonio.play.helper.ThemeHelper;
import com.cappielloantonio.play.util.PreferenceUtil;
import com.melegy.redscreenofdeath.RedScreenOfDeath;
import org.jellyfin.apiclient.AppInfo;
import org.jellyfin.apiclient.Jellyfin;
@ -27,7 +26,7 @@ public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
RedScreenOfDeath.init(this);
// RedScreenOfDeath.init(this);
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);