wip: glass theme tokens + demo page + charcoal base port

This commit is contained in:
avi 2026-09-07 18:12:09 -05:00
commit 6628965e68
941 changed files with 1688 additions and 1160 deletions

Binary file not shown.

View file

@ -425,26 +425,20 @@ public final class DaggerRadAmpApp_HiltComponents_SingletonC {
@IdentifierNameString
private static final class LazyClassKeyProvider {
static String com_rada_ui_playlists_PlaylistManagerViewModel = "com.rada.ui.playlists.PlaylistManagerViewModel";
static String com_rada_ui_streams_StreamsViewModel = "com.rada.ui.streams.StreamsViewModel";
static String com_rada_ui_stations_StationBrowserViewModel = "com.rada.ui.stations.StationBrowserViewModel";
static String com_rada_ui_library_LibraryViewModel = "com.rada.ui.library.LibraryViewModel";
static String com_rada_ui_player_NowPlayingViewModel = "com.rada.ui.player.NowPlayingViewModel";
static String com_rada_ui_player_PlayerViewModel = "com.rada.ui.player.PlayerViewModel";
static String com_rada_ui_library_LibraryViewModel = "com.rada.ui.library.LibraryViewModel";
static String com_rada_ui_stations_StationBrowserViewModel = "com.rada.ui.stations.StationBrowserViewModel";
static String com_rada_ui_playlists_PlaylistManagerViewModel = "com.rada.ui.playlists.PlaylistManagerViewModel";
static String com_rada_ui_streams_StreamsViewModel = "com.rada.ui.streams.StreamsViewModel";
@KeepFieldType
PlaylistManagerViewModel com_rada_ui_playlists_PlaylistManagerViewModel2;
@KeepFieldType
StreamsViewModel com_rada_ui_streams_StreamsViewModel2;
@KeepFieldType
StationBrowserViewModel com_rada_ui_stations_StationBrowserViewModel2;
LibraryViewModel com_rada_ui_library_LibraryViewModel2;
@KeepFieldType
NowPlayingViewModel com_rada_ui_player_NowPlayingViewModel2;
@ -453,7 +447,13 @@ public final class DaggerRadAmpApp_HiltComponents_SingletonC {
PlayerViewModel com_rada_ui_player_PlayerViewModel2;
@KeepFieldType
LibraryViewModel com_rada_ui_library_LibraryViewModel2;
StationBrowserViewModel com_rada_ui_stations_StationBrowserViewModel2;
@KeepFieldType
PlaylistManagerViewModel com_rada_ui_playlists_PlaylistManagerViewModel2;
@KeepFieldType
StreamsViewModel com_rada_ui_streams_StreamsViewModel2;
}
}
@ -509,35 +509,35 @@ public final class DaggerRadAmpApp_HiltComponents_SingletonC {
@IdentifierNameString
private static final class LazyClassKeyProvider {
static String com_rada_ui_player_PlayerViewModel = "com.rada.ui.player.PlayerViewModel";
static String com_rada_ui_playlists_PlaylistManagerViewModel = "com.rada.ui.playlists.PlaylistManagerViewModel";
static String com_rada_ui_stations_StationBrowserViewModel = "com.rada.ui.stations.StationBrowserViewModel";
static String com_rada_ui_library_LibraryViewModel = "com.rada.ui.library.LibraryViewModel";
static String com_rada_ui_streams_StreamsViewModel = "com.rada.ui.streams.StreamsViewModel";
static String com_rada_ui_player_PlayerViewModel = "com.rada.ui.player.PlayerViewModel";
static String com_rada_ui_player_NowPlayingViewModel = "com.rada.ui.player.NowPlayingViewModel";
@KeepFieldType
PlayerViewModel com_rada_ui_player_PlayerViewModel2;
static String com_rada_ui_stations_StationBrowserViewModel = "com.rada.ui.stations.StationBrowserViewModel";
@KeepFieldType
PlaylistManagerViewModel com_rada_ui_playlists_PlaylistManagerViewModel2;
static String com_rada_ui_streams_StreamsViewModel = "com.rada.ui.streams.StreamsViewModel";
@KeepFieldType
StationBrowserViewModel com_rada_ui_stations_StationBrowserViewModel2;
static String com_rada_ui_playlists_PlaylistManagerViewModel = "com.rada.ui.playlists.PlaylistManagerViewModel";
@KeepFieldType
LibraryViewModel com_rada_ui_library_LibraryViewModel2;
@KeepFieldType
StreamsViewModel com_rada_ui_streams_StreamsViewModel2;
PlayerViewModel com_rada_ui_player_PlayerViewModel2;
@KeepFieldType
NowPlayingViewModel com_rada_ui_player_NowPlayingViewModel2;
@KeepFieldType
StationBrowserViewModel com_rada_ui_stations_StationBrowserViewModel2;
@KeepFieldType
StreamsViewModel com_rada_ui_streams_StreamsViewModel2;
@KeepFieldType
PlaylistManagerViewModel com_rada_ui_playlists_PlaylistManagerViewModel2;
}
private static final class SwitchingProvider<T> implements Provider<T> {

View file

@ -293,6 +293,70 @@ public class PlaylistDao_Impl(
}
}
public override suspend fun getSongsInPlaylistOnce(playlistId: Long): List<SavedSongEntity> {
val _sql: String = """
|
| SELECT s.* FROM saved_songs s
| INNER JOIN playlist_songs ps ON s.id = ps.songId
| WHERE ps.playlistId = ?
|
""".trimMargin()
return performSuspending(__db, true, false) { _connection ->
val _stmt: SQLiteStatement = _connection.prepare(_sql)
try {
var _argIndex: Int = 1
_stmt.bindLong(_argIndex, playlistId)
val _columnIndexOfId: Int = getColumnIndexOrThrow(_stmt, "id")
val _columnIndexOfFileName: Int = getColumnIndexOrThrow(_stmt, "fileName")
val _columnIndexOfFilePath: Int = getColumnIndexOrThrow(_stmt, "filePath")
val _columnIndexOfArtist: Int = getColumnIndexOrThrow(_stmt, "artist")
val _columnIndexOfTitle: Int = getColumnIndexOrThrow(_stmt, "title")
val _columnIndexOfAlbum: Int = getColumnIndexOrThrow(_stmt, "album")
val _columnIndexOfStationName: Int = getColumnIndexOrThrow(_stmt, "stationName")
val _columnIndexOfDurationMs: Int = getColumnIndexOrThrow(_stmt, "durationMs")
val _columnIndexOfFileSize: Int = getColumnIndexOrThrow(_stmt, "fileSize")
val _columnIndexOfFormat: Int = getColumnIndexOrThrow(_stmt, "format")
val _columnIndexOfDateSaved: Int = getColumnIndexOrThrow(_stmt, "dateSaved")
val _columnIndexOfIsFavorite: Int = getColumnIndexOrThrow(_stmt, "isFavorite")
val _result: MutableList<SavedSongEntity> = mutableListOf()
while (_stmt.step()) {
val _item: SavedSongEntity
val _tmpId: Long
_tmpId = _stmt.getLong(_columnIndexOfId)
val _tmpFileName: String
_tmpFileName = _stmt.getText(_columnIndexOfFileName)
val _tmpFilePath: String
_tmpFilePath = _stmt.getText(_columnIndexOfFilePath)
val _tmpArtist: String
_tmpArtist = _stmt.getText(_columnIndexOfArtist)
val _tmpTitle: String
_tmpTitle = _stmt.getText(_columnIndexOfTitle)
val _tmpAlbum: String
_tmpAlbum = _stmt.getText(_columnIndexOfAlbum)
val _tmpStationName: String
_tmpStationName = _stmt.getText(_columnIndexOfStationName)
val _tmpDurationMs: Long
_tmpDurationMs = _stmt.getLong(_columnIndexOfDurationMs)
val _tmpFileSize: Long
_tmpFileSize = _stmt.getLong(_columnIndexOfFileSize)
val _tmpFormat: String
_tmpFormat = _stmt.getText(_columnIndexOfFormat)
val _tmpDateSaved: Long
_tmpDateSaved = _stmt.getLong(_columnIndexOfDateSaved)
val _tmpIsFavorite: Boolean
val _tmp: Int
_tmp = _stmt.getLong(_columnIndexOfIsFavorite).toInt()
_tmpIsFavorite = _tmp != 0
_item = SavedSongEntity(_tmpId,_tmpFileName,_tmpFilePath,_tmpArtist,_tmpTitle,_tmpAlbum,_tmpStationName,_tmpDurationMs,_tmpFileSize,_tmpFormat,_tmpDateSaved,_tmpIsFavorite)
_result.add(_item)
}
_result
} finally {
_stmt.close()
}
}
}
public override suspend fun deletePlaylistById(playlistId: Long) {
val _sql: String = "DELETE FROM playlists WHERE id = ?"
return performSuspending(__db, false, true) { _connection ->

View file

@ -498,6 +498,66 @@ public class SavedSongDao_Impl(
}
}
public override suspend fun getByArtistTitle(artist: String, title: String): SavedSongEntity? {
val _sql: String = "SELECT * FROM saved_songs WHERE artist = ? AND title = ? COLLATE NOCASE LIMIT 1"
return performSuspending(__db, true, false) { _connection ->
val _stmt: SQLiteStatement = _connection.prepare(_sql)
try {
var _argIndex: Int = 1
_stmt.bindText(_argIndex, artist)
_argIndex = 2
_stmt.bindText(_argIndex, title)
val _columnIndexOfId: Int = getColumnIndexOrThrow(_stmt, "id")
val _columnIndexOfFileName: Int = getColumnIndexOrThrow(_stmt, "fileName")
val _columnIndexOfFilePath: Int = getColumnIndexOrThrow(_stmt, "filePath")
val _columnIndexOfArtist: Int = getColumnIndexOrThrow(_stmt, "artist")
val _columnIndexOfTitle: Int = getColumnIndexOrThrow(_stmt, "title")
val _columnIndexOfAlbum: Int = getColumnIndexOrThrow(_stmt, "album")
val _columnIndexOfStationName: Int = getColumnIndexOrThrow(_stmt, "stationName")
val _columnIndexOfDurationMs: Int = getColumnIndexOrThrow(_stmt, "durationMs")
val _columnIndexOfFileSize: Int = getColumnIndexOrThrow(_stmt, "fileSize")
val _columnIndexOfFormat: Int = getColumnIndexOrThrow(_stmt, "format")
val _columnIndexOfDateSaved: Int = getColumnIndexOrThrow(_stmt, "dateSaved")
val _columnIndexOfIsFavorite: Int = getColumnIndexOrThrow(_stmt, "isFavorite")
val _result: SavedSongEntity?
if (_stmt.step()) {
val _tmpId: Long
_tmpId = _stmt.getLong(_columnIndexOfId)
val _tmpFileName: String
_tmpFileName = _stmt.getText(_columnIndexOfFileName)
val _tmpFilePath: String
_tmpFilePath = _stmt.getText(_columnIndexOfFilePath)
val _tmpArtist: String
_tmpArtist = _stmt.getText(_columnIndexOfArtist)
val _tmpTitle: String
_tmpTitle = _stmt.getText(_columnIndexOfTitle)
val _tmpAlbum: String
_tmpAlbum = _stmt.getText(_columnIndexOfAlbum)
val _tmpStationName: String
_tmpStationName = _stmt.getText(_columnIndexOfStationName)
val _tmpDurationMs: Long
_tmpDurationMs = _stmt.getLong(_columnIndexOfDurationMs)
val _tmpFileSize: Long
_tmpFileSize = _stmt.getLong(_columnIndexOfFileSize)
val _tmpFormat: String
_tmpFormat = _stmt.getText(_columnIndexOfFormat)
val _tmpDateSaved: Long
_tmpDateSaved = _stmt.getLong(_columnIndexOfDateSaved)
val _tmpIsFavorite: Boolean
val _tmp: Int
_tmp = _stmt.getLong(_columnIndexOfIsFavorite).toInt()
_tmpIsFavorite = _tmp != 0
_result = SavedSongEntity(_tmpId,_tmpFileName,_tmpFilePath,_tmpArtist,_tmpTitle,_tmpAlbum,_tmpStationName,_tmpDurationMs,_tmpFileSize,_tmpFormat,_tmpDateSaved,_tmpIsFavorite)
} else {
_result = null
}
_result
} finally {
_stmt.close()
}
}
}
public override fun getCount(): Flow<Int> {
val _sql: String = "SELECT COUNT(*) FROM saved_songs"
return createFlow(__db, false, arrayOf("saved_songs")) { _connection ->

Some files were not shown because too many files have changed in this diff Show more