Skip to content
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

iOS/macOS: add ability to set entitlements #1028

Closed
1 task done
tido64 opened this issue Jul 27, 2022 · 0 comments · Fixed by #2010
Closed
1 task done

iOS/macOS: add ability to set entitlements #1028

tido64 opened this issue Jul 27, 2022 · 0 comments · Fixed by #2010
Labels
enhancement New feature or request platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS

Comments

@tido64
Copy link
Member

tido64 commented Jul 27, 2022

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:

generate_assets_catalog!(project_root, target_platform, destination)
generate_info_plist!(project_root, target_platform, destination)

Additional Context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tido64 tido64 added enhancement New feature or request platform: iOS This affects iOS platform: macOS This affects macOS labels Jul 27, 2022
@tido64 tido64 added this to the Single-app Mode milestone Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant