🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
This release adds KSP support to Showkase. Thanks to @elihart for his fantastic contributions 👏
Based on some early analysis, we think that this will speed up the build times for Showkase by 70%!!! (https://github.com/airbnb/Showkase/pull/194)
In order to use Showkase with ksp, you will need to make the following changes to your Showkase setup in the build.gradle
file
+ plugins {
+ "com.google.devtools.ksp" version "$KSP_VERSION"
+ }
- kapt "com.airbnb.android:showkase-processor:1.0.0-beta09"
+ ksp "com.airbnb.android:showkase-processor:1.0.0-beta09"
In addition, you need to pass the following flag to the gradle command that you use to build/run - -PuseKsp=true
. Here's an example of what this would look like
./gradlew sample:clean sample:build -i -PuseKsp=true
This release includes a simple change to add additional information for screenshot testing
@ShowkaseComposable
annotation - styleName
& defaultStyle
. Here's how you'd use it.@ShowkaseComposable(group = "Chips", name = "BasicChip", defaultStyle = true)
@Composable
fun ChipPreview() {
Chip(isError = false)
}
@ShowkaseComposable(group = "Chips", name = "BasicChip", styleName = "Error")
@Composable
fun ChipErrorPreview() {
Chip(isError = true)
}
Preliminary work for screenshot testing. Nothing should change for the end user of this library.
Upgraded Showkase to support Kotlin 1.5.30
1.0.0
🥳Adds support for 1.0.0-rc02
Adds support for Compose 1.0.0-beta09