Skip to content

[DeviceDiscoveryExtension] Implement Xcode 16.0 beta 1, beta 2 and beta 3 changes. #20870

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
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/DeviceDiscoveryExtension/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public enum DDDeviceCategory : long {
Tv = 3,
LaptopComputer = 4,
DesktopComputer = 5,
[iOS (18, 0)]
AccessorySetup = 6,
}

[NoMac, iOS (16, 0), NoMacCatalyst, NoWatch, NoTV]
Expand Down Expand Up @@ -74,4 +76,12 @@ public enum DDEventType : long {
DeviceLost = 41,
DeviceChanged = 42,
}

[NoMac, iOS (18, 0), NoMacCatalyst, NoWatch, NoTV]
[Native]
[Flags]
public enum DDDeviceSupports : ulong {
BluetoothPairingLE = 1 << 1,
BluetoothTransportBridging = 1 << 2,
}
}
14 changes: 14 additions & 0 deletions src/devicediscoveryextension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ interface DDDevice {
[iOS (17, 0)]
[Export ("supportsGrouping")]
bool SupportsGrouping { get; set; }

[iOS (18, 0)]
[Export ("deviceSupports", ArgumentSemantic.Assign)]
DDDeviceSupports DeviceSupports { get; set; }

[iOS (18, 0)]
[NullAllowed]
[Export ("displayImageName", ArgumentSemantic.Copy)]
string DisplayImageName { get; set; }

[iOS (18, 0)]
[NullAllowed]
[Export ("SSID", ArgumentSemantic.Copy)]
string Ssid { get; set; }
}

[NoMac, iOS (16, 0), NoMacCatalyst, NoWatch, NoTV]
Expand Down
4 changes: 4 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8752,6 +8752,7 @@ F:DeviceCheck.DCError.InvalidInput
F:DeviceCheck.DCError.InvalidKey
F:DeviceCheck.DCError.ServerUnavailable
F:DeviceCheck.DCError.UnknownSystemFailure
F:DeviceDiscoveryExtension.DDDeviceCategory.AccessorySetup
F:DeviceDiscoveryExtension.DDDeviceCategory.DesktopComputer
F:DeviceDiscoveryExtension.DDDeviceCategory.HiFiSpeaker
F:DeviceDiscoveryExtension.DDDeviceCategory.HiFiSpeakerMultiple
Expand All @@ -8768,6 +8769,8 @@ F:DeviceDiscoveryExtension.DDDeviceState.Activating
F:DeviceDiscoveryExtension.DDDeviceState.Authorized
F:DeviceDiscoveryExtension.DDDeviceState.Invalid
F:DeviceDiscoveryExtension.DDDeviceState.Invalidating
F:DeviceDiscoveryExtension.DDDeviceSupports.BluetoothPairingLE
F:DeviceDiscoveryExtension.DDDeviceSupports.BluetoothTransportBridging
F:DeviceDiscoveryExtension.DDErrorCode.BadParameter
F:DeviceDiscoveryExtension.DDErrorCode.Internal
F:DeviceDiscoveryExtension.DDErrorCode.MissingEntitlement
Expand Down Expand Up @@ -79066,6 +79069,7 @@ T:DeviceDiscoveryExtension.DDDeviceMediaPlaybackState
T:DeviceDiscoveryExtension.DDDeviceProtocol
T:DeviceDiscoveryExtension.DDDeviceProtocolStrings
T:DeviceDiscoveryExtension.DDDeviceState
T:DeviceDiscoveryExtension.DDDeviceSupports
T:DeviceDiscoveryExtension.DDErrorCode
T:DeviceDiscoveryExtension.DDEventType
T:EventKit.EKAlarmType
Expand Down

This file was deleted.

8 changes: 0 additions & 8 deletions tests/xtro-sharpie/iOS-DeviceDiscoveryExtension.todo

This file was deleted.