https://kotlinlang.org logo
w

william

10/30/2020, 12:21 PM
in my multiplaform module i have not been instantiating any objects and leaving it to the platforms to take care of it. on android its great, so I can use dagger with a little manual work. On iOS its a little awkward with things like
Copy code
let client = Ktor_client_coreHttpClient(engine: Ktor_client_coreHttpClientEngine, userConfig: <Ktor_client_coreHttpClientConfig<Ktor_client_coreHttpClientEngineConfig>>)
should i be putting more of this into the multiplatform module somehow? i would really like to not forego the use of dagger (with hilt) on android if possible