Skip to content

Commit cbf7d26

Browse files
jamesarichCopilot
andauthored
fix(desktop): suppress Vico ColorScale ProGuard warnings (#5232)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2dcf01a commit cbf7d26

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

desktop/proguard-rules.pro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,15 @@
6969

7070
-dontwarn kotlin.concurrent.atomics.**
7171
-dontwarn kotlin.uuid.UuidV7Generator
72+
73+
# ---- Vico 3.2.0-next.1 ColorScale (CMP API drift) ---------------------------
74+
# Vico's new ColorScale* classes (ColorScaleShader, ColorScaleAreaFill,
75+
# ColorScaleLineFill) reference CMP UI graphics members that don't exist in
76+
# compose-multiplatform 1.11.0-beta03 (LinearGradientShader-VjE6UOU$default
77+
# on ShaderKt and Paint.setShader(org.jetbrains.skia.Shader)). We don't use
78+
# the ColorScale APIs in this app, so suppress these warnings to let ProGuard
79+
# proceed; otherwise it aborts with "unresolved program class members".
80+
# Remove once Vico ships a release built against CMP 1.11 stable.
81+
-dontwarn com.patrykandpatrick.vico.compose.cartesian.ColorScaleShader
82+
-dontwarn com.patrykandpatrick.vico.compose.cartesian.layer.ColorScaleAreaFill
83+
-dontwarn com.patrykandpatrick.vico.compose.cartesian.layer.ColorScaleLineFill

0 commit comments

Comments
 (0)