-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Merge MediaSource and MediaSynchronizer (#477)
* merge: mediasource and media synchronizer * add interface for media synchronizer * refactor: remove extension functions in mediasynchronizer * lint: run ktlintFormat
- Loading branch information
1 parent
4de89e2
commit 8140514
Showing
9 changed files
with
213 additions
and
244 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
98 changes: 0 additions & 98 deletions
98
core/data/src/main/java/dev/anilbeesetti/nextplayer/core/data/MediaSynchronizer.kt
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
core/media/src/main/java/dev/anilbeesetti/nextplayer/core/media/MediaModule.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dev.anilbeesetti.nextplayer.core.media | ||
|
||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import dev.anilbeesetti.nextplayer.core.media.sync.LocalMediaSynchronizer | ||
import dev.anilbeesetti.nextplayer.core.media.sync.MediaSynchronizer | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface MediaModule { | ||
|
||
@Binds | ||
@Singleton | ||
fun bindsMediaSynchronizer( | ||
mediaSynchronizer: LocalMediaSynchronizer | ||
): MediaSynchronizer | ||
} |
18 changes: 0 additions & 18 deletions
18
core/media/src/main/java/dev/anilbeesetti/nextplayer/core/media/MediaSourceModule.kt
This file was deleted.
Oops, something went wrong.
93 changes: 0 additions & 93 deletions
93
...edia/src/main/java/dev/anilbeesetti/nextplayer/core/media/mediasource/LocalMediaSource.kt
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
core/media/src/main/java/dev/anilbeesetti/nextplayer/core/media/mediasource/MediaSource.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.