settings: decouple

Decouple the settings god object into feature-specific settings.

This should make testing settings-dependent code much easier, as it no
longer requires a context.
This commit is contained in:
Alexander Capehart
2023-01-06 16:17:57 -07:00
parent 3502af33e7
commit 1b19b698a1
51 changed files with 1038 additions and 597 deletions
@@ -18,7 +18,9 @@
package org.oxycblt.auxio
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
/**
@@ -28,5 +30,10 @@ import org.junit.runner.RunWith
*/
@RunWith(AndroidJUnit4::class)
class StubTest {
// TODO: Add tests
// TODO: Make tests
@Test
fun useAppContext() {
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("org.oxycblt.auxio", appContext.packageName)
}
}