Skip to content

Commit d2cea60

Browse files
committed
Captured newer screenshots
1 parent 050cbee commit d2cea60

23 files changed

Lines changed: 90 additions & 73 deletions

Source/TriangleDrawTests/UITests/SnapshotHelper.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ open class Snapshot: NSObject {
165165
}
166166

167167
let screenshot = XCUIScreen.main.screenshot()
168-
#if os(iOS)
168+
#if os(iOS) && !targetEnvironment(macCatalyst)
169169
let image = XCUIDevice.shared.orientation.isLandscape ? fixLandscapeOrientation(image: screenshot.image) : screenshot.image
170170
#else
171171
let image = screenshot.image
@@ -181,7 +181,7 @@ open class Snapshot: NSObject {
181181

182182
let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
183183
#if swift(<5.0)
184-
UIImagePNGRepresentation(image)?.write(to: path, options: .atomic)
184+
try UIImagePNGRepresentation(image)?.write(to: path, options: .atomic)
185185
#else
186186
try image.pngData()?.write(to: path, options: .atomic)
187187
#endif
@@ -306,4 +306,4 @@ private extension CGFloat {
306306

307307
// Please don't remove the lines below
308308
// They are used to detect outdated configuration files
309-
// SnapshotHelperVersion [1.27]
309+
// SnapshotHelperVersion [1.29]

Source/fastlane/Fastfile

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,28 @@
1818
# - Doesn't crash when running UITests.
1919
#
2020
lane :snapshot_canvas do
21-
xcode_select("/Applications/Xcode.app")
22-
23-
my_devices = [
24-
# iPad 12.9" display
25-
"iPad Pro (12.9-inch) (3rd generation)",
26-
"iPad Pro (12.9-inch) (2nd generation)",
27-
28-
# iPhone 6.5" display
29-
"iPhone Xs Max",
30-
31-
# iPhone 5.5" display
32-
"iPhone 8 Plus",
33-
]
34-
capture_ios_screenshots(
35-
devices: my_devices,
36-
ios_version: '13.0',
37-
skip_open_summary: true,
38-
clean: false,
39-
stop_after_first_error: true,
40-
concurrent_simulators: false
41-
)
21+
xcode_select("/Applications/Xcode.app")
22+
23+
my_devices = [
24+
# iPad 12.9" display
25+
"iPad Pro (12.9-inch) (6th generation)",
26+
"iPad Pro (12.9-inch) (2nd generation)",
27+
28+
# iPhone 6.7" display
29+
"iPhone 14 Pro Max",
30+
31+
# iPhone 6.5" display
32+
"iPhone Xs Max",
33+
34+
# iPhone 5.5" display
35+
"iPhone 8 Plus",
36+
]
37+
capture_ios_screenshots(
38+
devices: my_devices,
39+
ios_version: '16.0',
40+
skip_open_summary: true,
41+
clean: false,
42+
stop_after_first_error: true,
43+
concurrent_simulators: false
44+
)
4245
end

Source/fastlane/README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
fastlane documentation
2-
================
2+
----
3+
34
# Installation
45

56
Make sure you have the latest version of the Xcode command line tools installed:
67

7-
```
8+
```sh
89
xcode-select --install
910
```
1011

11-
Install _fastlane_ using
12-
```
13-
[sudo] gem install fastlane -NV
14-
```
15-
or alternatively using `brew install fastlane`
12+
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
1613

1714
# Available Actions
15+
1816
### snapshot_canvas
17+
18+
```sh
19+
[bundle exec] fastlane snapshot_canvas
1920
```
20-
fastlane snapshot_canvas
21-
```
21+
2222

2323

2424
----
2525

2626
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
27-
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
28-
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
27+
28+
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
29+
30+
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).

Source/fastlane/report.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66

77

8-
<testcase classname="fastlane.lanes" name="0: xcode_select" time="0.000384">
8+
<testcase classname="fastlane.lanes" name="0: xcode_select" time="0.000319">
99

1010
</testcase>
1111

1212

13-
<testcase classname="fastlane.lanes" name="1: capture_ios_screenshots" time="419.571358">
13+
<testcase classname="fastlane.lanes" name="1: capture_ios_screenshots" time="411.749965">
1414

1515
</testcase>
1616

-27.5 KB
Loading
4.57 KB
Loading
9.95 KB
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)