louiscad
08/20/2019, 12:24 PMUIPreView
directly into the main Views DSL
artifact for the debug build type, and provide an isInIdePreview
extension property for Ui
and View
that would be a constant evaluated to false
in release (so the unreachable branch is directly stripped by kotlinc, not even needing R8/Proguard).
Any thoughts about that? Would you want it?