Use <#CHJP9K00L|splitties>
# android
r
Use #splitties
âž• 1
g
Migrate manually from one library without preview to another library without preview when one of your main reasons for migration is lack of preview 🤔
l
@gildor Splitties Views DSL has preview, I'm even using it these days.
r
What? Splitties has preview, so I don’t get your point.
g
Which requires compilation
l
Compilation of my
ui
module (using the
compileKotlin
gradle task from IDE Gradle tool windows) is very fast after initial build thanks to incremental compilation and kapt-free plus java-free module. About 1-2, seconds, and preview refreshes automatically.
r
It’s basically as fast as XML preview for me. No difference.
g
What is ui module? Do you have whole UI or the app there?
l
I have the whole UI there, including xml resources. I then use it in 2 modules: - One is the actual app, with all kapt stuff and slow build. - Another is the test module (not to be confused with test sources), which is a lightweight app where I manipulate the UI and do other kind of tests. It's more of a playground that is an actual full fledged Android app, so I can test special entry points like services, broadcast receivers, and storage related stuff if needed, foreground services, sound, does that work on all devices, etc…