goldy1992 / Mp3Player

An open source Android MP3 Player
GNU General Public License v3.0
18 stars 3 forks source link

Remove compile time dagger warnings #88

Closed goldy1992 closed 5 years ago

goldy1992 commented 5 years ago
Mp3Player\app\src\main\java\com\example\mike\mp3player\dagger\components\MediaActivityCompatComponent.java:39: warning: [Dagger/DuplicateBindings] com.example.mike.mp3player.client.views.adapters.SearchResultAdapter is bound multiple times:
public interface MediaActivityCompatComponent {
       ^
      @Inject com.example.mike.mp3player.client.views.adapters.SearchResultAdapter(com.example.mike.mp3player.client.AlbumArtPainter) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent]
      @Provides com.example.mike.mp3player.client.views.adapters.SearchResultAdapter com.example.mike.mp3player.dagger.modules.SearchResultAdapterModule.provideSearchResultAdapter(com.example.mike.mp3player.client.AlbumArtPainter) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.SearchResultActivitySubComponent]
  This condition was never validated before, and will soon be an error. See https://dagger.dev/conflicting-inject.
      com.example.mike.mp3player.client.views.adapters.SearchResultAdapter is injected at
          com.example.mike.mp3player.client.activities.SearchResultActivity.setSearchResultAdapter(searchResultAdapter)
      com.example.mike.mp3player.client.activities.SearchResultActivityInjector is injected at
          com.example.mike.mp3player.dagger.components.SearchResultActivitySubComponent.inject(com.example.mike.mp3player.client.activities.SearchResultActivityInjector) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.SearchResultActivitySubComponent]
public interface MediaActivityCompatComponent {
       ^
      @Inject com.example.mike.mp3player.client.views.buttons.RepeatOneRepeatAllButton(android.content.Context, com.example.mike.mp3player.client.MediaControllerAdapter, @Named("main") android.os.Handler) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent]
      @Provides com.example.mike.mp3player.client.views.buttons.RepeatOneRepeatAllButton com.example.mike.mp3player.dagger.modules.PlaybackButtonsModule.repeatOneRepeatAllButton(android.content.Context, com.example.mike.mp3player.client.MediaControllerAdapter, @Named("main") android.os.Handler) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent]
  This condition was never validated before, and will soon be an error. See https://dagger.dev/conflicting-inject.
      com.example.mike.mp3player.client.views.buttons.RepeatOneRepeatAllButton is injected at
          com.example.mike.mp3player.client.views.fragments.MediaControlsFragment.setRepeatOneRepeatAllButton(repeatOneRepeatAllButton)
      com.example.mike.mp3player.client.views.fragments.MediaControlsFragment is injected at
          com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent.inject(com.example.mike.mp3player.client.views.fragments.MediaControlsFragment) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent]
Mp3Player\app\src\main\java\com\example\mike\mp3player\dagger\components\MediaActivityCompatComponent.java:39: warning: [Dagger/DuplicateBindings] com.example.mike.mp3player.client.views.buttons.ShuffleButton is bound multiple times:
public interface MediaActivityCompatComponent {
       ^
      @Inject com.example.mike.mp3player.client.views.buttons.ShuffleButton(android.content.Context, com.example.mike.mp3player.client.MediaControllerAdapter, @Named("main") android.os.Handler) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent]
      @Provides com.example.mike.mp3player.client.views.buttons.ShuffleButton com.example.mike.mp3player.dagger.modules.PlaybackButtonsModule.shuffleButton(android.content.Context, com.example.mike.mp3player.client.MediaControllerAdapter, @Named("main") android.os.Handler) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent]
  This condition was never validated before, and will soon be an error. See https://dagger.dev/conflicting-inject.
      com.example.mike.mp3player.client.views.buttons.ShuffleButton is injected at
          com.example.mike.mp3player.client.views.fragments.MediaControlsFragment.setShuffleButton(shuffleButton)
      com.example.mike.mp3player.client.views.fragments.MediaControlsFragment is injected at
          com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent.inject(com.example.mike.mp3player.client.views.fragments.MediaControlsFragment) [com.example.mike.mp3player.dagger.components.MediaActivityCompatComponent ? com.example.mike.mp3player.dagger.components.fragments.PlaybackButtonsSubComponent]
3 warnings

The following warning should be removed at compile time