Closed yev-kanivets closed 4 years ago
This template can be very handy for you: https://github.com/touchlab/KaMPKit
@bogdan-evtushenko I've done first 2 steps, now it's your turn 😉
@bogdan-evtushenko you can split this task into multiple PRs.
Some issues I met while developing:
1) Schema still underlined in red from this part of code:
private fun initDatabase() { sqlDriver = AndroidSqliteDriver(CWDatabase.Schema, app.applicationContext, "database") }
2) When I cmd + click on place where DatabaseQueries object using, then I see some java code, instead of my one. Also when I change something in this object, I need to clean and build project, then I can see new functions, that I add.
@bogdan-evtushenko both issue should be resolved now.
We are going to share the business logic, networking and database between iOS and Android. The first step will be extracting it all (and changing along the way) code from Android module to KMP module.
common
module (setup Gradle).common
module.common
module by changing Room to SQLDelight.common
module by changing Retrofit to Ktor.common
module.Check this list for other KMP libraries, but make sure they are good, stable and supported enough before using them.