Skip to content

Instantly share code, notes, and snippets.

@ferPrieto
Created January 4, 2022 16:53
Embed
What would you like to do?
This is the simplified version of the NetworkModule, which will be replaced by the FakeNetworkModule in the Tests
@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