Describe the bug
Hello, I noticed there are a bunch of preview composables that got packaged in the final APK on an Android app that is using purchases-kmp.
I added a rule in proguard to validate that there are no previews being kept
# Ensure all Previews have been stripped https://issuetracker.google.com/issues/157891235#comment6
-checkdiscard class * { @androidx.compose.ui.tooling.preview.Preview <methods>; }
-keepclassmembers,allowshrinking class * { @androidx.compose.ui.tooling.preview.Preview <methods>; }
And there are a lot of previews kept when you assemble a release build:
https://gist.github.com/kevinguitar/53bb31d72b3c23f776455635cd8bb90f
Some environmental information:
- Platform: Android
- SDK version: 3.0.3
- IDE: Android Studio
- IDE version: Quail 1 | 2026.1.1
Describe the bug
Hello, I noticed there are a bunch of preview composables that got packaged in the final APK on an Android app that is using purchases-kmp.
I added a rule in proguard to validate that there are no previews being kept
And there are a lot of previews kept when you assemble a release build:
https://gist.github.com/kevinguitar/53bb31d72b3c23f776455635cd8bb90f
Some environmental information: