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] Update for Xcode 12 beta 2 #9151

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

spouliot
Copy link
Contributor

No description provided.

@spouliot spouliot added this to the xcode12 milestone Jul 21, 2020
@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
Test run succeeded


public virtual NSDictionary DictionaryRepresentation {
get {
if (PlatformHelper.CheckSystemVersion (14,0))
Copy link
Member

Choose a reason for hiding this comment

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

This version check doesn't work on macOS nor watchOS. This framework might not be on neither platform right now, but I think we should consider the possibility that it might be in the future, and do something like:

Suggested change
if (PlatformHelper.CheckSystemVersion (14,0))
#if __IOS__
if (PlatformHelper.CheckSystemVersion (14, 0))
#else
#error Platform-specific logic not implemented
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an iOS only framework but it can't hurt :)


public virtual NSDictionary DictionaryRepresentation {
get {
if (PlatformHelper.CheckSystemVersion (14,0))
Copy link
Member

Choose a reason for hiding this comment

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

Same


public virtual NSDictionary DictionaryRepresentation {
get {
if (PlatformHelper.CheckSystemVersion (14,0))
Copy link
Member

Choose a reason for hiding this comment

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

Same

Copy link
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

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

That's an even better approach than I suggested 😄

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
Test run succeeded

@spouliot spouliot merged commit 038db0f into xamarin:xcode12 Jul 22, 2020
@spouliot spouliot deleted the xcode12-metrickit-b2 branch July 22, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants