-
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.
removed unnecessary parameter in main API class
- Loading branch information
Showing
4 changed files
with
15 additions
and
10 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
7 changes: 3 additions & 4 deletions
7
app/coinLoreAPI/src/main/java/com/example/coinloreapi/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,13 +1,12 @@ | ||
package com.example.coinloreapi.di | ||
|
||
import com.example.coinloreapi.api.CoinLoreAPI | ||
import com.example.coinloreapi.repository.GlobalCoinRepository | ||
import org.koin.dsl.module | ||
|
||
val repositoryModule = module { | ||
single { provideGlobalCoinRepository(get()) } | ||
single { provideGlobalCoinRepository() } | ||
} | ||
|
||
fun provideGlobalCoinRepository(coinLoreAPI: CoinLoreAPI):GlobalCoinRepository{ | ||
return GlobalCoinRepository(coinLoreAPI) | ||
fun provideGlobalCoinRepository():GlobalCoinRepository{ | ||
return GlobalCoinRepository() | ||
} |
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