SIGN IN SIGN UP

fix(android): Declare test-snapshots as task output for cache compatibility (#5396)

* fix(android): Declare test-snapshots as task output for cache compatibility

The screenshot snapshot PNGs written by ScreenshotEventProcessorTest are
not declared as outputs of testDebugUnitTest. When the task result comes
from the Gradle remote cache, the test code never runs and the directory
is never created, so sentry-cli finds an empty folder and uploads nothing.

Declaring the directory as a task output ensures Gradle caches and
restores the snapshots on cache hits.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Format code

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
N
Nelson Osacky committed
ae06e700a1ace0e5063d0dced160f25f2757bedb
Parent: 648fbf7
Committed by GitHub <noreply@github.com> on 5/11/2026, 7:15:05 AM