mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 02:36:12 -04:00
chore(screenshots): Commit only English Play Store screenshots
Only en-US screenshots are tracked from now on. The other 67 locales are generated on demand and gitignored, which drops 35 PNGs and roughly 5 MB from the repository and stops every screenshot refresh from churning binaries in five languages nobody reviews. Play Store still gets the full 68 locales. supply only uploads what is present under fastlane/metadata/android/<locale>/images/phoneScreenshots/ and retains whatever was last pushed for locales absent from an upload, so localization is maintained by an occasional manual regen plus screenshots_only rather than by every PR. PlayStoreLocales.kt had been committed since February holding a truncated four-locale batch slice, left behind when a run was killed before its EXIT trap restored the file. The next run then copied that slice over its own backup and faithfully restored the corruption, which is why the remnant survived six months. It is replaced with a documented en-US placeholder, the generator no longer emits an annotation nothing references, and the script now refuses to start when a stale .bak is present instead of clobbering the only good copy. The refresh runbook is corrected as well: it ended with a checkout that restores tracked files from the index, which would have reverted the freshly rendered English screenshots while the store received them, and its upload step is now gated so a failed upload leaves them staged for a retry rather than committed as though deployed.
This commit is contained in:
@@ -4,26 +4,17 @@ import android.content.res.Configuration
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
|
||||
/**
|
||||
* Multi-preview annotation generating one preview per Play Store-supported locale (light mode).
|
||||
* Each [name] is the fastlane metadata directory name for direct use in the copy script.
|
||||
* Placeholder locale set. `fastlane/generate_screenshots.sh` rewrites this file per batch and
|
||||
* restores it afterwards, so the committed content only decides what a bare
|
||||
* `./gradlew updateGplayDebugScreenshotTest` renders.
|
||||
*
|
||||
* [name] is the fastlane metadata directory the copy script sorts the output into.
|
||||
*/
|
||||
@Preview(locale = "en", name = "en-US", device = DS)
|
||||
@Preview(locale = "af", name = "af", device = DS)
|
||||
@Preview(locale = "am", name = "am", device = DS)
|
||||
@Preview(locale = "ar", name = "ar", device = DS)
|
||||
annotation class PlayStoreLocales
|
||||
|
||||
/**
|
||||
* Same locales but with night mode enabled for dark theme screenshots.
|
||||
*/
|
||||
@Preview(locale = "en", name = "en-US", device = DS, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(locale = "af", name = "af", device = DS, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(locale = "am", name = "am", device = DS, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
@Preview(locale = "ar", name = "ar", device = DS, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||
annotation class PlayStoreLocalesDark
|
||||
|
||||
/**
|
||||
* Smoke test subset for fast iteration (6 locales covering LTR, RTL, CJK).
|
||||
*/
|
||||
@Preview(locale = "en", name = "en-US", device = DS)
|
||||
annotation class PlayStoreLocalesSmoke
|
||||
|
||||
Reference in New Issue
Block a user