Skip to content

Commit

Permalink
Remove unnecessary module declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardsurfer authored and florina-muntenescu committed Oct 11, 2018
1 parent 618e0ee commit d5e7025
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
22 changes: 0 additions & 22 deletions core/src/main/java/io/plaidapp/core/dagger/DataManagerComponent.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package io.plaidapp.core.dagger

import dagger.Module
import dagger.Provides
import io.plaidapp.core.dagger.dribbble.DribbleSearchServiceProvider
import io.plaidapp.core.dagger.dribbble.DribbbleSearchServiceModule
import io.plaidapp.core.data.CoroutinesContextProvider
import io.plaidapp.core.dribbble.data.ShotsRepository
import io.plaidapp.core.dribbble.data.search.SearchRemoteDataSource
Expand All @@ -28,7 +28,7 @@ import io.plaidapp.core.dribbble.data.search.SearchRemoteDataSource
*
* TODO: make this an app wide singleton.
*/
@Module(includes = [CoroutinesContextProviderModule::class, DribbleSearchServiceProvider::class])
@Module(includes = [CoroutinesContextProviderModule::class, DribbbleSearchServiceModule::class])
class ShotsRepositoryModule {

@Provides fun provideShotsRepository(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ import dagger.Provides
import io.plaidapp.core.dribbble.data.search.DribbbleSearchService
import io.plaidapp.core.dribbble.data.search.SearchRemoteDataSource

/**
* Module to provide [DribbbleSearchService].
*/
@Module(includes = [DribbbleDataModule::class])
class DribbleSearchServiceProvider {
class DribbbleSearchServiceModule {

@Provides fun provideDribbbleSearchService(dribbbleSearchService: DribbbleSearchService) =
SearchRemoteDataSource.getInstance(dribbbleSearchService)
Expand Down

0 comments on commit d5e7025

Please sign in to comment.