Native Android client for Spotify, built with Jetpack Compose
Kotlin ad-freeadblockandroidjetpack-composekotlinlyricsmusic-playermusic-videomyspotispotifyspotify-adblockerspotify-clientspotify-connectspotui
2.0.0 release notes; the playlist search cache no longer needs Android (unit tests on the JVM)
kota-zoc1cbd744dba9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 74e17476..d63341d6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,7 +2,24 @@Each release on GitHub shows its section below. The app shows it too when it offers the update. Every detail: [docs/CHANGELOG-full.md](docs/CHANGELOG-full.md).-## Unreleased+## 2.0.0++Myspoti 2.0 is a new app, rebuilt from the ground up: Spotify with no ads and with lossless downloads, on a free account.++- π« **No ads, on a free account**: the ad breaks of Spotify's own player are switched off at the source. Pick any song, skip as much as you want.+- β¬οΈ **Lossless downloads**: songs, albums, playlists and Liked Songs in FLAC (CD or 24-bit hi-res) or small AAC β the very recording, found by its ISRC on Tidal or Qobuz, encrypted on your phone. Downloaded playlists stay in step.+- π **A new engine**: faster screens, quicker skips, and playback that recovers by itself.+- π€ **Word-by-word lyrics** from several sources, with translation and **song meanings from Genius**.+- π¬ **Official music videos**, in sync, in full screen, silent or with the clip's own sound.+- π₯ **Playlists**: create and edit them, **add songs** from a search, **collaborative playlists** with invites and who added what.+- π **Smart Shuffle**, a draggable queue, crossfade, sleep timer.+- ποΈ **Podcasts and audiobooks**, with their own player and downloads.+- π· **Spotify Codes** to share, profiles, Recents, Browse, New releases, Your recap, Jam, Android Auto.+- π **7 languages**, in-app updates, and a diagnostic report to send in one tap.++This release installs as **Myspoti**, next to Myspoti Beta if you have it.++## Since 2.0.0-beta.9- **Word-by-word lyrics from more sources** (Apple Music timing through LyricsPlus, lrc.red, Kugou), lined up with Spotify's own, words lit whole as they are sung; a setting picks word by word or line by line.- **Song meanings from Genius**: the light bulb opens the story of the song; underlined lines open their explanation with a long press, best-liked first, translated into your language as they arrive.@@ -124,19 +141,6 @@ Each release on GitHub shows its section below. The app shows it too when it off- **Fixes**: AMOLED black everywhere, lists no longer end under the mini player, full-screen music videos show, the Spotify account page stays under the status bar, "Saved in" confirms each change, fast skips no longer jam the player, no white screen on phones in light mode.- **Security and reliability fixes** (Android Auto, library pages, logout, links, video lookups).-## 2.0.0--A new engine, written from scratch, and a cleaner app on top of it.--- **No ads**, with a free account: the ad audio is refused and the next song starts.-- **New engine**: faster screens, playback that works on every phone, Spotify updates picked up by themselves.-- **Lossless downloads** (FLAC CD or hi-res, or small AAC), encrypted, with their own offline queue.-- **Sound quality** for streaming and downloads, and a **Settings** page.-- **Connect** shows your headphones; music pauses when they go away.-- **Podcasts and audiobooks**, **Jam**, **New releases**, **Browse**, **Your recap**, **widget**.-- **Library**: sort by title, artist, album, duration or date added; smart shuffle; folders.-- **In-app updates**, **Italian**, new icon; beta and release install side by side.-## 1.1.1- **Data saver** (profile menu): on mobile data Myspoti uses no data at all. Only downloaded songs and Local Files play, downloads wait for Wi-Fi, and the Spotify player comes back on its own on Wi-Fi.diff --git a/base/app/src/main/java/com/music/spotui/ui/components/FindInList.kt b/base/app/src/main/java/com/music/spotui/ui/components/FindInList.ktindex 9f4809ec..3fb0c0a6 100644--- a/base/app/src/main/java/com/music/spotui/ui/components/FindInList.kt+++ b/base/app/src/main/java/com/music/spotui/ui/components/FindInList.kt@@ -36,11 +36,13 @@ private val SPACES = Regex("""\s+""")* and held the main thread over a second a key on a big playlist (reported: typing in the search* froze the player until the app crashed).*/-private val folded = object : android.util.LruCache<String, String>(20_000) {- override fun create(key: String): String = Normalizer.normalize(key, Normalizer.Form.NFD).replace(MARKS, "").lowercase(Locale.ROOT)+private const val FOLDED_KEEP = 20_000+private val folded = object : LinkedHashMap<String, String>(1024, 0.75f, true) {+ override fun removeEldestEntry(eldest: MutableMap.MutableEntry<String, String>?) = size > FOLDED_KEEP+}+private fun fold(s: String): String = if (s.isEmpty()) s else synchronized(folded) {+ folded.getOrPut(s) { Normalizer.normalize(s, Normalizer.Form.NFD).replace(MARKS, "").lowercase(Locale.ROOT) }}--private fun fold(s: String): String = if (s.isEmpty()) s else folded.get(s)/*** "Find inβ¦" match: every word of [query] appears in one of [fields], ignoring case and