This commit is contained in:
Rolf Bjarne Kvinge 2022-12-22 07:37:42 +01:00 коммит произвёл GitHub
Родитель aebab1ce3f cbf58c8507
Коммит 7ccec765f6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
61 изменённых файлов: 14300 добавлений и 13990 удалений

Просмотреть файл

@ -184,9 +184,9 @@ MACCATALYST_NUGET_VERSION_NO_METADATA=$(MACCATALYST_NUGET_VERSION)$(NUGET_PREREL
MACCATALYST_NUGET_VERSION_FULL=$(MACCATALYST_NUGET_VERSION_NO_METADATA)+$(NUGET_BUILD_METADATA)
# Xcode version should have both a major and a minor version (even if the minor version is 0)
XCODE_VERSION=14.1
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_14.1.xip
XCODE_DEVELOPER_ROOT=/Applications/Xcode_14.1.0.app/Contents/Developer
XCODE_VERSION=14.2
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_14.2.xip
XCODE_DEVELOPER_ROOT=/Applications/Xcode_14.2.0.app/Contents/Developer
XCODE_PRODUCT_BUILD_VERSION:=$(shell /usr/libexec/PlistBuddy -c 'Print :ProductBuildVersion' $(XCODE_DEVELOPER_ROOT)/../version.plist 2>/dev/null || echo " $(shell tput setaf 1 2>/dev/null)The required Xcode ($(XCODE_VERSION)) is not installed in $(basename $(basename $(XCODE_DEVELOPER_ROOT)))$(shell tput sgr0 2>/dev/null)" >&2)
# Tell both Xcode and our build logic which Xcode we're using.

Просмотреть файл

@ -48,8 +48,8 @@
# line changed in git).
#
IOS_PACKAGE_VERSION=16.1.1.$(IOS_COMMIT_DISTANCE)
MAC_PACKAGE_VERSION=9.0.0.$(MAC_COMMIT_DISTANCE)
IOS_PACKAGE_VERSION=16.2.1.$(IOS_COMMIT_DISTANCE)
MAC_PACKAGE_VERSION=9.1.1.$(MAC_COMMIT_DISTANCE)
#
# ** NuGet package version numbers **
@ -65,11 +65,11 @@ MAC_PACKAGE_VERSION=9.0.0.$(MAC_COMMIT_DISTANCE)
# WARNING: Do **not** use versions higher than the available Xcode SDK or else we will have issues with mtouch (See https://github.com/xamarin/xamarin-macios/issues/7705)
IOS_NUGET_OS_VERSION=16.1
IOS_NUGET_OS_VERSION=16.2
TVOS_NUGET_OS_VERSION=16.1
WATCHOS_NUGET_OS_VERSION=9.1
MACOS_NUGET_OS_VERSION=13.0
MACCATALYST_NUGET_OS_VERSION=16.1
MACOS_NUGET_OS_VERSION=13.1
MACCATALYST_NUGET_OS_VERSION=16.2
# Defines the default platform version if it's not specified in the TFM. The default should not change for a given .NET version:

Просмотреть файл

@ -51,6 +51,7 @@
<string>15.4</string>
<string>16.0</string>
<string>16.1</string>
<string>16.2</string>
</array>
<key>tvOS</key>
<array>
@ -130,6 +131,7 @@
<string>15.2</string>
<string>15.4</string>
<string>16.1</string>
<string>16.2</string>
</array>
</dict>
<key>MacCatalystVersionMap</key>
@ -160,6 +162,8 @@
<string>12.3</string>
<key>16.1</key>
<string>13.0</string>
<key>16.2</key>
<string>13.1</string>
</dict>
<key>RecommendedXcodeVersion</key>
<string>@XCODE_VERSION@</string>

Просмотреть файл

@ -26,6 +26,7 @@
<string>12.1</string>
<string>12.3</string>
<string>13.0</string>
<string>13.1</string>
</array>
</dict>
<key>RecommendedXcodeVersion</key>

Просмотреть файл

@ -630,10 +630,12 @@ namespace AppKit {
CapsLock = 0x39,
Option = 0x3A,
Control = 0x3B,
RightCommand = 0x36,
RightShift = 0x3C,
RightOption = 0x3D,
RightControl = 0x3E,
Function = 0x3F,
F17 = 0x40,
VolumeUp = 0x48,
VolumeDown = 0x49,
Mute = 0x4A,

Просмотреть файл

@ -10,6 +10,8 @@ namespace BusinessChat {
Dark,
}
[Deprecated (PlatformName.MacOSX, 13, 1)]
[Deprecated (PlatformName.iOS, 16, 2)]
[Mac (10, 13, 4), iOS (11, 3)]
public enum BCParameterName {

Просмотреть файл

@ -3,6 +3,7 @@ using ObjCRuntime;
namespace Foundation {
#if !XAMCORE_5_0
// Utility enum, ObjC uses NSString
public enum NSDocumentType {
Unknown = -1,
@ -23,6 +24,7 @@ namespace Foundation {
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
OpenDocument,
}
#endif // !XAMCORE_5_0
// Utility enum, ObjC uses NSString
public enum NSDocumentViewMode {

Просмотреть файл

@ -87,78 +87,27 @@ namespace Foundation {
}
}
public NSDocumentType DocumentType {
#if XAMCORE_5_0
public NSAttributedStringDocumentType DocumentType {
get {
var s = WeakDocumentType;
if (s == NSAttributedStringDocumentType.NSPlainTextDocumentType)
return NSDocumentType.PlainText;
if (s == NSAttributedStringDocumentType.NSRtfdTextDocumentType)
return NSDocumentType.RTFD;
if (s == NSAttributedStringDocumentType.NSRtfTextDocumentType)
return NSDocumentType.RTF;
if (s == NSAttributedStringDocumentType.NSHtmlTextDocumentType)
return NSDocumentType.HTML;
#if __MACOS__
if (s == NSAttributedStringDocumentType.NSMacSimpleTextDocumentType)
return NSDocumentType.MacSimpleText;
if (s == NSAttributedStringDocumentType.NSDocFormatTextDocumentType)
return NSDocumentType.DocFormat;
if (s == NSAttributedStringDocumentType.NSWordMLTextDocumentType)
return NSDocumentType.WordML;
if (s == NSAttributedStringDocumentType.NSWebArchiveTextDocumentType)
return NSDocumentType.WebArchive;
if (s == NSAttributedStringDocumentType.NSOfficeOpenXMLTextDocumentType)
return NSDocumentType.OfficeOpenXml;
if (s == NSAttributedStringDocumentType.NSOpenDocumentTextDocumentType)
return NSDocumentType.OpenDocument;
#endif // __MACOS__
return NSDocumentType.Unknown;
return NSAttributedStringDocumentTypeExtensions.GetValue (WeakDocumentType);
}
set {
NSString? documentType = null;
switch (value) {
case NSDocumentType.PlainText:
documentType = NSAttributedStringDocumentType.NSPlainTextDocumentType;
break;
case NSDocumentType.RTFD:
documentType = NSAttributedStringDocumentType.NSRtfdTextDocumentType;
break;
case NSDocumentType.RTF:
documentType = NSAttributedStringDocumentType.NSRtfTextDocumentType;
break;
case NSDocumentType.HTML:
documentType = NSAttributedStringDocumentType.NSHtmlTextDocumentType;
break;
#if __MACOS__
case NSDocumentType.MacSimpleText:
documentType = NSAttributedStringDocumentType.NSMacSimpleTextDocumentType;
break;
case NSDocumentType.DocFormat:
documentType = NSAttributedStringDocumentType.NSDocFormatTextDocumentType;
break;
case NSDocumentType.WordML:
documentType = NSAttributedStringDocumentType.NSWordMLTextDocumentType;
break;
case NSDocumentType.WebArchive:
documentType = NSAttributedStringDocumentType.NSWebArchiveTextDocumentType;
break;
case NSDocumentType.OfficeOpenXml:
documentType = NSAttributedStringDocumentType.NSOfficeOpenXMLTextDocumentType;
break;
case NSDocumentType.OpenDocument:
documentType = NSAttributedStringDocumentType.NSOpenDocumentTextDocumentType;
break;
#endif // __MACOS__
}
if (documentType is not null)
WeakDocumentType = documentType;
WeakDocumentType = value.GetConstant ();
}
}
#else
public NSDocumentType DocumentType {
get {
return (NSDocumentType) NSAttributedStringDocumentTypeExtensions.GetValue (WeakDocumentType);
}
set {
WeakDocumentType = ((NSAttributedStringDocumentType) value).GetConstant ();
}
}
#endif // !XAMCORE_5_0
public NSDictionary? WeakDefaultAttributes {
get {

Просмотреть файл

@ -1638,7 +1638,7 @@ endif
project-files: $(PROJECT_FILES)
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.cs.in
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.in.cs
@$(MAKE) -C $(TOP)/tools/mtouch ../common/SdkVersions.cs
COMMA=,

Просмотреть файл

@ -1411,7 +1411,7 @@ namespace Security {
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
[SupportedOSPlatform ("maccatalyst13.1")]
[SupportedOSPlatform ("maccatalyst")]
#else
[iOS (13, 0)]
[TV (13, 0)]

Просмотреть файл

@ -532,7 +532,7 @@ namespace Security {
[UnsupportedOSPlatform ("tvos13.0")]
[UnsupportedOSPlatform ("ios9.0")]
[ObsoletedOSPlatform ("macos10.11", "Export ciphers are not available anymore.")]
[ObsoletedOSPlatform ("tvos13.0", "Use 'Network.framework' instead.")]
[ObsoletedOSPlatform ("tvos13.0", "Export ciphers are not available anymore.")]
[ObsoletedOSPlatform ("ios9.0", "Export ciphers are not available anymore.")]
#else
[Deprecated (PlatformName.iOS, 9, 0, message: "Export ciphers are not available anymore.")]

Просмотреть файл

@ -113,7 +113,7 @@ namespace UIKit {
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("macos10.15")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst13.1")]
[SupportedOSPlatform ("maccatalyst")]
#else
[Watch (6, 0)]
[TV (13, 0)]

Просмотреть файл

@ -39,7 +39,7 @@ namespace UIKit {
#if NET
[SupportedOSPlatform ("tvos11.0")]
[SupportedOSPlatform ("ios11.0")]
[SupportedOSPlatform ("maccatalyst13.1")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos10.15")]
#else
[Watch (4, 0)]

Просмотреть файл

@ -24,6 +24,8 @@ using NativeHandle = System.IntPtr;
namespace BusinessChat {
[Deprecated (PlatformName.MacOSX, 13, 1)]
[Deprecated (PlatformName.iOS, 16, 2)]
[Mac (10, 13, 4), iOS (11, 3)]
[BaseType (typeof (UIControl))]
[DisableDefaultCtor]
@ -34,6 +36,8 @@ namespace BusinessChat {
}
[Deprecated (PlatformName.MacOSX, 13, 1)]
[Deprecated (PlatformName.iOS, 16, 2)]
[Mac (10, 13, 4), iOS (11, 3)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]

Просмотреть файл

@ -1360,6 +1360,14 @@ namespace GameKit {
[iOS (8, 0), Mac (10, 10)]
[Export ("startBrowsingForNearbyPlayersWithHandler:")]
void StartBrowsingForNearbyPlayers ([NullAllowed] Action<GKPlayer, bool> handler);
[Mac (13, 1), iOS (16, 2), NoTV]
[Export ("startGroupActivityWithPlayerHandler:")]
void StartGroupActivity (Action<GKPlayer> handler);
[Mac (13, 1), iOS (16, 2), NoTV]
[Export ("stopGroupActivity")]
void StopGroupActivity ();
}
[NoWatch]

Просмотреть файл

@ -959,6 +959,13 @@ public abstract class AvailabilityBaseAttribute : Attribute {
void GenerateSupported (StringBuilder builder)
{
#if BGENERATOR
// If the version is less than or equal to the min version for the platform in question,
// the version is redundant, so just skip it.
if (Version is not null && Version <= Xamarin.SdkVersions.GetMinVersion (Generator.AsApplePlatform (Platform)))
Version = null;
#endif
builder.Append ("[SupportedOSPlatform (\"");
GeneratePlatformNameAndVersion (builder);
builder.AppendLine ("\")]");

Просмотреть файл

@ -87,7 +87,9 @@ public partial class Generator {
Tuple<FieldInfo, FieldAttribute> null_field = null;
Tuple<FieldInfo, FieldAttribute> default_symbol = null;
var underlying_type = GetCSharpTypeName (TypeManager.GetUnderlyingEnumType (type));
print ("{0} enum {1} : {2} {{", AttributeManager.HasAttribute<InternalAttribute> (type) ? "internal" : "public", type.Name, underlying_type);
var is_internal = AttributeManager.HasAttribute<InternalAttribute> (type);
var visibility = is_internal ? "internal" : "public";
print ("{0} enum {1} : {2} {{", visibility, type.Name, underlying_type);
indent++;
foreach (var f in type.GetFields ()) {
// skip value__ field
@ -126,7 +128,7 @@ public partial class Generator {
// the *Extensions has the same version requirement as the enum itself
PrintPlatformAttributes (type);
print_generated_code ();
print ("static public partial class {0}Extensions {{", type.Name);
print ("static {1} partial class {0}Extensions {{", type.Name, visibility);
indent++;
var field = fields.FirstOrDefault ();

Просмотреть файл

@ -3397,6 +3397,26 @@ public partial class Generator : IMemberGatherer {
#endif
}
public static ApplePlatform AsApplePlatform (PlatformName platform)
{
switch (platform) {
case PlatformName.iOS:
return ApplePlatform.iOS;
case PlatformName.TvOS:
return ApplePlatform.TVOS;
case PlatformName.MacCatalyst:
return ApplePlatform.MacCatalyst;
case PlatformName.MacOSX:
return ApplePlatform.MacOSX;
case PlatformName.WatchOS:
return ApplePlatform.WatchOS;
case PlatformName.None:
return ApplePlatform.None;
default:
throw new ArgumentOutOfRangeException (nameof (platform), platform, $"Unknown platform: {platform}");
}
}
static AvailabilityBaseAttribute CloneFromOtherPlatform (AvailabilityBaseAttribute attr, PlatformName platform)
{
if (attr.Version is null) {
@ -3416,14 +3436,18 @@ public partial class Generator : IMemberGatherer {
// Due to the absurd API of Version, you can not pass a -1 to the revision constructor
// nor can you coerse to 0, as that will fail with "16.0.0 <= 16.0" => false in the registrar
// So determine if the revision is -1, and use the 2 or 3 param ctor...
if (attr.Version.Revision == -1) {
var version = attr.Version;
var minimum = Xamarin.SdkVersions.GetMinVersion (AsApplePlatform (platform));
if (version < minimum)
version = minimum;
if (version.Revision == -1) {
switch (attr.AvailabilityKind) {
case AvailabilityKind.Introduced:
return new IntroducedAttribute (platform, attr.Version.Major, attr.Version.Minor, message: attr.Message);
return new IntroducedAttribute (platform, version.Major, version.Minor, message: attr.Message);
case AvailabilityKind.Deprecated:
return new DeprecatedAttribute (platform, attr.Version.Major, attr.Version.Minor, message: attr.Message);
return new DeprecatedAttribute (platform, version.Major, version.Minor, message: attr.Message);
case AvailabilityKind.Obsoleted:
return new ObsoletedAttribute (platform, attr.Version.Major, attr.Version.Minor, message: attr.Message);
return new ObsoletedAttribute (platform, version.Major, version.Minor, message: attr.Message);
case AvailabilityKind.Unavailable:
return new UnavailableAttribute (platform, message: attr.Message);
default:
@ -3432,11 +3456,11 @@ public partial class Generator : IMemberGatherer {
} else {
switch (attr.AvailabilityKind) {
case AvailabilityKind.Introduced:
return new IntroducedAttribute (platform, attr.Version.Major, attr.Version.Minor, attr.Version.Revision, message: attr.Message);
return new IntroducedAttribute (platform, version.Major, version.Minor, version.Revision, message: attr.Message);
case AvailabilityKind.Deprecated:
return new DeprecatedAttribute (platform, attr.Version.Major, attr.Version.Minor, attr.Version.Revision, message: attr.Message);
return new DeprecatedAttribute (platform, version.Major, version.Minor, version.Revision, message: attr.Message);
case AvailabilityKind.Obsoleted:
return new ObsoletedAttribute (platform, attr.Version.Major, attr.Version.Minor, attr.Version.Revision, message: attr.Message);
return new ObsoletedAttribute (platform, version.Major, version.Minor, version.Revision, message: attr.Message);
case AvailabilityKind.Unavailable:
return new UnavailableAttribute (platform, message: attr.Message);
default:

Просмотреть файл

@ -2073,6 +2073,30 @@ namespace Intents {
NoMatchingCall = 1,
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Native]
public enum INAnswerCallIntentResponseCode : long {
Unspecified = 0,
Ready,
ContinueInApp,
InProgress,
Success,
Failure,
FailureRequiringAppLaunch,
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Native]
public enum INHangUpCallIntentResponseCode : long {
Unspecified = 0,
Ready,
InProgress,
Success,
Failure,
FailureRequiringAppLaunch,
FailureNoCallToHangUp,
}
[iOS (10, 0)]
[Mac (10, 12, 0)]
[Watch (3, 2)]
@ -2197,6 +2221,14 @@ namespace Intents {
[MacCatalyst (14, 0)]
[Field ("INStartCallIntentIdentifier")]
StartCall,
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Field ("INAnswerCallIntentIdentifier")]
AnswerCall,
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Field ("INHangUpCallIntentIdentifier")]
HangUpCall,
}
[iOS (10, 2)]
@ -14432,6 +14464,89 @@ namespace Intents {
string GroupId { get; }
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[BaseType (typeof (INIntent))]
interface INAnswerCallIntent {
[Export ("initWithAudioRoute:callIdentifier:")]
[DesignatedInitializer]
IntPtr Constructor (INCallAudioRoute audioRoute, [NullAllowed] string callIdentifier);
[NoTV, NoMac, NoiOS]
[Export ("audioRoute", ArgumentSemantic.Assign)]
INCallAudioRoute AudioRoute { get; }
[NoWatch, NoTV, NoMac, NoiOS]
[NullAllowed, Export ("callIdentifier")]
string CallIdentifier { get; }
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Protocol]
interface INAnswerCallIntentHandling {
[Abstract]
[Export ("handleAnswerCall:completion:")]
void HandleAnswerCall (INAnswerCallIntent intent, Action<INAnswerCallIntentResponse> completion);
[Export ("confirmAnswerCall:completion:")]
void ConfirmAnswerCall (INAnswerCallIntent intent, Action<INAnswerCallIntentResponse> completion);
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INAnswerCallIntentResponse {
[Export ("initWithCode:userActivity:")]
[DesignatedInitializer]
IntPtr Constructor (INAnswerCallIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
[Export ("code")]
INAnswerCallIntentResponseCode Code { get; }
[NoMac]
[NullAllowed]
[Export ("callRecords", ArgumentSemantic.Copy)]
INCallRecord [] CallRecords { get; set; }
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[BaseType (typeof (INIntent))]
interface INHangUpCallIntent {
[NoWatch, Mac (13, 1), iOS (16, 2)]
[Export ("initWithCallIdentifier:")]
[DesignatedInitializer]
IntPtr Constructor ([NullAllowed] string callIdentifier);
[NoWatch, NoMac, NoiOS]
[NullAllowed, Export ("callIdentifier")]
string CallIdentifier { get; }
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[Protocol]
interface INHangUpCallIntentHandling {
[Abstract]
[Export ("handleHangUpCall:completion:")]
void HandleHangUpCall (INHangUpCallIntent intent, Action<INHangUpCallIntentResponse> completion);
[Export ("confirmHangUpCall:completion:")]
void ConfirmHangUpCall (INHangUpCallIntent intent, Action<INHangUpCallIntentResponse> completion);
}
[NoWatch, NoTV, Mac (13, 1), iOS (16, 2), MacCatalyst (16, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INHangUpCallIntentResponse {
[Export ("initWithCode:userActivity:")]
[DesignatedInitializer]
IntPtr Constructor (INHangUpCallIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
[Export ("code")]
INHangUpCallIntentResponseCode Code { get; }
}
}

Просмотреть файл

@ -86,6 +86,10 @@ namespace ScreenCaptureKit {
[Field ("SCStreamFrameInfoDirtyRects")]
NSString DirtyRects { get; }
[Mac (13, 1)]
[Field ("SCStreamFrameInfoScreenRect")]
NSString ScreenRect { get; }
}
[NoiOS, NoTV, NoWatch, Mac (12, 3), NoMacCatalyst]
@ -125,6 +129,10 @@ namespace ScreenCaptureKit {
[Export ("onScreen")]
bool OnScreen { [Bind ("isOnScreen")] get; }
[Mac (13, 1)]
[Export ("active")]
bool Active { [Bind ("isActive")] get; }
}

Просмотреть файл

@ -28,6 +28,7 @@ using UIWindow=AppKit.NSWindow;
#else
using UIKit;
using ICloudSharingControllerDelegate = UIKit.IUICloudSharingControllerDelegate;
using NSMenuItem = Foundation.NSObject;
#endif
#if !NET
@ -292,6 +293,11 @@ namespace SharedWithYou {
[Export ("headerImage", ArgumentSemantic.Strong)]
UIImage HeaderImage { get; set; }
[NoiOS, NoMacCatalyst]
[Mac (13, 1)]
[Export ("menuFormRepresentation")]
NSMenuItem MenuFormRepresentation { get; }
[NoMac]
[Wrap ("WeakCloudSharingControllerDelegate")]
[NullAllowed]

Просмотреть файл

@ -24754,6 +24754,10 @@ namespace UIKit {
[Export ("calendarView:decorationForDateComponents:")]
[return: NullAllowed]
UICalendarViewDecoration GetDecoration (UICalendarView calendarView, NSDateComponents dateComponents);
[iOS (16, 2), MacCatalyst (16, 0)]
[Export ("calendarView:didChangeVisibleDateComponentsFrom:")]
void DidChangeVisibleDateComponents (UICalendarView calendarView, NSDateComponents previousDateComponents);
}
[NoWatch, NoTV, iOS (16, 0), MacCatalyst (16, 0)]

Просмотреть файл

@ -4196,44 +4196,49 @@ namespace UIKit {
NSTextListElement ParentElement { get; }
}
[Static]
#if !XAMCORE_5_0
[Internal]
interface NSAttributedStringDocumentType {
#endif
enum NSAttributedStringDocumentType {
[DefaultEnumValue]
[Field (null)]
Unknown = NSDocumentType.Unknown,
[Field ("NSPlainTextDocumentType")]
NSString NSPlainTextDocumentType { get; }
Plain = NSDocumentType.PlainText,
[Field ("NSRTFDTextDocumentType")]
NSString NSRtfdTextDocumentType { get; }
Rtfd = NSDocumentType.RTFD,
[Field ("NSRTFTextDocumentType")]
NSString NSRtfTextDocumentType { get; }
Rtf = NSDocumentType.RTF,
[Field ("NSHTMLTextDocumentType")]
NSString NSHtmlTextDocumentType { get; }
Html = NSDocumentType.HTML,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSMacSimpleTextDocumentType")]
NSString NSMacSimpleTextDocumentType { get; }
MacSimple = NSDocumentType.MacSimpleText,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSDocFormatTextDocumentType")]
NSString NSDocFormatTextDocumentType { get; }
DocFormat = NSDocumentType.DocFormat,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSWordMLTextDocumentType")]
NSString NSWordMLTextDocumentType { get; }
WordML = NSDocumentType.WordML,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSWebArchiveTextDocumentType")]
NSString NSWebArchiveTextDocumentType { get; }
WebArchive = NSDocumentType.WebArchive,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSOfficeOpenXMLTextDocumentType")]
NSString NSOfficeOpenXMLTextDocumentType { get; }
OfficeOpenXml = NSDocumentType.OfficeOpenXml,
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Field ("NSOpenDocumentTextDocumentType")]
NSString NSOpenDocumentTextDocumentType { get; }
OpenDocument = NSDocumentType.OpenDocument,
}
[Static]

Просмотреть файл

@ -181,7 +181,7 @@ build-test-libraries:
all-local:: .stamp-xharness-configure
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.cs.in
$(TOP)/tools/common/SdkVersions.cs: $(TOP)/tools/common/SdkVersions.in.cs
@$(MAKE) -C $(TOP)/tools/mtouch ../common/SdkVersions.cs
.stamp-src-project-files:

Просмотреть файл

@ -24,6 +24,7 @@ namespace Cecil.Tests {
var harvestedInfo = Helper.MappedNetApi;
var failures = new List<(string Key, ICustomAttributeProvider Api, OSPlatformAttributes [] Obsoleted, OSPlatformAttributes [] Supported)> ();
var mismatchedObsoleteMessages = new List<string> ();
foreach (var kvp in harvestedInfo) {
var attributes = kvp.Value.Select (v => v.Api.GetAvailabilityAttributes (v.Platform) ?? new OSPlatformAttributes (v.Api, v.Platform) ?? new OSPlatformAttributes (v.Api, v.Platform)).ToArray ();
var obsoleted = attributes.Where (v => v?.Obsoleted is not null).ToArray ();
@ -41,7 +42,18 @@ namespace Cecil.Tests {
if (!notObsoletedNorUnsupported.Any ())
continue;
failures.Add (new (kvp.Key, kvp.Value.First ().Api, obsoleted, notObsoletedNorUnsupported));
var failure = (kvp.Key, kvp.Value.First ().Api, obsoleted, notObsoletedNorUnsupported);
failures.Add (failure);
var obsoleteMessages = obsoleted.Select (v => v.Obsoleted?.Message).Distinct ().ToArray ();
if (obsoleteMessages.Length > 1) {
var obsoleteFailure = new StringBuilder ();
obsoleteFailure.AppendLine ($"{failure.Key}: Found different {obsoleteMessages.Length} obsolete messages:");
foreach (var msg in obsoleteMessages)
obsoleteFailure.AppendLine ($" {(msg is null ? "null" : (msg.Length == 0 ? "<empty string>" : "\"" + msg + "\""))}");
mismatchedObsoleteMessages.Add (obsoleteFailure.ToString ());
Console.WriteLine (obsoleteFailure);
}
}
var newFailures = failures.Where (v => !knownFailuresInMissingObsoleteAttributes.Contains (v.Key)).ToArray ();
@ -69,6 +81,7 @@ namespace Cecil.Tests {
Assert.That (sb.ToString (), Is.Empty, "Failures");
Assert.IsEmpty (fixedFailures, "Known failures that aren't failing anymore - remove these from the list of known failures");
Assert.IsEmpty (mismatchedObsoleteMessages, "Mismatched obsolete messages");
}
static HashSet<string> knownFailuresInMissingObsoleteAttributes = new HashSet<string> {
@ -372,12 +385,12 @@ namespace Cecil.Tests {
// Verify that any SupportedOSPlatform attributes don't specify a version that is
// either earlier than our minimum deployment target, or later than the current OS version.
if (apiSupportedVersion is not null) {
if (apiSupportedVersion is not null && !(api is AssemblyDefinition)) {
var minimum = Xamarin.SdkVersions.GetMinVersion (platform);
var maximum = Xamarin.SdkVersions.GetVersion (platform);
// FIXME: This is a big change to fix, and should be fixed in a different PR.
//if (apiSupportedVersion <= minimum)
// failures.Add ($"[FAIL] {apiSupportedVersion} <= {minimum} (Min) on '{api.AsFullName ()}'.");
if (apiSupportedVersion <= minimum)
failures.Add ($"[FAIL] {apiSupportedVersion} <= {minimum} (Min) on '{api.AsFullName ()}'.");
if (apiSupportedVersion > maximum)
failures.Add ($"[FAIL] {apiSupportedVersion} > {maximum} (Max) on '{api.AsFullName ()}'.");
}

Просмотреть файл

@ -475,7 +475,7 @@ namespace Cecil.Tests {
public class OSPlatformAttribute {
public ApplePlatform Platform;
public string PlatformName = string.Empty;
public string PlatformName;
public Version? Version;
public CustomAttribute Attribute;
@ -486,6 +486,16 @@ namespace Cecil.Tests {
Version = version;
Attribute = attribute;
}
public string? Message {
get {
if (Attribute?.HasConstructorArguments != true)
return null;
if (Attribute.ConstructorArguments.Count < 2)
return null;
return Attribute.ConstructorArguments [1].Value as string;
}
}
}
public class OSPlatformAttributes {

Просмотреть файл

@ -6,6 +6,7 @@
<AssemblyName>cecil-tests</AssemblyName>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

Просмотреть файл

@ -3,6 +3,8 @@
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)</TargetFramework>
<IsPackable>false</IsPackable>
<DefineConstants>$(DefineConstants);NET;TESTS</DefineConstants>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -17,7 +17,7 @@ namespace Xamarin.Tests {
DotNet.AssertBuild (project_path, properties);
var infoPlistPath = GetInfoPListPath (platform, appPath);
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mypartialappmanifestapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MyPartialAppManifestApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("3.14", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");

Просмотреть файл

@ -28,7 +28,7 @@ namespace Xamarin.Tests {
AssertThatLinkerExecuted (result);
AssertAppContents (platform, appPath);
var infoPlistPath = Path.Combine (appPath, "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mysingletitle", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MySingleTitle", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("3.14", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");
@ -83,7 +83,7 @@ namespace Xamarin.Tests {
AssertThatLinkerExecuted (result);
AssertAppContents (platform, appPath);
var infoPlistPath = Path.Combine (appPath, "Contents", "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mycatalystapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MyCatalystApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("3.14", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");
@ -326,7 +326,7 @@ namespace Xamarin.Tests {
AssertThatLinkerExecuted (result);
var infoPlistPath = GetInfoPListPath (platform, appPath);
Assert.That (infoPlistPath, Does.Exist, "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mysimpleapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MySimpleApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("3.14", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");
@ -357,7 +357,7 @@ namespace Xamarin.Tests {
var appPath = Path.Combine (Path.GetDirectoryName (project_path)!, "bin", "Debug", platform.ToFramework (), "monotouchtest.app");
var infoPlistPath = GetInfoPListPath (platform, appPath);
Assert.That (infoPlistPath, Does.Exist, "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.monotouch-test", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MonoTouchTest", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
}
@ -577,7 +577,7 @@ namespace Xamarin.Tests {
AssertThatLinkerExecuted (rv);
var infoPlistPath = GetInfoPListPath (platform, appPath);
Assert.That (infoPlistPath, Does.Exist, "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mysimpleapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MySimpleApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("3.14", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");
@ -689,7 +689,7 @@ namespace Xamarin.Tests {
Assert.That (fontBFile, Does.Exist, "B.otf existence");
Assert.That (fontCFile, Does.Exist, "C.ttf existence");
var plist = PDictionary.FromFile (GetInfoPListPath (platform, appPath));
var plist = PDictionary.FromFile (GetInfoPListPath (platform, appPath))!;
switch (platform) {
case ApplePlatform.iOS:
case ApplePlatform.TVOS:
@ -974,7 +974,7 @@ namespace Xamarin.Tests {
AssertThatLinkerExecuted (result);
var infoPlistPath = GetInfoPListPath (platform, appPath);
Assert.That (infoPlistPath, Does.Exist, "Info.plist");
var infoPlist = PDictionary.FromFile (infoPlistPath);
var infoPlist = PDictionary.FromFile (infoPlistPath)!;
Assert.AreEqual ("com.xamarin.mysimpleapp", infoPlist.GetString ("CFBundleIdentifier").Value, "CFBundleIdentifier");
Assert.AreEqual ("MySimpleApp", infoPlist.GetString ("CFBundleDisplayName").Value, "CFBundleDisplayName");
Assert.AreEqual ("6.0", infoPlist.GetString ("CFBundleVersion").Value, "CFBundleVersion");

Просмотреть файл

@ -389,7 +389,7 @@ namespace Xamarin.Tests {
Assert.AreEqual (0, rv, $"'codesign {string.Join (" ", args)}' failed:\n{codesignOutput}");
if (File.Exists (entitlementsPath)) {
entitlements = PDictionary.FromFile (entitlementsPath);
return true;
return entitlements is not null;
}
entitlements = null;
return false;

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -491,3 +491,6 @@
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexCoordinates = 6 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndex = 7 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndexCoordinates = 8 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexBit = 16777216 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat16 = 285212704 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat32 = 285212736 not bound

Просмотреть файл

@ -188,3 +188,11 @@
!missing-selector! MPSGraph::inverseOfTensor:name: not bound
!missing-selector! MPSGraph::spaceToBatchTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name: not bound
!missing-selector! MPSGraph::spaceToBatchTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scale:zeroPoint:dataType:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scaleTensor:zeroPoint:dataType:axis:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scale:zeroPoint:dataType:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scaleTensor:zeroPoint:dataType:axis:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name: not bound
!missing-selector! MPSGraph::sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name: not bound
!missing-selector! MPSGraph::sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name: not bound

Просмотреть файл

@ -0,0 +1,6 @@
# The API is marked as unfinished in the header comments so let's not bind it for now
!missing-selector! SRApplicationUsage::supplementalCategories not bound
!missing-selector! SRKeyboardMetrics::longWordTouchUpDown not bound
!missing-selector! SRKeyboardMetrics::touchUpDown not bound
!missing-selector! SRSupplementalCategory::identifier not bound
!missing-type! SRSupplementalCategory not bound

Просмотреть файл

@ -401,3 +401,4 @@
!missing-field! UIListSeparatorAutomaticInsets not bound
!incorrect-protocol-member! UISearchSuggestion::localizedAttributedSuggestion is REQUIRED and should be abstract
!incorrect-protocol-member! UICalendarViewDelegate::calendarView:decorationForDateComponents: is OPTIONAL and should NOT be abstract

Просмотреть файл

@ -9833,3 +9833,27 @@
!missing-type! MTRWindowCoveringClusterStopMotionParams not bound
!missing-type! MTRWindowCoveringClusterUpOrOpenParams not bound
!missing-type! MTRWriteParams not bound
!missing-enum! MTRMediaPlaybackFeature not bound
!missing-enum! MTRSwitchFeature not bound
!missing-selector! +MTRBaseClusterTestCluster::readAttributeWriteOnlyInt8uWithAttributeCache:endpoint:queue:completionHandler: not bound
!missing-selector! +MTRSetupPayload::generateRandomSetupPasscode not bound
!missing-selector! +MTRSetupPayload::setupPayloadWithOnboardingPayload:error: not bound
!missing-selector! MTRBaseClusterTestCluster::readAttributeWriteOnlyInt8uWithCompletionHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::subscribeAttributeWriteOnlyInt8uWithMinInterval:maxInterval:params:subscriptionEstablished:reportHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:completionHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:params:completionHandler: not bound
!missing-selector! MTRBaseDevice::openCommissioningWindowWithSetupPasscode:discriminator:duration:queue:completion: not bound
!missing-selector! MTRClusterTestCluster::readAttributeWriteOnlyInt8uWithParams: not bound
!missing-selector! MTRClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:expectedValueInterval: not bound
!missing-selector! MTRClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:expectedValueInterval:params: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::copyWithZone: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::init not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::revision not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::setRevision: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::setType: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::type not bound
!missing-selector! MTRDevice::openCommissioningWindowWithSetupPasscode:discriminator:duration:queue:completion: not bound
!missing-selector! MTRDeviceController::setupCommissioningSessionWithPayload:newNodeID:error: not bound
!missing-selector! MTRSetupPayload::initWithSetupPasscode:discriminator: not bound
!missing-selector! MTRSetupPayload::qrCodeString: not bound
!missing-type! MTRDescriptorClusterDeviceTypeStruct not bound

Просмотреть файл

@ -491,3 +491,6 @@
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexCoordinates = 6 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndex = 7 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndexCoordinates = 8 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexBit = 16777216 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat16 = 285212704 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat32 = 285212736 not bound

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,3 @@
## This was introduced on the 16.2 SDK so using that.
!deprecated-attribute-wrong! BCChatAction has 16.2 not 16.1 on [Deprecated] attribute
!deprecated-attribute-wrong! BCChatButton has 16.2 not 16.1 on [Deprecated] attribute

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -491,3 +491,6 @@
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexCoordinates = 6 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndex = 7 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndexCoordinates = 8 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexBit = 16777216 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat16 = 285212704 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat32 = 285212736 not bound

Просмотреть файл

@ -188,3 +188,11 @@
!missing-selector! MPSGraph::inverseOfTensor:name: not bound
!missing-selector! MPSGraph::spaceToBatchTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name: not bound
!missing-selector! MPSGraph::spaceToBatchTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scale:zeroPoint:dataType:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scaleTensor:zeroPoint:dataType:axis:name: not bound
!missing-selector! MPSGraph::dequantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scale:zeroPoint:dataType:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scaleTensor:zeroPoint:dataType:axis:name: not bound
!missing-selector! MPSGraph::quantizeTensor:scaleTensor:zeroPointTensor:dataType:axis:name: not bound
!missing-selector! MPSGraph::sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name: not bound
!missing-selector! MPSGraph::sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name: not bound

Просмотреть файл

@ -0,0 +1,6 @@
# The API is marked as unfinished in the header comments so let's not bind it for now
!missing-selector! SRApplicationUsage::supplementalCategories not bound
!missing-selector! SRKeyboardMetrics::longWordTouchUpDown not bound
!missing-selector! SRKeyboardMetrics::touchUpDown not bound
!missing-selector! SRSupplementalCategory::identifier not bound
!missing-type! SRSupplementalCategory not bound

Просмотреть файл

@ -550,6 +550,7 @@
!incorrect-protocol-member! UISearchSuggestion::localizedAttributedSuggestion is REQUIRED and should be abstract
!incorrect-protocol-member! UISearchSuggestion::representedObject is REQUIRED and should be abstract
!incorrect-protocol-member! UISearchSuggestion::setRepresentedObject: is REQUIRED and should be abstract
!incorrect-protocol-member! UICalendarViewDelegate::calendarView:decorationForDateComponents: is OPTIONAL and should NOT be abstract
# deprecated in xcode 14 beta 5
!extra-enum-value! Managed value 8 for UIModalPresentationStyle.BlurOverFullScreen is available for the current platform while the value in the native header is not

Просмотреть файл

@ -9833,3 +9833,27 @@
!missing-type! MTRWindowCoveringClusterStopMotionParams not bound
!missing-type! MTRWindowCoveringClusterUpOrOpenParams not bound
!missing-type! MTRWriteParams not bound
!missing-enum! MTRMediaPlaybackFeature not bound
!missing-enum! MTRSwitchFeature not bound
!missing-selector! +MTRBaseClusterTestCluster::readAttributeWriteOnlyInt8uWithAttributeCache:endpoint:queue:completionHandler: not bound
!missing-selector! +MTRSetupPayload::generateRandomSetupPasscode not bound
!missing-selector! +MTRSetupPayload::setupPayloadWithOnboardingPayload:error: not bound
!missing-selector! MTRBaseClusterTestCluster::readAttributeWriteOnlyInt8uWithCompletionHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::subscribeAttributeWriteOnlyInt8uWithMinInterval:maxInterval:params:subscriptionEstablished:reportHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:completionHandler: not bound
!missing-selector! MTRBaseClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:params:completionHandler: not bound
!missing-selector! MTRBaseDevice::openCommissioningWindowWithSetupPasscode:discriminator:duration:queue:completion: not bound
!missing-selector! MTRClusterTestCluster::readAttributeWriteOnlyInt8uWithParams: not bound
!missing-selector! MTRClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:expectedValueInterval: not bound
!missing-selector! MTRClusterTestCluster::writeAttributeWriteOnlyInt8uWithValue:expectedValueInterval:params: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::copyWithZone: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::init not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::revision not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::setRevision: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::setType: not bound
!missing-selector! MTRDescriptorClusterDeviceTypeStruct::type not bound
!missing-selector! MTRDevice::openCommissioningWindowWithSetupPasscode:discriminator:duration:queue:completion: not bound
!missing-selector! MTRDeviceController::setupCommissioningSessionWithPayload:newNodeID:error: not bound
!missing-selector! MTRSetupPayload::initWithSetupPasscode:discriminator: not bound
!missing-selector! MTRSetupPayload::qrCodeString: not bound
!missing-type! MTRDescriptorClusterDeviceTypeStruct not bound

Просмотреть файл

@ -491,3 +491,6 @@
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexCoordinates = 6 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndex = 7 not bound
!missing-enum-value! MPSIntersectionDataType native value MPSIntersectionDataTypeDistancePrimitiveIndexBufferIndexInstanceIndexCoordinates = 8 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexBit = 16777216 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat16 = 285212704 not bound
!missing-enum-value! MPSDataType native value MPSDataTypeComplexFloat32 = 285212736 not bound

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,6 +1,6 @@
# We check in SdkVersions.cs so that it's easier to use this file when building tests on Windows.
../common/SdkVersions.cs: ../common/SdkVersions.cs.in Makefile $(TOP)/Make.config
../common/SdkVersions.cs: ../common/SdkVersions.in.cs Makefile $(TOP)/Make.config
$(Q_GEN) sed \
-e 's/@IOS_SDK_VERSION@/$(IOS_SDK_VERSION)/g' -e 's/@WATCHOS_SDK_VERSION@/$(WATCH_SDK_VERSION)/' -e 's/@TVOS_SDK_VERSION@/$(TVOS_SDK_VERSION)/' -e 's/@MACOS_SDK_VERSION@/$(MACOS_SDK_VERSION)/' \
-e 's/@MACCATALYST_SDK_VERSION@/$(MACCATALYST_SDK_VERSION)/g' \
@ -59,7 +59,7 @@
$< > $@.tmp
$(Q) if ! diff $@ $@.tmp >/dev/null; then $(CP) $@.tmp $@; echo "The file $(TOP)/tools/common/SdkVersions.cs has been automatically re-generated; please commit the changes."; fi
../common/ProductConstants.cs: ../common/ProductConstants.cs.in Makefile $(TOP)/Make.config
../common/ProductConstants.cs: ../common/ProductConstants.in.cs Makefile $(TOP)/Make.config
$(Q_GEN) sed \
-e "s/@IOS_VERSION@/$(IOS_PACKAGE_VERSION_MAJOR).$(IOS_PACKAGE_VERSION_MINOR).$(IOS_PACKAGE_VERSION_REV)/g" \
-e "s/@TVOS_VERSION@/$(IOS_PACKAGE_VERSION_MAJOR).$(IOS_PACKAGE_VERSION_MINOR).$(IOS_PACKAGE_VERSION_REV)/g" \

Просмотреть файл

@ -14,12 +14,12 @@ using MonoTouch;
namespace Xamarin {
static class SdkVersions {
public const string Xcode = "14.1";
public const string OSX = "13.0";
public const string iOS = "16.1";
public const string Xcode = "14.2";
public const string OSX = "13.1";
public const string iOS = "16.2";
public const string WatchOS = "9.1";
public const string TVOS = "16.1";
public const string MacCatalyst = "16.1";
public const string MacCatalyst = "16.2";
#if NET
public const string MinOSX = "10.14";
@ -40,12 +40,12 @@ namespace Xamarin {
public const string MinWatchOSCompanionSimulator = "14.5";
public const string MinTVOSSimulator = "12.4";
public const string MaxiOSSimulator = "16.1";
public const string MaxiOSSimulator = "16.2";
public const string MaxWatchOSSimulator = "9.1";
public const string MaxWatchOSCompanionSimulator = "16.1";
public const string MaxWatchOSCompanionSimulator = "16.2";
public const string MaxTVOSSimulator = "16.1";
public const string MaxiOSDeploymentTarget = "16.1";
public const string MaxiOSDeploymentTarget = "16.2";
public const string MaxWatchDeploymentTarget = "9.1";
public const string MaxTVOSDeploymentTarget = "16.1";

Просмотреть файл

@ -131,7 +131,7 @@ namespace Xamarin {
case ApplePlatform.TVOS: return TVOSVersion;
case ApplePlatform.MacCatalyst: return MacCatalystVersion;
default:
throw new ArgumentOutOfRangeException(nameof(platform), platform, $"Unknown platform: {platform}");
throw new ArgumentOutOfRangeException (nameof (platform), platform, $"Unknown platform: {platform}");
}
}
@ -144,7 +144,7 @@ namespace Xamarin {
case ApplePlatform.TVOS: return MinTVOSVersion;
case ApplePlatform.MacCatalyst: return MinMacCatalystVersion;
default:
throw new ArgumentOutOfRangeException(nameof(platform), platform, $"Unknown platform: {platform}");
throw new ArgumentOutOfRangeException (nameof (platform), platform, $"Unknown platform: {platform}");
}
}
}

Просмотреть файл

@ -280,7 +280,7 @@
<ManifestResourceName>Xamarin.Bundler.Errors.zh-Hant</ManifestResourceName>
</EmbeddedResource>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
</Project>

Просмотреть файл

@ -568,7 +568,7 @@
<Link>docs\website\mmp-errors.md</Link>
</None>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
</Project>

Просмотреть файл

@ -585,7 +585,7 @@
<ManifestResourceName>Xamarin.Bundler.Errors.zh-Hant</ManifestResourceName>
</EmbeddedResource>
</ItemGroup>
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.cs.in;../common/ProductConstants.cs.in" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Target Name="BuildSdkVersions" Inputs="../common/SdkVersions.in.cs;../common/ProductConstants.in.cs" Outputs="../common/SdkVersions.cs;../common/ProductConstants.cs">
<Exec Command="make ../common/SdkVersions.cs ../common/ProductConstants.cs" />
</Target>
<Target Name="AfterBuild">