Closed yoviekaputra closed 1 year ago
fixed in PR i think: https://github.com/airbnb/Showkase/issues/357
Hey,
Do you have a repo where I can reproduce this issue? :)
I saw in the PR above that you have used both @ShowkaseComposable
and @Preview
on the same composable. I don't know if that is the issue, but is there a use case that you need that? :)
Also, are you using KAPT or KSP with this library? :)
Hi @oas004 , thank you for your reply on this issue. I found the root cause of this issue, which is the Showkase did not support multiple preview annotations. btw, I implemented it like this:
@Preview("Light")
@Preview("Dark", uiMode = Configuration.UI_MODE_NIGHT_YES)
annotation class PreviewMultipleMode
@PreviewMultipleMode
@Composable
@ShowkaseComposable(name = "NestHeaderPreview", group = "NestHeader", skip = true)
fun ComponentPreview() {
...
}
when I build the project, such an error occurs
@yoviekaputra What do you mean that showcase did not support multiple previews? Are you using an old version of Showkase? :)
on no, i sill using version 1.0.0-beta18, i gonna upgrade the version, thank you @oas004
solved in latest version, thank you
Hi team, Thank you for making this library which is very helpful for me.
However, I would like to raise my findings regarding the message below:
Actually, I use this library for multimodule. Each module has created a ShowkaseRootModule and also enabled
skipPrivatePreviews
in the module's gradle. But when I tried to build this project I encountered the above error. anyone help me regarding that?