- Lucas' Newsletter
- Posts
- Daily Dispatch #7 - We march on with KodeIN-DI
Daily Dispatch #7 - We march on with KodeIN-DI
![](https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/1a950957-6424-44e7-9832-75bd171742d2/pexels-photo-239548.jpeg?t=1722263370)
We start the day late, with the errors of yesterday.
e: This version (1.0.0-beta09) of the Compose Compiler requires Kotlin version 1.5.10 but you appear to be using Kotlin version 1.6.0 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck but don’t say I didn’t warn you!).
All I needed to to was update compose to a version that was compatible with kotlin 1.6.10.
After we replace completely the dependencies for DI from koin to KodeIN-DI, we will go towards mocking.
Koin to KodeIN-DI
Now we have:
Crap, I thought it would be that easy. But it’s not being.
I already added an android kodein library, and a composer-kodein library as well, as the project I’m messing about has jetpack compose.
For some reason that I can’t yet grasp, I can build the project, but it doesn’t change screens or show other values that existed on the Room database.
Now I had to do a few new things.
Also my App composable class became
Which I call using
The app doesn’t show up the side bar menu, but it creates the test database, so the dependency injection is working.