Skip to content

Instantly share code, notes, and snippets.

@ferPrieto
Created January 4, 2022 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferPrieto/97c2c756839c88d2dd18b27efc55363d to your computer and use it in GitHub Desktop.
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
@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