Android: keep Compose out of core/ (ActivitySeries.color) #332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
core/is meant to hold the plain types the screens are given, withStreamSessionthe only place that calls the bindings.core/Activity.ktimportsandroidx.compose.ui.graphics.ColorforActivitySeries.color, andStreamSessionbuilds ComposeColors while it converts an activity report.This makes the session and its JVM unit tests depend on Compose UI.
Proposal
#RRGGBBstring the bindings give (or anInt), the wayConfiguring.palette/coloralready does for the form.Colorinui/(Activity.kt,ActivityChart.kt).core/Activity.ktinto the style of the other core files: one record per line block, with documentation. The default methods ofActivitiesthat return "Unavailable" failures exist only so test fakes compile; drop them and give the fakes what they need.Found in a review of the Android app.