airbnb / Showkase

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
https://medium.com/airbnb-engineering/introducing-showkase-a-library-to-organize-discover-and-visualize-your-jetpack-compose-elements-d5c34ef01095
Apache License 2.0
2.13k stars 107 forks source link

Adding showcase as debugImplementation breaks the release build #396

Open Kshitij09 opened 1 month ago

Kshitij09 commented 1 month ago

When we add showcase dependency as mentioned in the README

debugImplementation "com.airbnb.android:showkase:1.0.3"

and we would want to assign click action to launch showkase browser activity only in the debug build, current setup breaks the release build as the object Showkase won't be available.

We can either create no-op showcase module for releaseImplementation or split the code between debug & release source sets to make above dependency as implementation. Happy to raise a PR with suitable approach!