Skip to content

[snapshot] use empty string to blank out operator name by default#20429

Merged
getaaron merged 2 commits intofastlane:masterfrom
ZevEisenberg:patch-1
Jul 9, 2022
Merged

[snapshot] use empty string to blank out operator name by default#20429
getaaron merged 2 commits intofastlane:masterfrom
ZevEisenberg:patch-1

Conversation

@ZevEisenberg
Copy link
Copy Markdown
Contributor

@ZevEisenberg ZevEisenberg commented Jul 3, 2022

Checklist

(made edits in the GitHub web UI; I'll check out the code and run these checks and update this)

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

If you don't pass --operatorName to xcrun simctl status_bar, it defaults to "Carrier". This change makes it blank instead, which matches Apple's marketing screenshots.

Note: on some older simulators, it may be necessary to pass a zero-width space \u200D instead of an empty string, but iOS 15.5 (and possibly earlier) seem to support an empty string to blank out the carrier.

Description

Use an empty string explicitly instead of using the default. Tested locally with xcrun simctl to verify the correct parameters.

Testing Steps

Probably easier to just test with simctl. This will produce a good status bar (just the cellular section; leaving out the other parameters for brevity):

xcrun simctl status_bar booted override --operatorName "" --cellularMode active

Simulator Screen Shot - iPhone 8 - 2022-07-03 at 16 20 55

Whereas this produces "Carrier" in the screenshot:

xcrun simctl status_bar booted override --cellularMode active

Simulator Screen Shot - iPhone 8 - 2022-07-03 at 16 20 51

@ZevEisenberg ZevEisenberg marked this pull request as ready for review July 3, 2022 20:40
@ZevEisenberg
Copy link
Copy Markdown
Contributor Author

Had some build flakiness, but I re-ran them a couple times and everything is passing now.

@getaaron getaaron merged commit ac23bbc into fastlane:master Jul 9, 2022
@ZevEisenberg ZevEisenberg deleted the patch-1 branch July 9, 2022 16:00
@fastlane-bot
Copy link
Copy Markdown

Hey @ZevEisenberg 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

@joshdholtz joshdholtz changed the title Use empty string to blank out operator name by default [snapshot] use empty string to blank out operator name by default Jul 19, 2022
@fastlane-bot
Copy link
Copy Markdown

Congratulations! 🎉 This was released as part of fastlane 2.208.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants