-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[device][ios] Added support for desktop detection #21636
[device][ios] Added support for desktop detection #21636
Conversation
Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines. I've found some issues in your pull request that should be addressed (click on them for more details) 👇
|
@ide @tsapeta I'm all for linting - but getting linting feedback in CI is a recurring headscratcher when contributing to Expo packages. Building SwifLint locally feels is definitely a threshold to contributing - is there a simpler way? |
There's no need to build it locally. If you're on macOS (which I assume you are), there's a |
Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines. I've found some issues in your pull request that should be addressed (click on them for more details) 👇
|
This reverts commit f86be6e.
Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines. I've found some issues in your pull request that should be addressed (click on them for more details) 👇
|
Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines. I've found some issues in your pull request that should be addressed (click on them for more details) 👇
|
@robertherber I'm sorry that the bot and linter get you annoyed. Right now the number of comments it can include in the review is limited to 10, because GitHub's API counts every comment as a notification (even though they all are sent in one http request) which is the basis of rate-limiting mechanism. We'll keep working on improving the contributors experience though. Thanks for submitting the PR to the contribution docs 🙏 |
Why
On iOS added support for deviceType detection of Desktop on MacOS, checking for Catalyst and iPad app running on Mac.
Supersedes #15084 which got outdated before merging, broken apart as requested in previous review.
How
By checking the
ProcessInfo.processInfo.isMacCatalystApp
andProcessInfo.processInfo.isiOSAppOnMac
flags.Test Plan
Tested in the bare-expo app. And used in production through
patch-package
.Checklist
expo prebuild
& EAS Build (eg: updated a module plugin).