Created
January 4, 2022 16:53
-
-
Save ferPrieto/97c2c756839c88d2dd18b27efc55363d to your computer and use it in GitHub Desktop.
This is the simplified version of the NetworkModule, which will be replaced by the FakeNetworkModule in the Tests
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
@InstallIn(SingletonComponent::class) | |
@Module | |
open class NetworkModule { | |
open fun getBaseUrl () ="https://api.spacexdata.com/v3/" | |
@Provides | |
@BaseUrl | |
fun provideBaseUrl() = getBaseUrl () | |
// The rest of Builders, Factories, etc. are omitted for simplicity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment