mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Code cleanup
This commit is contained in:
parent
0b92e85c4e
commit
e462d193e0
3 changed files with 4 additions and 13 deletions
|
|
@ -30,11 +30,6 @@ android {
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
|
||||||
exclude 'META-INF/NOTICE.md'
|
|
||||||
exclude 'META-INF/LICENSE.md'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
@ -43,9 +38,6 @@ dependencies {
|
||||||
// Jellyfin
|
// Jellyfin
|
||||||
implementation 'com.github.jellyfin.jellyfin-apiclient-java:android:0.7.7'
|
implementation 'com.github.jellyfin.jellyfin-apiclient-java:android:0.7.7'
|
||||||
|
|
||||||
// Subsonic
|
|
||||||
implementation 'net.beardbot:subsonic-client:0.2.0'
|
|
||||||
|
|
||||||
// Kotlin
|
// Kotlin
|
||||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'
|
||||||
|
|
||||||
|
|
@ -98,5 +90,5 @@ dependencies {
|
||||||
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
||||||
|
|
||||||
// Red screen of death
|
// 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'
|
||||||
}
|
}
|
||||||
|
|
@ -2,13 +2,13 @@ package com.cappielloantonio.play;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
import androidx.test.platform.app.InstrumentationRegistry;
|
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||||
|
import androidx.test.platform.app.InstrumentationRegistry;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
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.
|
* Instrumented test, which will execute on an Android device.
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import androidx.preference.PreferenceManager;
|
||||||
|
|
||||||
import com.cappielloantonio.play.helper.ThemeHelper;
|
import com.cappielloantonio.play.helper.ThemeHelper;
|
||||||
import com.cappielloantonio.play.util.PreferenceUtil;
|
import com.cappielloantonio.play.util.PreferenceUtil;
|
||||||
import com.melegy.redscreenofdeath.RedScreenOfDeath;
|
|
||||||
|
|
||||||
import org.jellyfin.apiclient.AppInfo;
|
import org.jellyfin.apiclient.AppInfo;
|
||||||
import org.jellyfin.apiclient.Jellyfin;
|
import org.jellyfin.apiclient.Jellyfin;
|
||||||
|
|
@ -27,7 +26,7 @@ public class App extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
RedScreenOfDeath.init(this);
|
// RedScreenOfDeath.init(this);
|
||||||
|
|
||||||
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||||
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
String themePref = sharedPreferences.getString("themePref", ThemeHelper.DEFAULT_MODE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue