-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[snapshot] Add override_status_bar option #16419
[snapshot] Add override_status_bar option #16419
Conversation
This will override the status bar with simctl to show 9:41 AM, and have full battery and reception.
Cool MR! What if we can set the date? Instead of hardcoded 9:41? provide parameter with valid date-time string, using well known format? YYYY-MM-DD hh:mm |
UI.message("Overriding Status Bar") | ||
|
||
# The time needs to be passed as ISO8601 so the simulator formats it correctly | ||
time = Time.new(2007, 1, 9, 9, 41, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making this configurable can be tackled in a future PR <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, someone with a Mac handy should test it though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked perfectly! Thank you so much for adding this ❤
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 This was released as part of fastlane 2.147.0 🚀
* snapshot: Add override_status_bar option This will override the status bar with simctl to show 9:41 AM, and have full battery and reception. * Reformat code for rubocop * Update documentation to reference override_status_bar * Use ISO8601 timestamp so the date is also correct on iPad
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
xcode now has a way to override the status bar built-in, so there's no need for SimulatorStatusMagic any more.
Description
This will override the status bar with simctl to show 9:41 AM, and have full battery and reception.
Fixes #15319