Release 1.0.12

- Load preferences and all station logos off the main thread
- Keep equalizer updates and player animations from recomposing whole screens
- Build the Android Auto browse tree once and serve it from memory
- Create only the audio and metadata renderers, ship only the app's languages
- Store interface icons as lossless WebP, drop unused code and dependencies
This commit is contained in:
2026-11-03 12:42:31 +02:00
parent 6a819880e2
commit fa2fda44d1
77 changed files with 624 additions and 514 deletions
@@ -1,11 +1,22 @@
package cc.skysparkle.fogwave
import android.app.Application
import android.content.Context
import cc.skysparkle.fogwave.data.repository.RadioRepository
import cc.skysparkle.fogwave.player.AudioEffectsEngine
import coil.ImageLoader
import coil.ImageLoaderFactory
import coil.memory.MemoryCache
class FogwaveApp : Application(), ImageLoaderFactory {
override fun onCreate() {
super.onCreate()
// Opening the preference files starts loading them on a background thread right away, so the
// first screen and the playback service usually find them loaded instead of waiting on the disk.
getSharedPreferences(RadioRepository.PREFS_NAME, Context.MODE_PRIVATE)
getSharedPreferences(AudioEffectsEngine.PREFS_NAME, Context.MODE_PRIVATE)
}
override fun newImageLoader(): ImageLoader {
return ImageLoader.Builder(this)
.memoryCache {
@@ -14,7 +25,6 @@ class FogwaveApp : Application(), ImageLoaderFactory {
.build()
}
.crossfade(true)
.respectCacheHeaders(false)
.build()
}
}