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