-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from toquete/dependency_inversion
Dependency inversion
- Loading branch information
Showing
73 changed files
with
118 additions
and
124 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
app/src/main/java/com/toquete/boxbox/worker/repository/DefaultImagesRepository.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
10 changes: 5 additions & 5 deletions
10
app/src/main/java/com/toquete/boxbox/worker/repository/DefaultStandingsRepository.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
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
8 changes: 4 additions & 4 deletions
8
app/src/test/java/com/toquete/boxbox/worker/repository/DefaultImagesRepositoryTest.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
10 changes: 5 additions & 5 deletions
10
app/src/test/java/com/toquete/boxbox/worker/repository/DefaultStandingsRepositoryTest.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
2 changes: 1 addition & 1 deletion
2
app/src/test/java/com/toquete/boxbox/worker/repository/DefaultSyncRepositoryTest.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
2 changes: 1 addition & 1 deletion
2
core/common/src/main/java/com/toquete/boxbox/core/common/util/Syncable.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,6 +1,6 @@ | ||
package com.toquete.boxbox.core.common.util | ||
|
||
interface Syncable { | ||
fun interface Syncable { | ||
|
||
suspend fun sync() | ||
} |
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
6 changes: 3 additions & 3 deletions
6
.../circuitimages/src/main/java/com/toquete/boxbox/data/circuitimages/di/RepositoryModule.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,18 +1,18 @@ | ||
package com.toquete.boxbox.data.circuitimages.di | ||
|
||
import com.toquete.boxbox.data.circuitimages.repository.CircuitImageRepository | ||
import com.toquete.boxbox.data.circuitimages.repository.DefaultCircuitImageRepository | ||
import com.toquete.boxbox.domain.repository.CircuitImageRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal abstract class RepositoryModule { | ||
internal fun interface RepositoryModule { | ||
|
||
@Binds | ||
abstract fun bindCircuitImageRepository( | ||
fun bindCircuitImageRepository( | ||
repository: DefaultCircuitImageRepository | ||
): CircuitImageRepository | ||
} |
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
6 changes: 3 additions & 3 deletions
6
...ctorcolors/src/main/java/com/toquete/boxbox/data/constructorcolors/di/RepositoryModule.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,18 +1,18 @@ | ||
package com.toquete.boxbox.data.constructorcolors.di | ||
|
||
import com.toquete.boxbox.data.constructorcolors.repository.ConstructorColorRepository | ||
import com.toquete.boxbox.data.constructorcolors.repository.DefaultConstructorColorRepository | ||
import com.toquete.boxbox.domain.repository.ConstructorColorRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal abstract class RepositoryModule { | ||
internal fun interface RepositoryModule { | ||
|
||
@Binds | ||
abstract fun bindConstructorColorRepository( | ||
fun bindConstructorColorRepository( | ||
defaultConstructorColorRepository: DefaultConstructorColorRepository | ||
): ConstructorColorRepository | ||
} |
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
6 changes: 3 additions & 3 deletions
6
...ctorimages/src/main/java/com/toquete/boxbox/data/constructorimages/di/RepositoryModule.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,18 +1,18 @@ | ||
package com.toquete.boxbox.data.constructorimages.di | ||
|
||
import com.toquete.boxbox.data.constructorimages.repository.ConstructorImageRepository | ||
import com.toquete.boxbox.data.constructorimages.repository.DefaultConstructorImageRepository | ||
import com.toquete.boxbox.domain.repository.ConstructorImageRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal abstract class RepositoryModule { | ||
internal fun interface RepositoryModule { | ||
|
||
@Binds | ||
abstract fun bindsConstructorImageRepository( | ||
fun bindsConstructorImageRepository( | ||
repository: DefaultConstructorImageRepository | ||
): ConstructorImageRepository | ||
} |
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
6 changes: 3 additions & 3 deletions
6
...andings/src/main/java/com/toquete/boxbox/data/constructorstandings/di/RepositoryModule.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,18 +1,18 @@ | ||
package com.toquete.boxbox.data.constructorstandings.di | ||
|
||
import com.toquete.boxbox.data.constructorstandings.repository.ConstructorStandingsRepository | ||
import com.toquete.boxbox.data.constructorstandings.repository.DefaultConstructorStandingsRepository | ||
import com.toquete.boxbox.domain.repository.ConstructorStandingsRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal abstract class RepositoryModule { | ||
internal fun interface RepositoryModule { | ||
|
||
@Binds | ||
abstract fun bindsFullConstructorStandingsRepository( | ||
fun bindsFullConstructorStandingsRepository( | ||
repositoryImpl: DefaultConstructorStandingsRepository | ||
): ConstructorStandingsRepository | ||
} |
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
6 changes: 3 additions & 3 deletions
6
data/countries/src/main/java/com/toquete/boxbox/data/countries/di/RepositoryModule.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,18 +1,18 @@ | ||
package com.toquete.boxbox.data.countries.di | ||
|
||
import com.toquete.boxbox.data.countries.repository.CountryRepository | ||
import com.toquete.boxbox.data.countries.repository.DefaultCountryRepository | ||
import com.toquete.boxbox.domain.repository.CountryRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
internal abstract class RepositoryModule { | ||
internal fun interface RepositoryModule { | ||
|
||
@Binds | ||
abstract fun bindsCountryRepository( | ||
fun bindsCountryRepository( | ||
repository: DefaultCountryRepository | ||
): CountryRepository | ||
} |
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
Oops, something went wrong.