{"id":1506,"kind":"story","title":"How to compare before and after Compose screen changes as images in a PR without Android Studio","url":"https://zenn.dev/syarihu/articles/0fc1c752ced34b","host":"zenn.dev","by":"startupxo","score":0,"comments":0,"time":"2026-12-02T06:43:36.630Z","origin":"curated","language":{"source":"ko","reading":"en","translated":true},"summary":["Turn Compose Previews of Android app screen code into PNG images with a single android CLI command. You do not need to launch a development tool or a device, and no build.gradle changes are required.","The rule of creating a preview for each screen state is written in the docs, and the PR writing skill is instructed to attach before and after images as a table. Then every time an AI agent creates a PR, the screen differences get posted.","The same code produces the same image, so only screens that changed by byte comparison go into the table. On the author's personal verification repository, capturing before and after took 16 to 21 seconds.","It cannot replace screenshot tests. It captures only the previews written in the changed files, and the only comparison target is the image at the merge-base point, so unintended screen changes can be missed."],"discussion":"https://startupxo.com/en/1506/","markdown":"https://startupxo.com/en/1506.md","api":"https://startupxo.com/api/v1/item.json?id=1506&lang=en","text":null,"edited":null,"sources":[{"site":"rss","name":"Zenn","url":"https://zenn.dev/syarihu/articles/0fc1c752ced34b","score":null,"comments":null,"observed_at":"2026-12-02T06:43:22Z"}],"thread":[]}