Conversation
…ery-metadata' into HEAD # Conflicts: # PeerConnectivity.xcodeproj/project.pbxproj # Sources/PeerConnectionManager.swift
…ion' into HEAD # Conflicts: # PeerConnectivityTests/PeerNetworkProtocolTests.swift # Sources/NetworkPeerTransport.swift
This was referenced Aug 11, 2026
Owner
Author
|
GitHub prevents changing the base of a pull request that is registered as part of a stack. Closing this retained checkpoint so it can be recreated with the consolidated base; the branch, commits, review history, and this PR remain preserved. |
Owner
Author
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.
Summary
Turn the initial Network.framework prototype into a safely selectable backend with the migration infrastructure required by later work.
Changes
availableMultipeerSessionfeature detection while retaining the existingmultipeerSessionAPI.Compatibility
Existing initializers and Multipeer-backed behavior remain source-compatible. Apps must explicitly choose
.networkFramework; MultipeerConnectivity remains the default and fallback path.availableMultipeerSessionallows callers to feature-detect the MC-specific session without triggering the existing non-optional accessor's unsupported-backend precondition.Security and discovery
Discovery TXT entries are bounded by encoded UTF-8 byte length, reject malformed oversized records, and preserve valid scalar boundaries. Discovery metadata remains self-asserted and is not an authorization identity.
Verification
swift test— 140 tests passed locally.Stack