Repository navigation
fix: remove unused iOS camera and microphone prompts - #119
Open
namedtoaster wants to merge 1 commit into
Open
namedtoaster wants to merge 1 commit into
namedtoaster wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
expo-image-pickerwrites default iOS camera and microphone texts ("Allow $(PRODUCT_NAME) to access your camera" and the same for the microphone) unless they are set. The app only picks photos from the library (nothing callslaunchCameraAsync, and there is no audio or video package), so this sets both tofalse, which removes the keys fromInfo.plist.Apple asks that purpose strings describe the app's use (App Review Guideline 5.1.1(ii)), and App Review has recently been rejecting builds through an automated check for placeholder purpose strings. These two are also in English inside an otherwise localised app.
How to test
Config only; I haven't built the app. Run
npx expo config --type introspectand checkios.infoPlist:NSCameraUsageDescriptionandNSMicrophoneUsageDescriptionshould be gone and the Russian photos text unchanged. Android is unaffected apart from the camera and audio permissions being blocked, which the app doesn't use.Checklist
npm run lintandnpm run typecheckpass (CI will show; config change only)