Closed amadeuszblanik closed 1 year ago
Added implementation("com.rickclephas.kmm:kmm-viewmodel-core:1.0.0-ALPHA-12")
to my android Gradle and it worked 🎉
You might want to make the dependency an api
dependency in your shared
module:
- implementation("com.rickclephas.kmm:kmm-viewmodel-core:$kmmViewModelVersion")
+ api("com.rickclephas.kmm:kmm-viewmodel-core:$kmmViewModelVersion")
In which case the dependency isn't needed in the Android module.
You might want to make the dependency an
api
dependency in yourshared
module:- implementation("com.rickclephas.kmm:kmm-viewmodel-core:$kmmViewModelVersion") + api("com.rickclephas.kmm:kmm-viewmodel-core:$kmmViewModelVersion")
In which case the dependency isn't needed in the Android module.
This works perfectly for me! Your library is a beautifully crafted piece of work. I hope it continues to grow. I've created some samples using ktor.io. If they're helpful to you, please feel free to use them: https://github.com/amadeuszblanik/kmm-samples/tree/main.
I cannot implement ViewModel on Android. iOS works fine. Tried it on ALPHA-12 and ALPHA-10.
Error
Shared gradle
Android Implementation:
Kotlin Shared: