Dagger for Android and a manual service locator fo...
# kotlin-native
p
Dagger for Android and a manual service locator for iOS
u
means shared code has no notion of DI, only the implementing app?
p
Yes, yet the ios service locator is based in the iosMain module and the dagger module is implemented in main android app
u
How is that working for you? I'm toying with that idea. However often "module owner" knows best how to scope dependencies for a given module, and it kind of makes sense to have di module definitions in a given module, but it also limits reusability if you want to say change scope ..so..im not sure