Commit ae06e70
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>1 parent 648fbf7 commit ae06e70
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
0 commit comments