From cbf7d263c4e9b71cc95802c62a1f9a1f1a2b5fd7 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 23 Apr 2026 08:10:36 -0500 Subject: [PATCH] fix(desktop): suppress Vico ColorScale ProGuard warnings (#5232) 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 280214b2e..77ea4d6f2 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