Skip to content

Commit

Permalink
[MetricKit] Add support for Xcode 15 beta 8 (#18958)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
  • Loading branch information
haritha-mohan and GitHub Actions Autoformatter committed Sep 8, 2023
1 parent e9241bc commit 4e0951b
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 105 deletions.
79 changes: 79 additions & 0 deletions src/metrickit.cs
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.

6 comments on commit 4e0951b

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.