mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
store screenshots in _generated_ folder
This commit is contained in:
parent
be2aa45afc
commit
048ab4e308
5 changed files with 37 additions and 29 deletions
|
@ -10,8 +10,8 @@ As a user I want to see the most relevant screenshots in the store, so that I ca
|
||||||
|
|
||||||
- Metering screen
|
- Metering screen
|
||||||
|
|
||||||
1. Reflected light metering mode*
|
1. Reflected light metering mode\*
|
||||||
2. Incident light metering mode* **
|
2. Incident light metering mode\* \*\*
|
||||||
3. Opened ISO picker
|
3. Opened ISO picker
|
||||||
|
|
||||||
- Settings screen
|
- Settings screen
|
||||||
|
@ -24,11 +24,41 @@ As a user I want to see the most relevant screenshots in the store, so that I ca
|
||||||
1. Just the screen
|
1. Just the screen
|
||||||
2. Opened equipment profile ISO picker
|
2. Opened equipment profile ISO picker
|
||||||
|
|
||||||
> *also in dark mode
|
> \*also in dark mode
|
||||||
|
|
||||||
> **Android only
|
> \*\*Android only
|
||||||
|
|
||||||
## Run the generator
|
## Run the generator
|
||||||
|
|
||||||
- Android
|
Screenshots will be stored in the _screenshots/generated/\<platform\>/_ folder.
|
||||||
- [iOS](screenshots/ios/README.md)
|
|
||||||
|
### Android
|
||||||
|
|
||||||
|
```console
|
||||||
|
sh screenshots/generate_screenshots.sh <deviceName>
|
||||||
|
```
|
||||||
|
|
||||||
|
### iOS
|
||||||
|
|
||||||
|
Apple requires screenshots a specific list of devices, so we can implement a custom generator to cover all those devices.
|
||||||
|
|
||||||
|
Can be run on Simulator.
|
||||||
|
|
||||||
|
```console
|
||||||
|
sh screenshots/generate_ios_screenshots.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## List of devices
|
||||||
|
|
||||||
|
### Android
|
||||||
|
|
||||||
|
- Pixel 6
|
||||||
|
|
||||||
|
### iOS
|
||||||
|
|
||||||
|
- iPhone 8 Plus
|
||||||
|
- iPhone 13 Pro
|
||||||
|
- iPhone 13 Pro Max
|
||||||
|
- iPhone 15 Pro
|
||||||
|
- iPhone 15 Pro Max
|
||||||
|
- iPad Pro (12.9-inch) (6th generation)
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Generate iOS screenshots
|
|
||||||
|
|
||||||
## Context
|
|
||||||
|
|
||||||
The command below will generate screenshots for all the screen sizes required by App Store using iOS Simulator.
|
|
||||||
|
|
||||||
## Run the generator
|
|
||||||
|
|
||||||
```console
|
|
||||||
sh screenshots/ios/generate_screenshots.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Screenshots will be stored in the _screenshots/ios/generated/_ folder.
|
|
||||||
|
|
||||||
## List of devices
|
|
||||||
|
|
||||||
- iPhone 8 Plus
|
|
||||||
- iPhone 13 Pro
|
|
||||||
- iPhone 13 Pro Max
|
|
||||||
- iPhone 15 Pro
|
|
||||||
- iPhone 15 Pro Max
|
|
||||||
- iPad Pro (12.9-inch) (6th generation)
|
|
|
@ -7,7 +7,7 @@ Future<void> main() async {
|
||||||
await grantCameraPermission();
|
await grantCameraPermission();
|
||||||
await integrationDriver(
|
await integrationDriver(
|
||||||
onScreenshot: (name, bytes, [args]) async {
|
onScreenshot: (name, bytes, [args]) async {
|
||||||
final File image = await File('screenshots/$name.png').create(recursive: true);
|
final File image = await File('screenshots/generated/$name.png').create(recursive: true);
|
||||||
image.writeAsBytesSync(bytes);
|
image.writeAsBytesSync(bytes);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue