dpogue opened a new pull request, #1665: URL: https://github.com/apache/cordova-ios/pull/1665
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected visionOS ### Motivation and Context <!-- Why is this change required? What problem does it solve? --> <!-- If it fixes an open issue, please link to the issue here. --> While testing the minimum version stuff, I discovered that CordovaLib wasn't compiling for visionOS due to some of the status bar code (since visionOS doesn't have a status bar). Although we don't really treat visionOS as a supported target platform, it's nice to have it not be broken. ### Description <!-- Describe your changes in detail --> Wrap the status bar code in conditionals so that we don't run that code on visionOS. The other spots where we try to set the background colour of the status bar are safe because self.statusBar will be nil and it's safe to send messages to nil. ### Testing <!-- Please describe in detail how you tested your changes. --> Compiled CordovaLib for visionOS with no errors. ### Checklist - [ ] I've run the tests to see all new and existing tests pass -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
