From 35316092fd1597873561874ea6cad8801fb979e1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 2 Nov 2026 19:45:27 +0100 Subject: fix(ui-compose): tint the copy icon with the platform attribute ic_content_copy used AppCompat's ?attr/colorControlNormal, which ui:compose does not depend on, so building the module in release mode failed resource verification. ?android:attr/colorControlNormal is the same color under AppCompat themes and needs no dependency. A bare assembleRelease now passes; update AGENTS.md accordingly. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 ++--- ui/compose/src/main/res/drawable/ic_content_copy.xml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 4d6b4f88..a32bce1d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,9 +45,8 @@ that passes locally fails CI. Before committing, run: lint metalavaCheckCompatibilityRelease No product flavors: the app has no proprietary dependencies, no Sentry and no Play Services -(the upstream `nonFree` flavor was removed). Scope `assemble*` to `:app`; a bare -`assembleRelease` also verifies library modules in release mode, where `ui:compose` fails on a -drawable using an AppCompat attribute it does not depend on. +(the upstream `nonFree` flavor was removed). Scope `assemble*` to `:app`, which is all CI and +releases need; a bare `assembleRelease` also builds every library module. CI is `.github/workflows/pull_request.yml` (named "CI"), on push to `master`. Workflows use the `setup-gradle` composite action from this fork at `@master`. It checks the repository out diff --git a/ui/compose/src/main/res/drawable/ic_content_copy.xml b/ui/compose/src/main/res/drawable/ic_content_copy.xml index cdee1758..d2aafebf 100644 --- a/ui/compose/src/main/res/drawable/ic_content_copy.xml +++ b/ui/compose/src/main/res/drawable/ic_content_copy.xml @@ -6,7 +6,7 @@