store-shots 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- store_shots-1.0.0/PKG-INFO +383 -0
- store_shots-1.0.0/README.md +368 -0
- store_shots-1.0.0/pyproject.toml +42 -0
- store_shots-1.0.0/setup.cfg +4 -0
- store_shots-1.0.0/store_shots/__init__.py +86 -0
- store_shots-1.0.0/store_shots/__main__.py +3 -0
- store_shots-1.0.0/store_shots/cli/__init__.py +6 -0
- store_shots-1.0.0/store_shots/cli/app.py +232 -0
- store_shots-1.0.0/store_shots/cli/presentation.py +45 -0
- store_shots-1.0.0/store_shots/client.py +135 -0
- store_shots-1.0.0/store_shots/common.py +5 -0
- store_shots-1.0.0/store_shots/config/__init__.py +5 -0
- store_shots-1.0.0/store_shots/config/settings.py +178 -0
- store_shots-1.0.0/store_shots/core/__init__.py +16 -0
- store_shots-1.0.0/store_shots/core/models.py +85 -0
- store_shots-1.0.0/store_shots/core/protocols.py +66 -0
- store_shots-1.0.0/store_shots/flows.py +200 -0
- store_shots-1.0.0/store_shots/infrastructure/__init__.py +16 -0
- store_shots-1.0.0/store_shots/infrastructure/checker.py +56 -0
- store_shots-1.0.0/store_shots/infrastructure/progress.py +132 -0
- store_shots-1.0.0/store_shots/infrastructure/storage.py +100 -0
- store_shots-1.0.0/store_shots/infrastructure/validation.py +110 -0
- store_shots-1.0.0/store_shots/infrastructure/waits.py +161 -0
- store_shots-1.0.0/store_shots/platforms/__init__.py +80 -0
- store_shots-1.0.0/store_shots/platforms/amazon.py +48 -0
- store_shots-1.0.0/store_shots/platforms/appstore.py +60 -0
- store_shots-1.0.0/store_shots/platforms/playstore.py +165 -0
- store_shots-1.0.0/store_shots/profiles.py +39 -0
- store_shots-1.0.0/store_shots/py.typed +0 -0
- store_shots-1.0.0/store_shots/routes.py +412 -0
- store_shots-1.0.0/store_shots/services/__init__.py +14 -0
- store_shots-1.0.0/store_shots/services/capture.py +217 -0
- store_shots-1.0.0/store_shots/services/discovery.py +92 -0
- store_shots-1.0.0/store_shots/services/orchestration.py +312 -0
- store_shots-1.0.0/store_shots/services/settling.py +28 -0
- store_shots-1.0.0/store_shots/settings.py +5 -0
- store_shots-1.0.0/store_shots/version.py +3 -0
- store_shots-1.0.0/store_shots.egg-info/PKG-INFO +383 -0
- store_shots-1.0.0/store_shots.egg-info/SOURCES.txt +49 -0
- store_shots-1.0.0/store_shots.egg-info/dependency_links.txt +1 -0
- store_shots-1.0.0/store_shots.egg-info/entry_points.txt +2 -0
- store_shots-1.0.0/store_shots.egg-info/requires.txt +7 -0
- store_shots-1.0.0/store_shots.egg-info/top_level.txt +1 -0
- store_shots-1.0.0/tests/test_checker.py +43 -0
- store_shots-1.0.0/tests/test_models.py +28 -0
- store_shots-1.0.0/tests/test_progress.py +22 -0
- store_shots-1.0.0/tests/test_routes.py +24 -0
- store_shots-1.0.0/tests/test_services.py +41 -0
- store_shots-1.0.0/tests/test_settings.py +62 -0
- store_shots-1.0.0/tests/test_storage.py +35 -0
- store_shots-1.0.0/tests/test_validation.py +35 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: store-shots
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Capture an Expo web app at each store's required screenshot sizes and organize images into platform-specific folder trees.
|
|
5
|
+
Author-email: Satyam Singh <satyamsingh7734@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: playwright>=1.55
|
|
10
|
+
Requires-Dist: Pillow>=11.0
|
|
11
|
+
Requires-Dist: alive-progress>=3.3
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
14
|
+
Requires-Dist: ruff>=0.9; extra == "dev"
|
|
15
|
+
|
|
16
|
+
# store-shots
|
|
17
|
+
|
|
18
|
+
[](https://github.com/SatyamSingh8306/store-shots/actions/workflows/ci.yml)
|
|
19
|
+
|
|
20
|
+
A Python library + CLI that connects to a running **Expo web dev server**, discovers every screen automatically (following links **and** clicking buttons/tabs), screenshots each screen at the required sizes for **multiple app stores**, and saves the images in the correct folder structure for each platform.
|
|
21
|
+
|
|
22
|
+
**Author:** Satyam Singh · <satyamsingh7734@gmail.com>
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from store_shots import ExpoShotter
|
|
26
|
+
|
|
27
|
+
shotter = ExpoShotter(
|
|
28
|
+
host="127.0.0.1", # Expo web host
|
|
29
|
+
port=19006, # Expo web port
|
|
30
|
+
output_dir="./store-assets",
|
|
31
|
+
platforms=["playstore", "appstore"],
|
|
32
|
+
)
|
|
33
|
+
summary = shotter.run()
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Built-in presets: **Google Play**, **Apple App Store**, **Amazon Appstore** — plus custom `PlatformSpec` objects for any other store.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Requirements
|
|
41
|
+
|
|
42
|
+
- Python 3.10+
|
|
43
|
+
- Expo project with web support: `npx expo start --web`
|
|
44
|
+
- Playwright Chromium (installed once)
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install -e .
|
|
48
|
+
python -m playwright install chromium
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
> Expo Go is a native host with no HTTP page a browser can capture. This tool targets the **web build of the same Expo project** (`expo start --web`), which is why it only needs `host` + `port`.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Development
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install -e ".[dev]"
|
|
59
|
+
python -m pytest -q
|
|
60
|
+
python -m ruff check store_shots tests
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
CI runs `ruff check` and `pytest` on pushes and pull requests to `main`, across Python 3.10–3.13. See `.github/workflows/ci.yml`.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Architecture
|
|
68
|
+
|
|
69
|
+
The package is organized into folders by responsibility and uses protocols so each layer can be replaced or tested independently:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
store_shots/
|
|
73
|
+
├── client.py # thin ExpoShotter facade
|
|
74
|
+
├── flows.py # replayable interaction steps
|
|
75
|
+
├── profiles.py # target iteration
|
|
76
|
+
├── routes.py # link/button screen crawler
|
|
77
|
+
├── version.py
|
|
78
|
+
├── core/ # models.py (data classes), protocols.py (interfaces)
|
|
79
|
+
├── config/ # settings.py (validated Settings + build_settings)
|
|
80
|
+
├── services/ # settling.py, discovery.py, capture.py, orchestration.py
|
|
81
|
+
├── infrastructure/ # storage.py, validation.py, waits.py, progress.py, checker.py
|
|
82
|
+
├── cli/ # app.py (parser/dispatch), presentation.py (output)
|
|
83
|
+
└── platforms/ # playstore.py, appstore.py, amazon.py
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`store_shots.common` and `store_shots.settings` remain as compatibility shims. `ExpoShotter` keeps its original constructor and public attributes, but no longer contains orchestration logic. You can use the services directly with your own implementations by satisfying the protocols in `store_shots.core.protocols`.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## CLI
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
store-shots --host 127.0.0.1 --port 19006 --output-dir ./store-assets
|
|
94
|
+
# or
|
|
95
|
+
python -m store_shots --host 127.0.0.1 --port 19006 --output-dir ./store-assets
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Common options:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# List all built-in platform presets and their sizes
|
|
102
|
+
store-shots --list-platforms
|
|
103
|
+
|
|
104
|
+
# Pick platforms
|
|
105
|
+
store-shots --platform playstore --platform appstore
|
|
106
|
+
store-shots --platform appstore --device iphone-63 --recommended-only
|
|
107
|
+
|
|
108
|
+
# Preview screens + targets without taking screenshots
|
|
109
|
+
store-shots --dry-run
|
|
110
|
+
|
|
111
|
+
# Verify generated images against the required dimensions
|
|
112
|
+
store-shots --check --output-dir ./store-assets
|
|
113
|
+
|
|
114
|
+
# How many screenshots to capture per device/variant
|
|
115
|
+
store-shots --screens 6 # exactly 6 (sets min and max)
|
|
116
|
+
store-shots --min-screenshots 4 --max-screenshots 8
|
|
117
|
+
|
|
118
|
+
# Screen discovery: links + buttons/tabs (default), or links only
|
|
119
|
+
store-shots --max-routes 30 --max-depth 4 --max-actions 32
|
|
120
|
+
store-shots --no-click-buttons
|
|
121
|
+
|
|
122
|
+
# Explicit routes instead of discovery
|
|
123
|
+
store-shots --route / --route /settings --route /profile
|
|
124
|
+
|
|
125
|
+
# Discovery/wait tuning
|
|
126
|
+
store-shots --exclude /debug --wait-ms 1200
|
|
127
|
+
store-shots --wait-for-selector '[data-testid="app-ready"]'
|
|
128
|
+
store-shots --no-wait-for-loading
|
|
129
|
+
|
|
130
|
+
# Visible browser, overwrite existing images
|
|
131
|
+
store-shots --headed --overwrite
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Run `store-shots --help` for the full option list.
|
|
135
|
+
|
|
136
|
+
### Progress display
|
|
137
|
+
|
|
138
|
+
The CLI reports stages as it works, for example `[..] discovering screens`, `[..] phone/portrait: 1/2 home`, and `[..] playstore: writing manifest`. When output is redirected (logs, CI) it prints one plain line per stage.
|
|
139
|
+
|
|
140
|
+
In a real terminal the current stage animates in place using **alive-progress** (installed as a required dependency). The bar advances once per captured image and shows rate, elapsed time and the current stage text. The `classic` ASCII theme is used — no emojis. If stdout is redirected (logs, CI) the bar is disabled and one plain `[..]` line per stage is printed instead; a small built-in `|/-\` spinner is used only if `alive-progress` is unavailable. Failures print `[fail] <message>`.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Python API
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from store_shots import ExpoShotter, describe
|
|
148
|
+
|
|
149
|
+
print(describe())
|
|
150
|
+
|
|
151
|
+
shotter = ExpoShotter(
|
|
152
|
+
host="192.168.1.20",
|
|
153
|
+
port=19006,
|
|
154
|
+
output_dir="./store-assets",
|
|
155
|
+
platforms=["playstore", "appstore", "amazon"], # None = all built-ins
|
|
156
|
+
scheme="http",
|
|
157
|
+
base_path="",
|
|
158
|
+
devices=["phone", "ipad-13"], # None = all devices of every platform
|
|
159
|
+
variants=["portrait"], # None = all variants
|
|
160
|
+
recommended_only=False,
|
|
161
|
+
# routes=[...], # skip auto screen discovery
|
|
162
|
+
click_buttons=True, # follow links AND click buttons/tabs
|
|
163
|
+
max_routes=25,
|
|
164
|
+
max_depth=3,
|
|
165
|
+
max_actions_per_screen=24,
|
|
166
|
+
exclude=("/debug", "/admin"),
|
|
167
|
+
# screens=6, # exact count (sets min and max)
|
|
168
|
+
# min_screenshots=4, # warn when fewer screens are found
|
|
169
|
+
# max_screenshots=8, # cap screenshots per device/variant
|
|
170
|
+
wait_ms=900,
|
|
171
|
+
wait_for_loading=True,
|
|
172
|
+
headless=True,
|
|
173
|
+
overwrite=False,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
summary = shotter.run()
|
|
177
|
+
print(summary["captures"], "screenshots saved to", summary["output_dir"])
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
| Argument | Default | Purpose |
|
|
181
|
+
| --- | --- | --- |
|
|
182
|
+
| `host` / `port` | `127.0.0.1` / `19006` | Expo web server address |
|
|
183
|
+
| `output_dir` | `store-assets` | Root of the generated folder trees |
|
|
184
|
+
| `scheme` / `base_path` | `http` / `""` | URL scheme / optional subpath |
|
|
185
|
+
| `platforms` | all built-ins | Platform ids **or** custom `PlatformSpec` objects |
|
|
186
|
+
| `devices` / `variants` | all | Filter target form factors |
|
|
187
|
+
| `recommended_only` | `False` | Skip optional variants |
|
|
188
|
+
| `routes` | auto | Explicit route list; disables discovery |
|
|
189
|
+
| `click_buttons` | `True` | Click buttons/tabs while discovering screens |
|
|
190
|
+
| `max_routes` / `max_depth` | `25` / `3` | Discovery limits (screens / click depth) |
|
|
191
|
+
| `max_actions_per_screen` | `24` | Buttons/tabs inspected per screen |
|
|
192
|
+
| `screens` | `None` | Exact screenshots per device/variant (sets min and max) |
|
|
193
|
+
| `min_screenshots` / `max_screenshots` | profile | Warn below / cap above this count |
|
|
194
|
+
| `exclude` | `()` | Substrings skipped during discovery |
|
|
195
|
+
| `wait_ms` | `700` | Extra settle time before each capture |
|
|
196
|
+
| `wait_for_loading` | `True` | Wait for spinners/loading placeholders to disappear |
|
|
197
|
+
| `full_page` / `full_page_fit` | ignored | Deprecated; screenshots always use the exact device viewport |
|
|
198
|
+
| `wait_for_selector` | `None` | CSS selector to wait for |
|
|
199
|
+
| `headless` | `True` | Chromium visibility |
|
|
200
|
+
| `browser_channel` | `None` | e.g. `chrome` |
|
|
201
|
+
| `overwrite` / `dry_run` | `False` | File handling / preview mode |
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Custom platform (or "and more")
|
|
206
|
+
|
|
207
|
+
Add any store by passing your own `PlatformSpec`:
|
|
208
|
+
|
|
209
|
+
```python
|
|
210
|
+
from store_shots import ExpoShotter, PlatformSpec, GlobalRules, DeviceType, Variant
|
|
211
|
+
|
|
212
|
+
my_store = PlatformSpec(
|
|
213
|
+
id="my-store",
|
|
214
|
+
label="My Store",
|
|
215
|
+
output_folder="my-store",
|
|
216
|
+
rules=GlobalRules(min_dimension_px=320, max_dimension_px=4096),
|
|
217
|
+
devices=(
|
|
218
|
+
DeviceType(
|
|
219
|
+
id="phone",
|
|
220
|
+
label="Phone",
|
|
221
|
+
variants=(Variant("portrait", "Portrait", "portrait", "9:16", 1080, 1920),),
|
|
222
|
+
),
|
|
223
|
+
),
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
ExpoShotter(platforms=[my_store], output_dir="./store-assets").run()
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Or add it to `store_shots/platforms/PLATFORMS` to make it selectable from the CLI.
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## How screens are discovered
|
|
234
|
+
|
|
235
|
+
Starting at `/`, the explorer loads the page and does a breadth-first search over **both**:
|
|
236
|
+
|
|
237
|
+
1. every internal `<a href>` (Expo Router `<Link>` renders these), and
|
|
238
|
+
2. every visible button, tab, `role=button`/`role=tab`, plus React Native Web `Pressable`/`TouchableOpacity` divs (detected by pointer cursor or `tabindex`, even without an ARIA role).
|
|
239
|
+
|
|
240
|
+
For a button/tab, it records the click path from the app root (for example `Start training → Exercises`) and replays that path before the screenshot. Each screen is identified by its URL plus a signature of its headings/visible text, so the same screen reached two ways is only captured once. Destructive actions (log out, delete, purchase, …) are skipped. External URLs, fragments, assets, `/_expo`, `/assets` and excluded substrings are ignored.
|
|
241
|
+
|
|
242
|
+
Limits: `--max-routes` (screens), `--max-depth` (click depth) and `--max-actions` (buttons/tabs inspected per screen, default 24). The CLI now lists every discovered screen with its id; `manifest.json` records the exact click path used to reach each one. Pass `routes=[...]` or `--route` to skip discovery, or `--no-click-buttons` to follow links only. If onboarding requires filling fields before a button becomes active, use a flow file (see below) — the explorer clicks buttons but does not type into forms.
|
|
243
|
+
|
|
244
|
+
## How many screenshots per device
|
|
245
|
+
|
|
246
|
+
Store profiles define `min_screenshots` / `max_screenshots` (Google Play: 2–8 for phones, at least 4 for tablets/Chromebooks, 3–8 for foldables, 4–8 for XR). Override them globally:
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
store-shots --screens 6 # exactly 6 per device/variant
|
|
250
|
+
store-shots --min-screenshots 4 --max-screenshots 8
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
When fewer screens are discovered than the minimum, a `TOO_FEW_SCREENSHOTS` warning is added to `validation_report.json` instead of failing the run. Extra required images (Android TV banner, Google Play feature graphic) are always captured once at their exact size.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Screen flows and avoiding loading screenshots
|
|
258
|
+
|
|
259
|
+
A fixed delay is not enough for real apps. Before every capture the tool waits for `document.readyState === 'complete'`, `networkidle`, `document.fonts.ready`, all images, visible loading spinners/placeholders to disappear, and the DOM to stop mutating. After running flow steps it settles again, so a screen is never captured mid-transition:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
store-shots --host 127.0.0.1 --port 8081 --wait-for-text "No session in progress"
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
For screens behind onboarding or a sequence that automatic exploration cannot reach, pass a JSON flow file. Each flow is a screen with a route and a list of actions executed before the screenshot:
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
store-shots --host 127.0.0.1 --port 8081 \
|
|
269
|
+
--flows examples/replog-flows.json \
|
|
270
|
+
--platform playstore --device phone --recommended-only
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Supported actions: `fill` (by input placeholder), `click_text`, `click_selector`, `wait_for_text`, `wait_text_gone`, `wait_for_selector`, `wait_ms`, `scroll`, `press`. See `examples/replog-flows.json` for a complete onboarding → home / split / exercises / progress example. The resolved action log is recorded in `manifest.json` for each capture.
|
|
274
|
+
|
|
275
|
+
## Responsive capture (device emulation)
|
|
276
|
+
|
|
277
|
+
Screenshots are taken with Chrome device emulation, not by stretching a desktop-sized viewport. Each device profile defines `css_dpr`; the browser viewport is `target_px / css_dpr` with `device_scale_factor = css_dpr`:
|
|
278
|
+
|
|
279
|
+
| Target | CSS viewport | DPR | Output |
|
|
280
|
+
| --- | --- | --- | --- |
|
|
281
|
+
| Phone portrait | 540×960 | 2 | 1080×1920 |
|
|
282
|
+
| Phone landscape | 960×540 | 2 | 1920×1080 |
|
|
283
|
+
| 7″ tablet portrait | 600×960 | 2 | 1200×1920 |
|
|
284
|
+
| 10″ tablet portrait | 800×1280 | 2 | 1600×2560 |
|
|
285
|
+
| Foldable square | 960×960 | 2 | 1920×1920 |
|
|
286
|
+
| Desktop / laptop | 1920×1080 | 1 | 1920×1080 |
|
|
287
|
+
| Android TV | 1920×1080 | 1 | 1920×1080 |
|
|
288
|
+
| Android XR | 1920×1200 | 2 | 3840×2400 |
|
|
289
|
+
| Wear OS | 240×240 | 2 | 480×480 |
|
|
290
|
+
| iPhone 6.3″ | 603×1311 | 2 | 1206×2622 |
|
|
291
|
+
| iPad 13″ | 1032×1376 | 2 | 2064×2752 |
|
|
292
|
+
|
|
293
|
+
Large-screen profiles (desktop, Chromebook, TV, automotive) use DPR 1 so the app renders its real desktop/large-screen layout instead of a zoomed mobile one. DPR 2 fits a full phone/tablet screen with readable text. Use `--dpr 3` for a more zoomed-in phone look, or `--dpr 1` to show more CSS content (this changes the app's responsive layout).
|
|
294
|
+
|
|
295
|
+
Phone/watch profiles also enable mobile emulation (touch + mobile viewport meta handling). The resolved `css_viewport` / `device_scale_factor` are recorded in each platform's `manifest.json`. Change `css_dpr` in `store_shots/platforms/*.py` to tune a profile (dimensions must divide evenly).
|
|
296
|
+
|
|
297
|
+
## Output folder structure
|
|
298
|
+
|
|
299
|
+
```
|
|
300
|
+
store-assets/
|
|
301
|
+
├── google-play/
|
|
302
|
+
│ ├── phone/{portrait,landscape,square}/01-home.png ...
|
|
303
|
+
│ ├── foldable/{square,wide,outer,outer-landscape}/...
|
|
304
|
+
│ ├── tablet-7/{portrait,landscape}/...
|
|
305
|
+
│ ├── tablet-10/{portrait,landscape}/...
|
|
306
|
+
│ ├── chromebook/{landscape,portrait}/...
|
|
307
|
+
│ ├── desktop/{landscape,wide}/...
|
|
308
|
+
│ ├── android-tv/landscape/... + android-tv/banner/01-home.png
|
|
309
|
+
│ ├── wear-os/square/...
|
|
310
|
+
│ ├── automotive/{portrait,landscape}/...
|
|
311
|
+
│ ├── android-xr/wide/...
|
|
312
|
+
│ ├── feature-graphic/01-home.png
|
|
313
|
+
│ └── manifest.json
|
|
314
|
+
├── app-store/
|
|
315
|
+
│ ├── iphone-63/portrait/01-home.png ...
|
|
316
|
+
│ ├── iphone-69/portrait/...
|
|
317
|
+
│ ├── ipad-13/portrait/...
|
|
318
|
+
│ ├── apple-watch/square/...
|
|
319
|
+
│ └── manifest.json
|
|
320
|
+
├── amazon-appstore/
|
|
321
|
+
│ ├── phone/...
|
|
322
|
+
│ ├── tablet/...
|
|
323
|
+
│ ├── fire-tv/...
|
|
324
|
+
│ └── manifest.json
|
|
325
|
+
├── manifest.json
|
|
326
|
+
└── validation_report.json
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Each screenshot is named `<NN>-<route-slug>.png` (e.g. `02-profile-settings.png`). All images are normalized to **24-bit PNG with no alpha**; scrollbars, animations and carets are hidden, and every image is captured at the exact target dimension.
|
|
330
|
+
|
|
331
|
+
### Screens taller than the viewport
|
|
332
|
+
|
|
333
|
+
Full-page expansion has been removed. Expanding the page and stretching the result changed the app's responsive layout and distorted screenshots (for example, game screens rendered as a narrow column with blank space on the right). Every capture — including the Android TV banner and the Google Play feature graphic — now uses the exact device viewport from the platform profile, with no DPR change, scaling, or letterboxing.
|
|
334
|
+
|
|
335
|
+
If a screen needs content below the fold visible in the screenshot, use a flow file with a `scroll` action to bring that content into the viewport before capture. `--dpr 1` shows more CSS content but changes the app's responsive layout, so it is not applied automatically.
|
|
336
|
+
|
|
337
|
+
`manifest.json` records `full_page: {"mode": "never", "detected": false, "enabled": false}` for backwards compatibility; no fit metadata is produced.
|
|
338
|
+
|
|
339
|
+
Run `store-shots --check --output-dir ./store-assets` to print every image's actual size next to its required size and flag missing or mismatched files. `store-shots --list-platforms` prints all required dimensions.
|
|
340
|
+
|
|
341
|
+
`manifest.json` files record the source URL, discovered screens (including the click path used to reach each one), and every capture with its path and validation issues. `validation_report.json` summarizes errors/warnings (size mismatch, alpha removal, file size, too few screenshots, …).
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Built-in target sizes
|
|
346
|
+
|
|
347
|
+
### Google Play
|
|
348
|
+
Source: [Play Console preview assets](https://support.google.com/googleplay/android-developer/answer/9866151) (checked 2026).
|
|
349
|
+
|
|
350
|
+
| Device | Variants | Screenshots |
|
|
351
|
+
| --- | --- | --- |
|
|
352
|
+
| Phone | 1080×1920, 1920×1080, 1080×1080 | 2–8 |
|
|
353
|
+
| Foldable | 1920×1920 (1:1), 2560×1920 (4:3), 1080×1728 (10:16), 1728×1080 (16:10) | 3–8 |
|
|
354
|
+
| 7″ tablet | 1200×1920, 1920×1200 | 4–8 |
|
|
355
|
+
| 10″ tablet | 1600×2560, 2560×1600 | 4–8 |
|
|
356
|
+
| Chromebook | 1920×1080, 1080×1920 | 4–8 |
|
|
357
|
+
| Desktop / laptop | 1920×1080, 2560×1440 | 4–8 |
|
|
358
|
+
| Android TV | 1920×1080 + 1280×720 banner | 1–8 |
|
|
359
|
+
| Wear OS | 480×480 | 1–8 |
|
|
360
|
+
| Automotive | 800×1280, 1024×768 | 2–8 per variant |
|
|
361
|
+
| Android XR | 3840×2400 (8:5, min 1920×1200) | 4–8 |
|
|
362
|
+
| Feature graphic | 1024×500 | required |
|
|
363
|
+
|
|
364
|
+
Play limits: PNG/JPEG, 24-bit PNG with no alpha, each side 320–3,840 px, up to 8 MB per image, aspect ratio ≤ 2.3:1 for phone/tablet screenshots, and at least 2 screenshots across device types.
|
|
365
|
+
|
|
366
|
+
> Play Console calls its large-screen category **Chromebook**. The `desktop` preset is an extra 16:9 preset for web/desktop store listings; use it for the Chromebook/large-screen section if your app supports it.
|
|
367
|
+
|
|
368
|
+
### Apple App Store
|
|
369
|
+
| Device | Variants |
|
|
370
|
+
| --- | --- |
|
|
371
|
+
| iPhone 6.3″ (required) | 1206×2622, 2622×1206 |
|
|
372
|
+
| iPhone 6.9″ | 1320×2868, 2868×1320 |
|
|
373
|
+
| iPad 13″ | 2064×2752, 2752×2064 |
|
|
374
|
+
| Apple Watch Ultra | 422×514 |
|
|
375
|
+
|
|
376
|
+
### Amazon Appstore
|
|
377
|
+
| Device | Variants |
|
|
378
|
+
| --- | --- |
|
|
379
|
+
| Phone | 1080×1920, 1920×1080 |
|
|
380
|
+
| Fire tablet | 1280×800, 800×1280 |
|
|
381
|
+
| Fire TV | 1920×1080 |
|
|
382
|
+
|
|
383
|
+
Validation rules are per platform (min/max pixels, aspect ratio, file size, screenshot count). Edit the files in `store_shots/platforms/` to change any preset.
|