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

[xcode13.3] Bring Xcode 13.3 support #14325

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
25d3ba4
[Xcode 13.3] Initial commit to Xcode 13.3 release
dalexsoto Mar 5, 2022
fab5142
[xtro] Fix xtro annotations
dalexsoto Mar 5, 2022
d6445e2
[tests] Fix introspection tests for Xcode 13.3
dalexsoto Mar 5, 2022
c2f75b8
[Accessibility] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
d6c16f3
[AppKit] Update xtro annotations of unbound API
dalexsoto Mar 5, 2022
5cdd265
[AuthenticationServices] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
6e92117
[AVFoundation] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
64008a4
[CarPlay] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
5f26b21
[CellularDataDiagnosticsSuite] Wait to bind this new one until GA
dalexsoto Mar 5, 2022
cbdf3c6
[Contacts] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
785577a
[CoreMediaIO] Add new macOS framework to todo
dalexsoto Mar 5, 2022
3cabb7c
[CoreMotion] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
2864ae2
[FileProvider] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 5, 2022
da193b1
[GameController] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
1659839
[HealthKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
bc88863
[HomeKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
e8d7cc8
[Intents] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
de294bb
[MediaSetup] Add MacCat framework to the todo list
dalexsoto Mar 6, 2022
3d65404
[MetalPerformanceShadersGraph] Add Framework to todo
dalexsoto Mar 6, 2022
e463927
[Network] Add Framework to todo
dalexsoto Mar 6, 2022
a544459
[PassKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
1244854
[Photos] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
c44a90f
[ProximityReader] Ignoring this framework nothing useful to bind
dalexsoto Mar 6, 2022
6400f98
[ReplayKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
c9a1253
[ScreenCaptureKit] Add new Framework to todo
dalexsoto Mar 6, 2022
784e1df
[SensorKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
0ff8e3a
[StoreKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
3ebf2b6
[UIKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
da1e8b7
[VideoToolbox] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
b91411c
[WebKit] Update bindings up to Xcode 13.3 Beta 3
dalexsoto Mar 6, 2022
1a0d1cd
[CI] Force Monterey bot
dalexsoto Mar 7, 2022
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
51 changes: 51 additions & 0 deletions src/healthkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,38 @@ public enum HKCategoryValueProgesteroneTestResult : long {
Indeterminate,
}

[Watch (8,5), iOS (15,4), MacCatalyst (15,4)]
public enum HKVerifiableClinicalRecordSourceType {
[DefaultEnumValue]
[Field (null)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

None,

[Field ("HKVerifiableClinicalRecordSourceTypeSMARTHealthCard")]
SmartHealthCard,

[Field ("HKVerifiableClinicalRecordSourceTypeEUDigitalCOVIDCertificate")]
EuDigitalCovidCertificate,
}

[Watch (8,5), iOS (15,4), MacCatalyst (15,4)]
public enum HKVerifiableClinicalRecordCredentialType {
[DefaultEnumValue]
[Field (null)]
None,

[Field ("HKVerifiableClinicalRecordCredentialTypeCOVID19")]
Covid19,

[Field ("HKVerifiableClinicalRecordCredentialTypeImmunization")]
Immunization,

[Field ("HKVerifiableClinicalRecordCredentialTypeLaboratory")]
Laboratory,

[Field ("HKVerifiableClinicalRecordCredentialTypeRecovery")]
Recovery,
}

#if NET
delegate void HKAnchoredObjectResultHandler (HKAnchoredObjectQuery query, HKSample[] results, nuint newAnchor, NSError error);
#else
Expand Down Expand Up @@ -3704,6 +3736,16 @@ interface HKVerifiableClinicalRecord
[Export ("itemNames", ArgumentSemantic.Copy)]
string[] ItemNames { get; }

[NullAllowed, iOS (15,4), MacCatalyst (15,4)]
[Export ("sourceType")]
string SourceType { get; }

[iOS (15,4), MacCatalyst (15,4)]
[Export ("dataRepresentation", ArgumentSemantic.Copy)]
NSData DataRepresentation { get; }

[Deprecated (PlatformName.iOS, 15, 4)]
[Deprecated (PlatformName.MacCatalyst, 15, 4)]
[Export ("JWSRepresentation", ArgumentSemantic.Copy)]
NSData JwsRepresentation { get; }
}
Expand All @@ -3718,8 +3760,17 @@ interface HKVerifiableClinicalRecordQuery
[Export ("recordTypes", ArgumentSemantic.Copy)]
string[] RecordTypes { get; }

[iOS (15,4), MacCatalyst (15,4)]
[BindAs (typeof (HKVerifiableClinicalRecordSourceType []))]
[Export ("sourceTypes", ArgumentSemantic.Copy)]
NSString [] SourceTypes { get; }

[Export ("initWithRecordTypes:predicate:resultsHandler:")]
NativeHandle Constructor (string[] recordTypes, [NullAllowed] NSPredicate predicate, HKVerifiableClinicalRecordQueryResultHandler handler);

[iOS (15,4)]
[Export ("initWithRecordTypes:sourceTypes:predicate:resultsHandler:")]
IntPtr Constructor (string [] recordTypes, [BindAs (typeof (HKVerifiableClinicalRecordSourceType []))] NSString [] sourceTypes, [NullAllowed] NSPredicate predicate, Action<HKVerifiableClinicalRecordQuery, HKVerifiableClinicalRecord [], NSError> resultsHandler);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use a delegate for such a large action, two params and an error.

}

[NoWatch, iOS (15,0)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -818,3 +818,13 @@
!missing-type! HKWorkoutRouteBuilder not bound
!missing-type! HKWorkoutRouteQuery not bound
!missing-type! HKWorkoutType not bound
!missing-field! HKVerifiableClinicalRecordCredentialTypeCOVID19 not bound
!missing-field! HKVerifiableClinicalRecordCredentialTypeImmunization not bound
!missing-field! HKVerifiableClinicalRecordCredentialTypeLaboratory not bound
!missing-field! HKVerifiableClinicalRecordCredentialTypeRecovery not bound
!missing-field! HKVerifiableClinicalRecordSourceTypeEUDigitalCOVIDCertificate not bound
!missing-field! HKVerifiableClinicalRecordSourceTypeSMARTHealthCard not bound
!missing-selector! HKVerifiableClinicalRecord::dataRepresentation not bound
!missing-selector! HKVerifiableClinicalRecord::sourceType not bound
!missing-selector! HKVerifiableClinicalRecordQuery::initWithRecordTypes:sourceTypes:predicate:resultsHandler: not bound
!missing-selector! HKVerifiableClinicalRecordQuery::sourceTypes not bound