Christopher Porto
07/23/2021, 10:10 PMnwh
07/28/2021, 12:25 AMsingle<ServiceInterface> {
if (System.getenv("...") == ...) ServiceImpl1() else ServiceImpl2()
}
psh
08/18/2021, 8:31 PMBuildConfig
field in our Android code, then use it to optionally include different modules -
object NetworkingKoinConfig {
val modules = listOf(
apiErrorModule,
okHttpModule,
retrofitModule,
if(BuildConfig.NEW_FEATURE_ENABLED) updatedModule else oldModule
)
}
Then we aggregate together these various module lists to configure Koin.