Keep the Showkase codegen constructor in the designsystem module

The rule only kept the class, but ShowkaseBrowserActivity instantiates it with
Class.forName(...).getDeclaredConstructor().newInstance(), so R8 was free to
strip the constructor. Also drop the AGP template comments and rename the file
to .keep, for consistency with app/proguard.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benoit Marty
2026-09-04 14:05:01 +02:00
parent fc519c7ddf
commit 230279566e
3 changed files with 6 additions and 24 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ android {
buildTypes {
getByName("release") {
consumerProguardFiles("consumer-rules.pro")
consumerProguardFiles("consumer-rules.keep")
}
}
}