Skip to content
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

[MetricKit] Add support for Xcode 15 beta 8 #18958

Merged
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
79 changes: 79 additions & 0 deletions src/metrickit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ interface MXMetaData : NSSecureCoding {
[MacCatalyst (14, 0)]
[Export ("platformArchitecture", ArgumentSemantic.Strong)]
string PlatformArchitecture { get; }

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Export ("lowPowerModeEnabled")]
bool LowPowerModeEnabled { get; }

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Export ("isTestFlightApp")]
bool IsTestFlightApp { get; }

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Export ("pid")]
int Pid { get; }
}

[NoWatch, NoTV, NoMac, iOS (13, 0)]
Expand Down Expand Up @@ -632,6 +644,10 @@ interface MXCrashDiagnostic {
[BindAs (typeof (int?))]
[NullAllowed, Export ("signal", ArgumentSemantic.Strong)]
NSNumber Signal { get; }

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[NullAllowed, Export ("exceptionReason", ArgumentSemantic.Strong)]
MXCrashDiagnosticObjectiveCExceptionReason ExceptionReason { get; }
}

[NoWatch, NoTV, Mac (12, 0)]
Expand All @@ -652,6 +668,10 @@ interface MXDiagnostic : NSSecureCoding {

[Export ("dictionaryRepresentation")]
NSDictionary DictionaryRepresentation { get; }

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[NullAllowed, Export ("signpostData", ArgumentSemantic.Strong)]
MXSignpostRecord [] SignpostData { get; }
}

// @interface MXAppLaunchDiagnostic : MXDiagnostic
Expand Down Expand Up @@ -730,4 +750,63 @@ interface MXHangDiagnostic {
[Export ("hangDuration", ArgumentSemantic.Strong)]
NSMeasurement<NSUnitDuration> HangDuration { get; }
}

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[BaseType (typeof (NSObject))]
interface MXSignpostRecord : NSSecureCoding {
[Export ("subsystem")]
string Subsystem { get; }

[Export ("category")]
string Category { get; }

[Export ("name")]
string Name { get; }

[Export ("beginTimeStamp", ArgumentSemantic.Copy)]
NSDate BeginTimeStamp { get; }

[NullAllowed, Export ("endTimeStamp", ArgumentSemantic.Copy)]
NSDate EndTimeStamp { get; }

[NullAllowed, Export ("duration", ArgumentSemantic.Copy)]
NSMeasurement<NSUnitDuration> Duration { get; }

[Export ("isInterval")]
bool IsInterval { get; }

[Export ("JSONRepresentation")]
NSData JsonRepresentation { get; }

[Export ("dictionaryRepresentation")]
NSDictionary DictionaryRepresentation { get; }
}

[NoWatch, NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[BaseType (typeof (NSObject))]
interface MXCrashDiagnosticObjectiveCExceptionReason : NSSecureCoding {
[Export ("composedMessage")]
string ComposedMessage { get; }

[Export ("formatString")]
string FormatString { get; }

[Export ("arguments", ArgumentSemantic.Copy)]
string [] Arguments { get; }

[Export ("exceptionType")]
string ExceptionType { get; }

[Export ("className")]
string ClassName { get; }

[Export ("exceptionName")]
string ExceptionName { get; }

[Export ("JSONRepresentation")]
NSData JsonRepresentation { get; }

[Export ("dictionaryRepresentation")]
NSDictionary DictionaryRepresentation { get; }
}
}

This file was deleted.

24 changes: 0 additions & 24 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-MetricKit.todo

This file was deleted.

24 changes: 0 additions & 24 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-MetricKit.todo

This file was deleted.

24 changes: 0 additions & 24 deletions tests/xtro-sharpie/iOS-MetricKit.todo

This file was deleted.

24 changes: 0 additions & 24 deletions tests/xtro-sharpie/macOS-MetricKit.todo

This file was deleted.

Loading