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

Sandbox: Add basic iOS support #12675

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Sandbox: Add basic iOS support #12675

merged 1 commit into from
Jan 29, 2024

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Jan 28, 2024

This updates the cond-compiles (e.g. the Security headers are unavailable on iOS) and then adds basic support for sandboxing on iOS.

I am not sure if the implementation entirely works as intended (the bookmark part is from this Qt bug), since the iOS sandbox is a fair bit more restrictive compared to macOS, especially concerning bookmark creation. IIUC, we would need some special logic to store URLs returned by a file picker and call startAccessingSecurityScopedResource etc., though even then we likely cannot persist this temporary permission like on macOS and may have to resort to copying the file into a sandbox directory or similar.

In any case, it shouldn't hurt to already have this logic in place to make it compile and, if needed, we can always update it later (the worst that would currently happen is spamming the user with too many sandbox popups since the OS may not give the right permission for anything outside the app's sandbox).

@fwcd fwcd mentioned this pull request Jan 28, 2024
54 tasks
@fwcd fwcd force-pushed the sandbox-ios branch 2 times, most recently from 502a4c9 to 812873a Compare January 29, 2024 01:14
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you.

@daschuer daschuer merged commit 5a7cc7b into mixxxdj:2.4 Jan 29, 2024
14 checks passed
@fwcd fwcd deleted the sandbox-ios branch January 29, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants