Can I use hilt, navigation, etc the libraries norm...
# compose-desktop
c
Can I use hilt, navigation, etc the libraries normally used in android for desktop? If there's a demo app, it would be helpful.
m
You can't, those use Android specific APIs that are not avalible for desktop and other platforms. You can usually find multiplatform alternatives though. Like https://github.com/Syer10/voyager for navigation, this is my fork that adds iOS support and includes some bufgixes, the original also supports desktop. And https://github.com/evant/kotlin-inject for Dependency Injection, its more like raw Dagger then Hilt though, there also also service locators like Koin and Kodein that are multiplatform. Feel free to take a look at my application to see how I do things https://github.com/Suwayomi/Tachidesk-JUI/