Skip to content

Commit

Permalink
[Metal/SpriteKit] Fix availability attributes on a few API. (#5033)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Oct 24, 2018
1 parent 9688c42 commit 74576fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/metal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,8 @@ partial interface MTLRenderCommandEncoder : MTLCommandEncoder {
[Abstract, Export ("setCullMode:")]
void SetCullMode (MTLCullMode cullMode);

[Mac (10,11, onlyOn64 : true), TV (11,0), iOS (11,0), NoWatch]
[iOS (9,0)] // Current headers claim this member was introduced in iOS 11, but it also shows up in Xcode 7's header (as introduced in iOS 9)
[Mac (10,11, onlyOn64 : true), TV (11,0), NoWatch]
#if XAMCORE_4_0
// Apple added a new required member in iOS 9, but that breaks our binary compat, so we can't do that in our existing code.
[Abstract]
Expand Down
6 changes: 4 additions & 2 deletions src/spritekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ partial interface SKNode : NSSecureCoding, NSCopying {
[return: NullAllowed]
SKNode Create (string filename, IntPtr classesPtr, out NSError error);

#if MONOMAC || WATCH
[Export ("frame")]
CGRect Frame { get; }
#if !(MONOMAC || WATCH)
// For iOS+tvOS we also get this property from the UIFocusItem protocol, but we redefine it here to get the right availability attributes.
new
#endif
CGRect Frame { get; }

[Export ("calculateAccumulatedFrame")]
CGRect CalculateAccumulatedFrame ();
Expand Down

1 comment on commit 74576fa

@xamarin-release-manager
Copy link
Collaborator

Choose a reason for hiding this comment

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

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Provisioning' 🔥 : hudson.AbortException: script returned exit code 127

🔥 Provisioning failed 🔥

Please sign in to comment.