-
Notifications
You must be signed in to change notification settings - Fork 514
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
[HealthKit] Update bindings for Xcode 14 beta 1-4 #15612
[HealthKit] Update bindings for Xcode 14 beta 1-4 #15612
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Monotouch-Tests iOS also do not seem to like my manual file and/or test - |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
โฆode14-HealthKit-Beta1and3
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@rolfbjarne Addressed! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/healthkit.cs
Outdated
|
||
[Watch (9,0), MacCatalyst (16,0), Mac (13,0), iOS (16,0), NoTV] | ||
[Export ("initWithRoute:dateInterval:dataHandler:")] | ||
NativeHandle Constructor (HKWorkoutRoute workoutRoute, NSDateInterval dateInterval, Action<HKWorkoutRouteQuery, NSArray<CLLocation>, bool, NSError> dataHandler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a dotnet array so you will need a custom delegate
delegate void HKWorkoutRouteQueryDataHandler (HKWorkoutRouteQuery query, [NullAllowed] CLLocation [] routeData, bool done, [NullAllowed] NSError error);
src/healthkit.cs
Outdated
|
||
[Async] | ||
[Export ("removeAttachment:fromObject:completion:")] | ||
void RemoveAttachment (HKAttachment attachment, HKObject @object, Action<bool, NSError> completion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the bool represents here? Probably this is a good candidate to do a delegate instead of an Action, same for the rest in this class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good, just address Alex's comments.
src/frameworks.sources
Outdated
GLKit \ | ||
HealthKit \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
GLKit \ | |
HealthKit \ | |
GLKit \ | |
HealthKit \ |
@dalexsoto Updated to use the delegates! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -564,7 +564,7 @@ interface HKCorrelationType { | |||
|
|||
delegate void HKHealthStoreGetRequestStatusForAuthorizationToShareHandler (HKAuthorizationRequestStatus requestStatus, NSError error); | |||
delegate void HKHealthStoreRecoverActiveWorkoutSessionHandler (HKWorkoutSession session, NSError error); | |||
delegate void HKHealthStoreCompletionHandler (bool success, [NullAllowed] NSError error); | |||
delegate void HKHealthStoreCompletionHandler (bool success, NSError error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird... what was the compiler issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for bringing this up @SotoiGhost !
Here is a gist of the errors / warnings that were not present when not including the [NullAllowed]
https://gist.github.com/tj-devel709/756ac73e32f3ff8ae234d8ba7ecdd7cc
This comment has been minimized.
This comment has been minimized.
โ API diff for current PR / commitLegacy Xamarin (No breaking changes).NET (No breaking changes)โ API diff vs stable (Breaking changes)Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:).NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)โน๏ธ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
๐ป [PR Build] Tests on macOS Mac Catalina (10.15) passed ๐ปโ All tests on macOS Mac Catalina (10.15) passed. Pipeline on Agent |
โ [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed โFailed tests are:
Pipeline on Agent |
๐ฅ [CI Build] Test results ๐ฅTest resultsโ Tests failed on VSTS: simulator tests 0 tests crashed, 2 tests failed, 226 tests passed. Failuresโ interdependent_binding_projects tests
Html Report (VSDrops) Download โ introspection tests
Html Report (VSDrops) Download Successesโ
bcl: All 69 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
This one has been a toughy ๐ฎโ๐จ
@mandel-macaque I am creating the draft PR and here is a gist with the MacModern failures that you mentioned you would take a closer look at: https://gist.github.com/tj-devel709/24f5c63d4b698a0e2387524a0d2666c6
There were also monotouch-test failures that seem to be related to enabling mac that I could use some help with as well.
Lastly, @chamons there was a failing Cecil test regarding ios in DidGenerateEvent method found here: https://gist.github.com/tj-devel709/2c8aee7325c0c2751e29269d3eb77fef. I did not touch this method so I am not sure why this would be a problem.
Here is the Cecil failure: https://gist.github.com/tj-devel709/cfb2576c75de2ee100a8f2b7ee6e3923
Thanks for the help!
Edit *: Issues mentioned in the code comments
https://github.com/xamarin/maccore/issues/2609
https://github.com/xamarin/maccore/issues/2610