-
Notifications
You must be signed in to change notification settings - Fork 555
[HealthKit] Use generated NSString-backed enums. Fixes #4183. #4786
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
Conversation
|
@rolfbjarne the first commit does not look related |
This means less (duplicated) manual code, which means less errors, which also means we're now getting some new members that previously weren't duplicated correctly. Fixes dotnet#4183.
946c175 to
d21331d
Compare
|
@spouliot fixed |
|
Build failure |
spouliot
left a comment
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.
will be easier to review once API diff is complete :)
src/healthkit.cs
Outdated
| @@ -1433,348 +1433,338 @@ interface HKStatisticsQuery { | |||
| [Watch (2,0)] | |||
| [iOS (8,0)] | |||
| [Static] | |||
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.
^ not needed (and likely ignored by the generator)
|
|
||
| [Introduced (PlatformName.WatchOS, 2,0, PlatformArchitecture.All)] | ||
| [Introduced (PlatformName.iOS, 8,0, PlatformArchitecture.All)] | ||
| public unsafe static partial class HKCorrelationTypeKey { |
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.
missing [Obsolete] ? since it won't be in XAMCORE_4_0 ?
|
|
||
| [Introduced (PlatformName.WatchOS, 2,0, PlatformArchitecture.All)] | ||
| [Introduced (PlatformName.iOS, 8,0, PlatformArchitecture.All)] | ||
| public unsafe static partial class HKCharacteristicTypeIdentifierKey { |
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.
missing [Obsolete] ? since it won't be in XAMCORE_4_0 ?
|
|
||
| [Introduced (PlatformName.WatchOS, 2,0, PlatformArchitecture.All)] | ||
| [Introduced (PlatformName.iOS, 8,0, PlatformArchitecture.All)] | ||
| public unsafe static partial class HKCategoryTypeIdentifierKey { |
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.
missing [Obsolete] ? since it won't be in XAMCORE_4_0 ?
| namespace HealthKit { | ||
| [Introduced (PlatformName.WatchOS, 2,0, PlatformArchitecture.All)] | ||
| [Introduced (PlatformName.iOS, 8,0, PlatformArchitecture.All)] | ||
| public unsafe static partial class HKQuantityTypeIdentifierKey { |
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.
missing [Obsolete] ? since it won't be in XAMCORE_4_0 ?
|
Build failure Test results3 tests failed, 0 tests skipped, 77 tests passed.Failed tests
|
spouliot
left a comment
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.
API diff is happy - except there's nothing obsoleted.
There's a failing test too
|
Build success |
This means less (duplicated) manual code, which means less errors, which also
means we're now getting some new members that previously weren't duplicated
correctly.
Fixes #4183.