Skip to content

Commit ea8310c

Browse files
authored
[Intents] Fix a few missing APIs for Xcode 16 beta 1-6. (#21138)
1 parent 92cd45d commit ea8310c

File tree

8 files changed

+4
-30
lines changed

8 files changed

+4
-30
lines changed

src/intents.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4597,7 +4597,6 @@ interface INMessage : NSCopying, NSSecureCoding {
45974597
[Deprecated (PlatformName.WatchOS, 11, 0, message: "Use a constructor that takes a reaction instead.")]
45984598
[MacCatalyst (13, 1)]
45994599
[Export ("initWithIdentifier:conversationIdentifier:content:dateSent:sender:recipients:groupName:messageType:")]
4600-
[DesignatedInitializer]
46014600
NativeHandle Constructor (string identifier, [NullAllowed] string conversationIdentifier, [NullAllowed] string content, [NullAllowed] NSDate dateSent, [NullAllowed] INPerson sender, [NullAllowed] INPerson [] recipients, [NullAllowed] INSpeakableString groupName, INMessageType messageType);
46024601

46034602
[Deprecated (PlatformName.iOS, 18, 0, message: "Use a constructor that takes a reaction instead.")]
@@ -6852,7 +6851,7 @@ interface INSendMessageIntent : UNNotificationContentProviding {
68526851
[DesignatedInitializer]
68536852
NativeHandle Constructor ([NullAllowed] INPerson [] recipients, INOutgoingMessageType outgoingMessageType, [NullAllowed] string content, [NullAllowed] INSpeakableString speakableGroupName, [NullAllowed] string conversationIdentifier, [NullAllowed] string serviceName, [NullAllowed] INPerson sender, [NullAllowed] INSendMessageAttachment [] attachments);
68546853

6855-
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")]
6854+
[Deprecated (PlatformName.MacOSX, 11, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")]
68566855
[Deprecated (PlatformName.WatchOS, 7, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")]
68576856
[Deprecated (PlatformName.iOS, 14, 0, message: "Use '.ctor (INPerson[], INOutgoingMessageType, string, INSpeakableString, string, string, INPerson, INSendMessageAttachment[])' instead.")]
68586857
[MacCatalyst (13, 1)]
@@ -10142,6 +10141,7 @@ interface INCallRecord : NSCopying, NSSecureCoding {
1014210141
[Deprecated (PlatformName.iOS, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")]
1014310142
[Deprecated (PlatformName.MacCatalyst, 14, 5, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")]
1014410143
[Deprecated (PlatformName.WatchOS, 7, 4, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")]
10144+
[Deprecated (PlatformName.MacOSX, 11, 3, message: "Use '.ctor (string, NSDate, INCallRecordType, INCallCapability, double?, bool?, int?)' instead.")]
1014510145
[Watch (6, 0), iOS (13, 0)]
1014610146
[MacCatalyst (13, 1)]
1014710147
[Export ("initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:")]
@@ -15848,7 +15848,7 @@ interface INUnsendMessagesIntentHandling {
1584815848
void ConfirmUnsendMessages (INUnsendMessagesIntent intent, Action<INUnsendMessagesIntentResponse> completion);
1584915849
}
1585015850

15851-
[Watch (11, 0), iOS (18, 0), NoTV, MacCatalyst (18, 0), NoMac]
15851+
[Watch (11, 0), iOS (18, 0), NoTV, MacCatalyst (18, 0), Mac (15, 0)]
1585215852
[BaseType (typeof (NSObject))]
1585315853
[DisableDefaultCtor]
1585415854
interface INMessageReaction : NSCopying, NSSecureCoding {
@@ -15866,7 +15866,7 @@ interface INMessageReaction : NSCopying, NSSecureCoding {
1586615866
string Emoji { get; }
1586715867
}
1586815868

15869-
[Watch (11, 0), iOS (18, 0), NoTV, MacCatalyst (18, 0), NoMac]
15869+
[Watch (11, 0), iOS (18, 0), NoTV, MacCatalyst (18, 0), Mac (15, 0)]
1587015870
[BaseType (typeof (NSObject))]
1587115871
[DisableDefaultCtor]
1587215872
interface INSticker : NSCopying, NSSecureCoding {

tests/cecil-tests/ApiAvailabilityTest.cs

-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ public void FindMissingObsoleteAttributes ()
176176
"HealthKit.HKWorkoutEvent.Create(HealthKit.HKWorkoutEventType, Foundation.NSDate)",
177177
"HomeKit.HMEventTrigger.CreatePredicateForEvaluatingTriggerOccurringAfterSignificantEvent(HomeKit.HMSignificantEvent, Foundation.NSDateComponents)",
178178
"HomeKit.HMEventTrigger.CreatePredicateForEvaluatingTriggerOccurringBeforeSignificantEvent(HomeKit.HMSignificantEvent, Foundation.NSDateComponents)",
179-
"Intents.INCallRecord..ctor(System.String, Foundation.NSDate, Intents.INPerson, Intents.INCallRecordType, Intents.INCallCapability, System.Nullable`1<System.Double>, System.Nullable`1<System.Boolean>, System.Nullable`1<System.Int32>)",
180179
"Intents.INCallRecordType Intents.INStartCallIntent::RecordTypeForRedialing()",
181180
"Intents.INCarChargingConnectorType Intents.INCarChargingConnectorType::Tesla",
182181
"Intents.INSetClimateSettingsInCarIntent..ctor(System.Nullable`1<System.Boolean>, System.Nullable`1<System.Boolean>, System.Nullable`1<System.Boolean>, System.Nullable`1<System.Boolean>, Intents.INCarAirCirculationMode, Foundation.NSNumber, Foundation.NSNumber, Intents.INRelativeSetting, Foundation.NSMeasurement`1<Foundation.NSUnitTemperature>, Intents.INRelativeSetting, Intents.INCarSeat)",

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Intents.todo

-1
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-Intents.todo

-1
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-Intents.todo

-10
This file was deleted.

tests/xtro-sharpie/iOS-Intents.todo

-1
This file was deleted.

tests/xtro-sharpie/macOS-Intents.todo

-11
This file was deleted.

tests/xtro-sharpie/watchOS-Intents.todo

-1
This file was deleted.

0 commit comments

Comments
 (0)