How can I prepare a Jetpack compose app to release, what about the @Preview composables?

Viewed 852

The source code of my Jetpack compose app is loaded with @Preview composables.

I prepared my app for release by removing all these @Preview composables from the source code, as we do, for example, with the log methods.

Is there any way to automate this removal process? More, is it really necessary to remove the @Preview composables from the source code?

Thanks,

1 Answers

If you use ProGuard it will remove the preview composables as they are not used in your code base.

Related