Menu

The update button couldn't deliver its own fix. And the newsroom had no lock on the door.
📰

The update button couldn't deliver its own fix. And the newsroom had no lock on the door.

DEV Community: android·Matthew Douglas·2 days ago
#1TUIS2Uh
#devtoandroid#devto#dev#build#newsroom
Long article (580 words) — no AI summary yet.
Reading 0:00
15s threshold

Two builds went out on Sunday evening. One added a screen. The other locked it — and fixed the button that was supposed to deliver both of them.

The screen is the Newsroom: a behind-the-scenes view inside the app, reached from a card at the top of the Portal. Latest edition, business videos, breaking stories, markets, and newsroom health, all in one place. It shipped as Build 37.

It almost didn't. The first build failed in CI with a compile error at NewsroomScreen.kt:442 : a theme-color helper called healthWordColor was reading two @Composable color getters without being @Composable itself. A static review of the same file had found nothing — the CI job log was the only source of truth. The fix was one line: put @Composable on the helper. All three call sites were already in @Composable context. CI went green on the next run, and Build 37 shipped the same evening.

Then he looked at it and set the rule for the next build: the Newsroom is behind-the-scenes. Nobody else should have that kind of access.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.