From 9ad7349fcff64374fe9fa544c187e90611dec7f0 Mon Sep 17 00:00:00 2001 From: James Rich Date: Thu, 23 Apr 2026 08:09:37 -0500 Subject: [PATCH] fix(desktop): suppress Vico ColorScale ProGuard warnings Vico 3.2.0-next.1 ships ColorScaleShader/ColorScaleAreaFill/ColorScaleLineFill which reference CMP UI graphics members not present in compose-multiplatform 1.11.0-beta03 (LinearGradientShader-VjE6UOU$default on ShaderKt and Paint.setShader(org.jetbrains.skia.Shader)). ProGuard 7.7.0 aborts proguardReleaseJars with 'unresolved program class members' on every desktop release runner. We don't use the ColorScale APIs, so add targeted -dontwarn rules to let ProGuard finish. Remove once Vico ships against CMP 1.11 stable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- desktop/proguard-rules.pro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/desktop/proguard-rules.pro b/desktop/proguard-rules.pro index 280214b2ef..77ea4d6f27 100644 --- a/desktop/proguard-rules.pro +++ b/desktop/proguard-rules.pro @@ -69,3 +69,15 @@ -dontwarn kotlin.concurrent.atomics.** -dontwarn kotlin.uuid.UuidV7Generator + +# ---- Vico 3.2.0-next.1 ColorScale (CMP API drift) --------------------------- +# Vico's new ColorScale* classes (ColorScaleShader, ColorScaleAreaFill, +# ColorScaleLineFill) reference CMP UI graphics members that don't exist in +# compose-multiplatform 1.11.0-beta03 (LinearGradientShader-VjE6UOU$default +# on ShaderKt and Paint.setShader(org.jetbrains.skia.Shader)). We don't use +# the ColorScale APIs in this app, so suppress these warnings to let ProGuard +# proceed; otherwise it aborts with "unresolved program class members". +# Remove once Vico ships a release built against CMP 1.11 stable. +-dontwarn com.patrykandpatrick.vico.compose.cartesian.ColorScaleShader +-dontwarn com.patrykandpatrick.vico.compose.cartesian.layer.ColorScaleAreaFill +-dontwarn com.patrykandpatrick.vico.compose.cartesian.layer.ColorScaleLineFill