-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improved code quality and functionality
- Updated ReleaseDate formatting to use a custom separator. - Refactored Int extension to format to minutes using string format. - Refactored PermissionType to store permission strings directly and added a helper function to convert strings to PermissionType. - Renamed Array extension `joinOrNullToString` to `joinToStringOrNull`. - Implemented new methods in `SearchRepository` and `SearchRepositoryImpl` for searching different types of content. - Updated app icon and splash screen. - Replaced `isNotNullOrBlank` with `isNeitherNullNorBlank` in `MetadataEditorPage`. - Converted `ConcurrentList` to a thread-safe implementation with read-write lock and added documentation. - Updated `PropertyMap` extensions to use `joinToStringOrNull` for better handling of null values. - Updated `toPermissionType` function call in `HomePage`. - Updated Android Target SDK to 35.
- Loading branch information
Showing
13 changed files
with
256 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...main/java/com/bobbyesp/metadator/features/spotify/domain/repositories/SearchRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
package com.bobbyesp.metadator.features.spotify.domain.repositories | ||
|
||
import androidx.paging.Pager | ||
import com.adamratzman.spotify.models.Album | ||
import com.adamratzman.spotify.models.Artist | ||
import com.adamratzman.spotify.models.Playlist | ||
import com.adamratzman.spotify.models.Track | ||
|
||
interface SearchRepository { | ||
suspend fun searchTracks(query: String): Result<List<Track>> | ||
suspend fun searchAlbums(query: String): Result<List<Album>> | ||
suspend fun searchPlaylists(query: String): Result<List<Playlist>> | ||
suspend fun searchArtists(query: String): Result<List<Artist>> | ||
suspend fun searchPaginatedTracks(query: String): Pager<Int, Track> | ||
suspend fun searchPaginatedAlbums(query: String): Pager<Int, Album> | ||
suspend fun searchPaginatedPlaylists(query: String): Pager<Int, Playlist> | ||
suspend fun searchPaginatedArtists(query: String): Pager<Int, Artist> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/utilities/src/main/java/com/bobbyesp/utilities/ext/Array.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.bobbyesp.utilities.ext | ||
|
||
fun Array<String>?.joinOrNullToString(separator: String = ", "): String? { | ||
fun Array<String>?.joinToStringOrNull(separator: String = ", "): String? { | ||
return this?.joinToString(separator = separator) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.