'Is using AndroidX classes in ViewModel and Repository classes viable in a Clean Architecture Kotlin-Multiplatform Project?
I don't have a multiplatform application right now but I'd like to structure it in a way that would make it easy to turn it into one.
I have a Fragment/View which can use all Androidx/Android classes. And I have a ViewModel and Repositories where I want to use the Paging3 library but it's from the Androidx package.
If I want them to be portable, do I have to use only my own classes and things available in Kotlin? (Like FlowState and other coroutines.)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
