Remove Showkase from the project.

This commit is contained in:
Benoit Marty
2026-09-09 15:56:25 +02:00
parent 8e1a34cff8
commit 1ee156f480
20 changed files with 7 additions and 152 deletions
-10
View File
@@ -10,7 +10,6 @@ import extension.testCommonDependencies
plugins {
id("io.element.android-compose-library")
alias(libs.plugins.ksp)
id("kotlin-parcelize")
}
@@ -20,12 +19,6 @@ android {
buildFeatures {
buildConfig = true
}
buildTypes {
getByName("release") {
consumerProguardFiles("consumer-rules.keep")
}
}
}
dependencies {
@@ -43,8 +36,5 @@ dependencies {
implementation(projects.libraries.testtags)
implementation(projects.libraries.uiStrings)
ksp(libs.showkase.processor)
implementation(libs.showkase)
testCommonDependencies(libs)
}
@@ -1,5 +0,0 @@
# Showkase generates this class, and Showkase's ShowkaseBrowserActivity loads it reflectively with
# Class.forName(...).getDeclaredConstructor().newInstance(), so its constructor must be kept too.
-keep class io.element.android.libraries.designsystem.showkase.DesignSystemShowkaseRootModuleCodegen {
<init>();
}
@@ -14,8 +14,8 @@ import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.Density
/**
* Showkase does not take into account the `fontScale` parameter of the Preview annotation, so alter the
* LocalDensity in the CompositionLocalProvider.
* Render the content at the given font scale, by altering the `LocalDensity` in the
* CompositionLocalProvider. Useful to preview a Composable at several font scales.
*/
@Composable
fun WithFontScale(fontScale: Float, content: @Composable () -> Unit) {
@@ -1,15 +0,0 @@
/*
* Copyright (c) 2025 Element Creations Ltd.
* Copyright 2022-2025 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.libraries.designsystem.showkase
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
class DesignSystemShowkaseRootModule : ShowkaseRootModule