react-native-test-app
react-native-test-app copied to clipboard
iOS/macOS: add ability to set entitlements
Proposal
Entitlements grant the app particular capabilities.
We added support for pointing to another .entitlements
file in 0.9.7. However, it would be nice if entitlements can be declared directly in app.json
:
{
"macos": {
"codeSignEntitlements": {
"com.apple.security.app-sandbox": true,
"com.apple.security.files.user-selected.read-only": true,
"com.apple.security.network.client": true
}
}
}
Alternatives
n/a
Implementation Details
We can generate an .entitlements
file like we do for Assets.xcassets
and Info.plist
:
https://github.com/microsoft/react-native-test-app/blob/a9ff329958326f75621842b076686a84dfd18e0f/ios/test_app.rb#L257-L258
Additional Context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct