Skip to content

Commit

Permalink
various updates for screenshot gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Shapiro committed May 7, 2018
1 parent 26932da commit f3fd70c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
17 changes: 13 additions & 4 deletions Fastfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
lane :screenshots do
snapshot
frameit(silver: true)
#deliver
end
capture_screenshots
frame_screenshots(black: true)
upload_to_app_store
end

# lane :release do
# capture_screenshots # generate new screenshots for the App Store
# sync_code_signing(type: "appstore") # see code signing guide for more information
# build_app(scheme: "MyMonero",
# workspace: "MyMonero.xcworkspace",
# include_bitcode: true)
# upload_to_app_store # upload your app to iTunes Connect
# end
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class MyMoneroScreenshotsUITests: XCTestCase
secureTextField_2.tap()
secureTextField_2.typeText("qweqwe")
//
self.tapNext(inApp: app, atBarTitle: "Create PIN or Password")
self.tapNext(inApp: app, atBarTitle: "Create PIN/Password")
}
//
app.cells.element(boundBy: 0).tap() // tap on wallet list cell
Expand Down
26 changes: 16 additions & 10 deletions Snapfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

# A list of devices you want to take the screenshots from
devices([
"iPhone X",
"iPhone 8",
"iPhone 8 Plus",
"iPhone SE",
"iPad (5th generation)"
"iPhone X"#,
# "iPhone 8",
# "iPhone 8 Plus",
# "iPhone SE",
# "iPad Pro (12.9-inch)"
])

languages([
Expand All @@ -18,13 +18,19 @@ languages([

# The name of the scheme which contains the UI Tests
scheme "MyMonero"
workspace "./MyMonero.xcworkspace"
# app_identifier "com.mymonero.mymonero-app-testing" #using the same bundle ID as app store
# ios_version "11.3" # will this need to be set?

output_directory "./screenshots"

clear_previous_screenshots true
concurrent_simulators false # doesn't seem to be able to handle it just yet
# clear_previous_screenshots true
number_of_retries 0 # it's not going to be able to clear the Sim between retries (apparently) so it's not useful
# reinstall_app true #may get tripped up otherwise?
stop_after_first_error true
concurrent_simulators false #can it handle it?
# clean true #may get tripped up otherwise?
# erase_simulator true #may get tripped up otherwise?

workspace "./MyMonero.xcworkspace"
output_directory "./screenshots"

# For more information about all available options run
# snapshot --help
4 changes: 2 additions & 2 deletions bin/rebuildSims_generateITCScreens
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

read -p "This will delete and rebuild your Simulator devices. Are you sure? (Y/N) " -n 1 -r
read -p "This will delete and rebuild your Simulator devices. Are you sure? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
SNAPSHOT_FORCE_DELETE=true fastlane snapshot reset_simulators &&

fastlane snapshot --stop_after_first_error &&
fastlane snapshot --verbose &&

cd ./screenshots &&

Expand Down

0 comments on commit f3fd70c

Please sign in to comment.