Kotlin multiplatform integration with gradle metad...
# splitties
l
Kotlin multiplatform integration with gradle metadata and Android Gradle Plugin now brings me the ability to have build type specific code in a published library. That opens the door to a new world of development and debugging facilities in libraries for devs of host apps to take advantage of. One thing I could do is bundle
UIPreView
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?
👍 1