-
-
Notifications
You must be signed in to change notification settings - Fork 8
Provide initial Foundation compatibility with MiniFoundation #281
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
Merged
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
Used in Passepartout, not here.
This reverts commit 117b8a7.
Avoid clumsy issues with type ambiguity.
Not available in native.
Disambiguate: path, path(), path(percentEncoded:)
Avoid accidental use of untested code.
- URL(fileURLWithPath:) - String extensions for URL editing (FIXME) - Conditionals to use String rather than URL - Wrap file attributes
Can now restore TunnelStrategy .sendMessage()
.appending(path:) returns trailing "/".
In line with Foundation.
Closed
keeshux
added a commit
to partout-io/passepartout
that referenced
this pull request
Dec 7, 2025
Rely on the extensions from [MiniFoundation](partout-io/partout#281): - Rename PSP_DYNLIB symbol to PSP_CROSS in CMake - Decouple log formatting logic - LocalLogger maps log lines internally - DebugLogView maps agnostic ABI.AppLogLine in the app layer - Exclude providers for now (based on PSP_PROVIDERS) Split Foundation logic: - Decouple URLSession via fetcher closures in GitHub*Strategy - Split SystemExtensionManager via agnostic ExtensionInstaller (annoying NSObject) - Split MultipartForm from toURLRequest() extension Move to Apple targets: - String l10n - URL extensions - UserDefaultsStore - TestFlight checker - HTMLTemplate - NIO handlers The cross-platform library is untested and still lacks JSON support, but app-cross builds fine with it, and `ldd` reports no Foundation dependency.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Cross
Building on non-Apple platforms
enhancement
New feature or request
refactoring
Reworks the software architecture
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.
Replace the dummy PartoutFoundation with a set of MiniFoundation* targets to replace Foundation on non-Apple platforms. The compatibility layer wraps a few Foundation entities:
To offer the native Foundation entity on Apple systems (though wrapped), and a compatible Swift/C/C++ replacement on non-Apple platforms:
Tests succeeded 100%, but a few had to be excluded. CMake configuration was fixed as needed.
Changes to active Partout code:
Other safe changes:
Many FIXMEs to resolve in compatible code (inactive on Apple). JSON encoding is not implemented yet.
Partially addresses #228