Created
September 14, 2024 03:45
-
-
Save fergdev/d6ceb8977ef4d97791c54dfbf1e8eee0 to your computer and use it in GitHub Desktop.
Koin Mobile Module
This file contains hidden or 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
// commonMain | |
expect val platformModule: Module | |
val sharedModule = module { | |
includes(platformModule) | |
} | |
// mobileMain | |
actual val platformModule = module { | |
singleOf(::DataRepository) { bind<IDataRepository>() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment