feat: Mediaplayer remake && refactor: added ktfmt #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and new features to the
app/mediaplayer
module, including dependency updates, new services, and repository implementations. The changes are primarily focused on improving the media player functionality and adding new capabilities for media scanning and playback services.Dependency and Plugin Updates:
ktfmt
plugin toapp/build.gradle.kts
andapp/mediaplayer/build.gradle.kts
for Kotlin code formatting. [1] [2]core-utilities
module as a dependency inapp/build.gradle.kts
andapp/mediaplayer/build.gradle.kts
. [1] [2]Media Player Enhancements:
AndroidManifest.xml
to include the newPlaybackService
and the required permissions for media playback.PlaybackService
to handle media playback using ExoPlayer and MediaLibraryService.MediaPlayerModule.kt
to use the newPlaybackService
and simplified dependency injection.Repository Implementations:
MediaStoreFolderScannerImpl
for scanning custom folders and forcing MediaStore to scan specified folders.MusicScannerImpl
for querying and observing the music library using MediaStore.New Enums:
AudioChannels
enum to represent different audio channel configurations.MediaStoreSearchFilter
enum to facilitate filtering in MediaStore queries.