-
Notifications
You must be signed in to change notification settings - Fork 518
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
[arkit] Update for Xcode 9 GM #2681
Conversation
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.
One minor thing, otherwise 👍.
src/arkit.cs
Outdated
[Export ("vertexCount")] | ||
nuint VertexCount { get; } | ||
|
||
// @property (readonly, nonatomic) const vector_float3 * _Nonnull vertices; |
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 comment can be removed.
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.
Yup missed. I'll remove in next PR.
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.
@rolfbjarne that's minor though, not PR blocking, I'll fix in next PR.
|
||
[iOS (11,0)] | ||
[NoWatch, NoTV, NoMac] | ||
[BaseType (typeof(ARLightEstimate))] |
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.
base type has a [DisableDefaultCtor]
so the subclass should too
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.
You're right ARDirectionalLightEstimate
subclass doesn't have init
|
||
[iOS (11,0)] | ||
[NoWatch, NoTV, NoMac] | ||
[BaseType (typeof(ARConfiguration))] |
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.
there's a [DisableDefaultCtor]
on the base type
but in this case it might be valid but...
The abstract base class for AR session configurations. https://developer.apple.com/documentation/arkit/arconfiguration
so there's an [Abstract]
missing from ARConfiguration
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.
ARConfiguration
should indeed be [Abstract]
and [DisableDefaultCtor]
is right here (:
/** Unavailable */
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
Build success |
40c56b7
to
21c724f
Compare
src/arkit.cs
Outdated
@@ -505,6 +507,7 @@ interface ARWorldTrackingConfiguration { | |||
[iOS (11,0)] | |||
[NoWatch, NoTV, NoMac] | |||
[BaseType (typeof(ARConfiguration))] | |||
[DisableDefaultCtor] |
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.
Sorry if it was confusing ;-)
but in this case it might be valid but...
meant that I did not knew if init
made sense - because the base type did not have it but was abstract
It turns out it's valid
https://developer.apple.com/documentation/arkit/arorientationtrackingconfiguration/2923556-init?language=objc
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.
Ah sorry I misinterpreted that and thought you checked (:
src/arkit.cs
Outdated
@@ -531,6 +534,7 @@ interface ARTrackable { | |||
[iOS (11,0)] | |||
[NoWatch, NoTV, NoMac] | |||
[BaseType (typeof(ARConfiguration))] | |||
[DisableDefaultCtor] |
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.
double check headers/doc - I suspect it's available
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.
src/arkit.cs
Outdated
@@ -496,6 +497,7 @@ interface ARConfiguration : NSCopying { | |||
[iOS (11,0)] | |||
[NoWatch, NoTV, NoMac] | |||
[BaseType (typeof (ARConfiguration))] | |||
[DisableDefaultCtor] |
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.
double check headers/doc - I suspect it's available
Build failure |
Build failure |
aborted build after 4 hours |
build |
Build success |
No description provided.