`@Preview` inside shared KMP module `androidMain` ...
# multiplatform
m
@Preview
inside shared KMP module
androidMain
doesn’t work. plugin problem? I tried to do a workaround for
@Preview
not working inside
commonMain
by putting it inside
androidMain
j
Did you add compose build features and compose kotlin version to Android block?
t
I put the preview in any Android app that uses the shared CMP module, and that works for me...
j
Yeah it works but need add all deps (uitooling and preview) needed into androidMain but also in Android Gradle block enable compose build feature.
m
Did you add compose build features and compose kotlin version to Android block?
yes
for now it just works in pure dedicated Android module. same setup
140 Views