build: fix release

Apparently AGP throws a fit when you don't suppress warnings for
cryptography classes that aren't even used. Great.
This commit is contained in:
Alexander Capehart
2023-05-20 20:11:33 -06:00
parent c86970470f
commit 5244a2b858
5 changed files with 34 additions and 8 deletions
@@ -23,6 +23,7 @@ import org.oxycblt.auxio.music.Music
/**
* Raw playlist information persisted to [UserMusicDatabase].
*
* @author Alexander Capehart (OxygenCobalt)
*/
data class RawPlaylist(
@@ -36,19 +37,21 @@ data class RawPlaylist(
/**
* UID and name information corresponding to a [RawPlaylist] entry.
*
* @author Alexander Capehart (OxygenCobalt)
*/
@Entity data class PlaylistInfo(@PrimaryKey val playlistUid: Music.UID, val name: String)
/**
* Song information corresponding to a [RawPlaylist] entry.
*
* @author Alexander Capehart (OxygenCobalt)
*/
@Entity data class PlaylistSong(@PrimaryKey val songUid: Music.UID)
/**
* Links individual songs to a playlist entry.
*
* @author Alexander Capehart (OxygenCobalt)
*/
@Entity
@@ -23,6 +23,7 @@ import org.oxycblt.auxio.music.Music
/**
* Allows persistence of all user-created music information.
*
* @author Alexander Capehart (OxygenCobalt)
*/
@Database(
@@ -39,12 +40,14 @@ abstract class UserMusicDatabase : RoomDatabase() {
/**
* The DAO for persisted playlist information.
*
* @author Alexander Capehart (OxygenCobalt)
*/
@Dao
interface PlaylistDao {
/**
* Read out all playlists stored in the database.
*
* @return A list of [RawPlaylist] representing each playlist stored.
*/
@Transaction
@@ -53,6 +56,7 @@ interface PlaylistDao {
/**
* Create a new playlist.
*
* @param rawPlaylist The [RawPlaylist] to create.
*/
@Transaction
@@ -68,6 +72,7 @@ interface PlaylistDao {
/**
* Replace the currently-stored [PlaylistInfo] for a playlist entry.
*
* @param playlistInfo The new [PlaylistInfo] to store.
*/
@Transaction
@@ -78,6 +83,7 @@ interface PlaylistDao {
/**
* Delete a playlist entry's [PlaylistInfo] and [PlaylistSong].
*
* @param playlistUid The [Music.UID] of the playlist to delete.
*/
@Transaction
@@ -88,6 +94,7 @@ interface PlaylistDao {
/**
* Insert new song entries into a playlist.
*
* @param playlistUid The [Music.UID] of the playlist to insert into.
* @param songs The [PlaylistSong] representing each song to put into the playlist.
*/
@@ -100,8 +107,10 @@ interface PlaylistDao {
/**
* Replace the currently-stored [Song]s of the current playlist entry.
*
* @param playlistUid The [Music.UID] of the playlist to update.
* @param songs The [PlaylistSong] representing the new list of songs to be placed in the playlist.
* @param songs The [PlaylistSong] representing the new list of songs to be placed in the
* playlist.
*/
@Transaction
suspend fun replacePlaylistSongs(playlistUid: Music.UID, songs: List<PlaylistSong>) {
@@ -58,23 +58,23 @@ open class FakeMusicRepository : MusicRepository {
throw NotImplementedError()
}
override fun createPlaylist(name: String, songs: List<Song>) {
override suspend fun createPlaylist(name: String, songs: List<Song>) {
throw NotImplementedError()
}
override fun renamePlaylist(playlist: Playlist, name: String) {
override suspend fun renamePlaylist(playlist: Playlist, name: String) {
throw NotImplementedError()
}
override fun deletePlaylist(playlist: Playlist) {
override suspend fun deletePlaylist(playlist: Playlist) {
throw NotImplementedError()
}
override fun addToPlaylist(songs: List<Song>, playlist: Playlist) {
override suspend fun addToPlaylist(songs: List<Song>, playlist: Playlist) {
throw NotImplementedError()
}
override fun rewritePlaylist(playlist: Playlist, songs: List<Song>) {
override suspend fun rewritePlaylist(playlist: Playlist, songs: List<Song>) {
throw NotImplementedError()
}