Skip to content

[ThreadNetwork] Update bindings up to Xcode 27 Beta 3#26034

Open
dalexsoto wants to merge 2 commits into
xcode27.0from
dev/alex/xc27-ThreadNetwork
Open

[ThreadNetwork] Update bindings up to Xcode 27 Beta 3#26034
dalexsoto wants to merge 2 commits into
xcode27.0from
dev/alex/xc27-ThreadNetwork

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Bind the new enableCredentialSharingModeWithExtendedPANId:completion: selector on THClient, introduced in the Xcode 27 SDK. The API is available on iOS, Mac Catalyst and macOS 27.0 (ThreadNetwork is not available on tvOS).

The completion handler is bound as a named delegate (THClientEnableCredentialSharingModeCompletionHandler) with a [NullAllowed] NSError parameter, matching the native _Nullable error, and [Async] generates the Task-based overload.

This resolves the !missing-selector! entries in the iOS/macOS/ MacCatalyst ThreadNetwork .todo files.

Bind the new `enableCredentialSharingModeWithExtendedPANId:completion:`
selector on `THClient`, introduced in the Xcode 27 SDK. The API is
available on iOS, Mac Catalyst and macOS 27.0 (ThreadNetwork is not
available on tvOS).

The completion handler is bound as a named delegate
(`THClientEnableCredentialSharingModeCompletionHandler`) with a
`[NullAllowed] NSError` parameter, matching the native `_Nullable`
error, and `[Async]` generates the `Task`-based overload.

This resolves the `!missing-selector!` entries in the iOS/macOS/
MacCatalyst ThreadNetwork `.todo` files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9ea03367-affb-4df5-b8a6-79aa65fa9be6

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the ThreadNetwork bindings to match the Xcode 27 Beta 3 SDK by adding the newly introduced THClient selector for enabling credential sharing mode, and cleans up xtro annotation backlog accordingly.

Changes:

  • Added THClient.EnableCredentialSharingMode(…) with [Async] and a named completion-handler delegate.
  • Removed resolved !missing-selector! xtro .todo entries for ThreadNetwork on iOS/macOS/Mac Catalyst.
  • Added Documentation test known-failure entries for the new API surface (method + async overload + delegate type).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/xtro-sharpie/api-annotations-dotnet/macOS-ThreadNetwork.todo Removes resolved missing-selector todo entry (file becomes empty).
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-ThreadNetwork.todo Removes resolved missing-selector todo entry (file becomes empty).
tests/xtro-sharpie/api-annotations-dotnet/iOS-ThreadNetwork.todo Removes resolved missing-selector todo entry (file becomes empty).
tests/cecil-tests/Documentation.KnownFailures.txt Records documentation known-failures for the newly added ThreadNetwork API and delegate type.
src/threadnetwork.cs Adds the new EnableCredentialSharingMode… binding plus a named completion-handler delegate.

Comment thread src/threadnetwork.cs
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 Failed to compute test summaries on VSTS: test results 🔥

Failed to compute test summaries: Unable to understand the test result '# ⚠️ arm64 - Mac Golden Gate (27): Tests skipped, incorrect beta version' for test 'Tests on macOS Golden Gate (27)'.

Pipeline on Agent
Merge 3ba67dc into 9f3bb3d

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 Failed to compute test summaries on VSTS: test results 🔥

Failed to compute test summaries: Unable to understand the test result '# ⚠️ arm64 - Mac Golden Gate (27): Tests skipped, incorrect beta version' for test 'Tests on macOS Golden Gate (27)'.

Pipeline on Agent
Merge 3ba67dc into 9f3bb3d

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 93b14658c0d813fcd80abd69a97a1b136f3ecda8 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #93b1465] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 191 tests passed 🎉

Tests counts

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 18 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 17 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 18 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
⚠️ Tests on macOS Golden Gate (27): Tests skipped, incorrect beta version. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 93b14658c0d813fcd80abd69a97a1b136f3ecda8 [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants