Showkase Versions Save

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements

1.0.0-beta09

2 years ago

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

1.0.0-beta08

2 years ago

This release includes a simple change to add additional information for screenshot testing

  • Pass style information down for implementing screenshot test (#187)

1.0.0-beta07

2 years ago
  • Added the ability to specify if a Composable is a style of another Composable function. Created two new properties in the @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)
}
  • Improvements to screenshot testing code generation. This feature is still work in progress so I've intentionally not added documentation for this just yet but it should be coming soon!

1.0.0-beta06

2 years ago

Preliminary work for screenshot testing. Nothing should change for the end user of this library.

1.0.0-beta05

2 years ago

Upgraded Showkase to support Kotlin 1.5.30

1.0.0-beta04

2 years ago
  • Fixed bug where using a custom theme on the activity caused a crash with MDC adapter (#168)
  • Built against Compose 1.0.1 and Kotlin 1.5.21 (#166)

1.0.0-beta03

2 years ago
  • Make Showkase compatible with not including kapt on compile classpath (#162)
  • Added support for components with vertical scroll (#163)
  • Added functionality to allow skipping Previews (#164)

1.0.0-beta02

2 years ago
  • Adds support for the first stable Compose release - 1.0.0 🥳
  • Get rid of some unnecessary dependencies
  • Bug fix for Showkase crashing for some usecases where kapt is not included on the compile classpath (https://github.com/airbnb/Showkase/pull/160)

1.0.0-beta01

2 years ago

Adds support for 1.0.0-rc02

1.0.0-alpha12

2 years ago

Adds support for Compose 1.0.0-beta09