Skip to content

fix(desktop): suppress Vico ColorScale ProGuard warnings#5232

Merged
jamesarich merged 1 commit intomainfrom
fix/desktop-vico-colorscale-dontwarn
Apr 23, 2026
Merged

fix(desktop): suppress Vico ColorScale ProGuard warnings#5232
jamesarich merged 1 commit intomainfrom
fix/desktop-vico-colorscale-dontwarn

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

Desktop release builds (all 4 OS runners) have been failing on :desktop:proguardReleaseJars since Vico 3.2.0-next.1 (#5191).

Vico's new ColorScaleShader, ColorScaleAreaFill, and ColorScaleLineFill reference CMP UI graphics members that don't exist in compose-multiplatform 1.11.0-beta03:

  • androidx.compose.ui.graphics.ShaderKt.LinearGradientShader-VjE6UOU$default(...)
  • androidx.compose.ui.graphics.Paint.setShader(org.jetbrains.skia.Shader)

ProGuard 7.7.0 aborts with "unresolved program class members". We don't use those APIs, so suppress the warnings with targeted -dontwarn rules.

Verified locally: ./gradlew :desktop:proguardReleaseJars now succeeds.

Failing run: https://github.com/meshtastic/Meshtastic-Android/actions/runs/24834405448

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>
@github-actions github-actions Bot added the bugfix PR tag label Apr 23, 2026
@jamesarich jamesarich merged commit cbf7d26 into main Apr 23, 2026
6 checks passed
@jamesarich jamesarich deleted the fix/desktop-vico-colorscale-dontwarn branch April 23, 2026 13:10
Copilot AI pushed a commit that referenced this pull request Apr 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant