Skip to content

Commit

Permalink
Update Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Aug 9, 2024
1 parent 5a42cd3 commit c88b430
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ platform :ios do
test_without_building: true,
derived_data_path: ".derivedData",
devices: [
"iPhone 15 Pro",
"iPhone 15 Pro Max",
"iPhone SE (3rd generation)"
],
languages: [
Expand All @@ -60,9 +60,14 @@ platform :ios do
skip_open_summary: true
)

# Workaround for https://github.com/fastlane/fastlane/issues/21759
Dir.glob("./screenshots/**/iPhone 15 Pro-*.png").each do |file|
sh("sips --resampleHeightWidth 2556 1179 '#{file}'")
# Workaround for https://github.com/fastlane/fastlane/issues/21759 and
Dir.glob("./screenshots/**/iPhone 15 Pro Max-*.png").each do |file|
sh("sips --resampleHeightWidth 2796 1290 '#{file}'")
end

# Scale to 1242 x 2208 as there are no iOS 18 Simulators supporting this screen size.
Dir.glob("./screenshots/**/iPhone SE (3rd generation)-*.png").each do |file|
sh("sips --resampleHeightWidth 2208 1242 '#{file}'")
end
end

Expand Down

0 comments on commit c88b430

Please sign in to comment.