https://kotlinlang.org logo
Title
e

esdrasdl

04/04/2023, 6:34 PM
Hi guys. In our Design System lib we created a multi preview annotation to use in our main app and other modules.
@Preview(showSystemUi = true, showBackground = true, device = Devices.PHONE)
@Preview(showSystemUi = true, showBackground = true, device = Devices.NEXUS_7_2013)
@Preview(showSystemUi = true, showBackground = true, device = Devices.NEXUS_5)
annotation class DevicePreviews
It works like a charm inside of DS project. But it doesn’t work in our main app. The Android Studios doesn’t render any preview with this annotation. We are using compose bom
2023.01.00
in both main app and design system lib. Is it a bug or did I miss something to make it work?
c

Colton Idle

04/04/2023, 6:45 PM
what AS version? if you upgrade to latest giraffe... does the problem go away?
e

esdrasdl

04/04/2023, 6:51 PM
Doesn’t work, I tested with Giraffe Canary 11 and Flamingo Beta 5