Skip to content

fix(deps): migrate Vico charting API from 2.x to 3.x#809

Merged
bmc08gt merged 3 commits into
dependabot/gradle/code/cash/com.patrykandpatrick.vico-compose-3.0.2from
fix/vico-3-migration
Jun 2, 2026
Merged

fix(deps): migrate Vico charting API from 2.x to 3.x#809
bmc08gt merged 3 commits into
dependabot/gradle/code/cash/com.patrykandpatrick.vico-compose-3.0.2from
fix/vico-3-migration

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 29, 2026

Summary

  • Adapts codebase to Vico 3.0 module restructuring (all vico.core imports → vico.compose)
  • Replaces removed/renamed APIs: fill()Fill(), ShaderProviderBrush, shapeComponentShapeComponent, LineStroke.continuousLineStroke.Continuous
  • Updates drawing code to use Compose Canvas.nativeCanvas for Android Paint operations
  • Fixes Fill.color type change (Int → Compose Color) and Insets property renames

Test plan

  • :apps:flipcash:features:tokens:compileDebugKotlin passes
  • Manual smoke test of market cap chart in tokens feature

Adapts to Vico 3.0 module restructuring:
- Update all vico.core imports to vico.compose package
- Replace fill() helper with Fill() constructor
- Replace LineStroke.continuous() with LineStroke.Continuous()
- Replace ShaderProvider with Compose Brush API
- Replace shapeComponent with ShapeComponent constructor
- Use Compose Canvas.nativeCanvas for Android Paint drawing
- Update Fill.color (now Compose Color) with .toArgb() for Paint
- Update Insets property names (startDp→start, topDp→top, etc.)
- Update Insets constructors from Float to Dp
- Use CircleShape instead of markerCorneredShape
- Replace rememberTextComponent color param with style TextStyle
- Replace model.extraStore with extraStore (MeasuringContext)
@bmc08gt bmc08gt requested a review from jeffyanta as a code owner May 29, 2026 22:49
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info labels May 29, 2026
@bmc08gt bmc08gt merged commit 1d054b5 into dependabot/gradle/code/cash/com.patrykandpatrick.vico-compose-3.0.2 Jun 2, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/vico-3-migration branch June 2, 2026 16:16
bmc08gt added a commit that referenced this pull request Jun 2, 2026
….2 (#619)

* build(deps): bump com.patrykandpatrick.vico:compose from 2.4.1 to 3.0.2

Bumps [com.patrykandpatrick.vico:compose](https://github.com/patrykandpatrick/vico) from 2.4.1 to 3.0.2.
- [Release notes](https://github.com/patrykandpatrick/vico/releases)
- [Commits](patrykandpatrick/vico@v2.4.1...v3.0.2)

---
updated-dependencies:
- dependency-name: com.patrykandpatrick.vico:compose
  dependency-version: 3.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(deps): migrate Vico charting API from 2.x to 3.x (#809)

Adapts to Vico 3.0 module restructuring:
- Update all vico.core imports to vico.compose package
- Replace fill() helper with Fill() constructor
- Replace LineStroke.continuous() with LineStroke.Continuous()
- Replace ShaderProvider with Compose Brush API
- Replace shapeComponent with ShapeComponent constructor
- Use Compose Canvas.nativeCanvas for Android Paint drawing
- Update Fill.color (now Compose Color) with .toArgb() for Paint
- Update Insets property names (startDp→start, topDp→top, etc.)
- Update Insets constructors from Float to Dp
- Use CircleShape instead of markerCorneredShape
- Replace rememberTextComponent color param with style TextStyle
- Replace model.extraStore with extraStore (MeasuringContext)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon McAnsh <git@bmcreations.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant