diff --git a/libraries/designsystem/build.gradle.kts b/libraries/designsystem/build.gradle.kts index c6c1836a23..8ffdb17cdd 100644 --- a/libraries/designsystem/build.gradle.kts +++ b/libraries/designsystem/build.gradle.kts @@ -27,6 +27,13 @@ android { buildConfig = true } + buildTypes { + getByName("release") { + isMinifyEnabled = true + consumerProguardFiles("proguard-rules.pro") + } + } + dependencies { api(projects.libraries.theme) // Should not be there, but this is a POC diff --git a/libraries/designsystem/proguard-rules.pro b/libraries/designsystem/proguard-rules.pro index ff59496d81..dabf5661a4 100644 --- a/libraries/designsystem/proguard-rules.pro +++ b/libraries/designsystem/proguard-rules.pro @@ -18,4 +18,6 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +-keep class io.element.android.libraries.designsystem.showkase.DesignSystemShowkaseRootModuleCodegen { }