xamarin-macios/tests/xtro-sharpie
Sebastien Pouliot 4bc13b0ec5 [spritekit] Audit fixes (xtro) (#2577)
1.	SKVideoNode is now, partially, available on watchOS and does
	not require the extra, manual code to swicth selectors depending
	on the OS version being run.

!missing-type! SKVideoNode not bound
!missing-selector! SKVideoNode::anchorPoint not bound
!missing-selector! SKVideoNode::initWithCoder: not bound
!missing-selector! SKVideoNode::initWithFileNamed: not bound
!missing-selector! SKVideoNode::initWithURL: not bound
!missing-selector! SKVideoNode::setAnchorPoint: not bound
!missing-selector! SKVideoNode::setSize: not bound
!missing-selector! SKVideoNode::size not bound
!missing-selector! +SKVideoNode::videoNodeWithFileNamed: not bound
!missing-selector! +SKVideoNode::videoNodeWithURL: not bound

2.	SKNodeFocusBehavior is exposed needlessly on watchOS because
	SpriteKit/Enums.cs was not processed by the generator, so [NoWatch]
	did not matter.

!unknown-native-enum! SKNodeFocusBehavior bound

	It's also visible on macOS but nothing uses it (so we do not expose
	it needlessly)

!missing-enum! SKNodeFocusBehavior not bound

3.	Add missing designated initializer on default `init`

!missing-designated-initializer! SKAttributeValue::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! SKNode::init is missing an [DesignatedInitializer] attribute

4.	Remove inconsistency for SKNode subclasses wrt XAMCORE_4_0

The trio attributeValues, setAttributeValues and setValue:forAttributeNamed:
that was moved from SKNode (deprecated) into its subclasses. This was done
using XAMCORE_4_0 but not on every subclasses. This adds them everywhere to
be consistent (only SKNode versions are not defined in XAMCORE_4_0)

!missing-selector! SKEffectNode::attributeValues not bound
!missing-selector! SKEffectNode::setAttributeValues: not bound
!missing-selector! SKEffectNode::setValue:forAttributeNamed: not bound
!missing-selector! SKEffectNode::valueForAttributeNamed: not bound
!missing-selector! SKEmitterNode::attributeValues not bound
!missing-selector! SKEmitterNode::setAttributeValues: not bound
!missing-selector! SKEmitterNode::setValue:forAttributeNamed: not bound
!missing-selector! SKEmitterNode::valueForAttributeNamed: not bound
!missing-selector! SKSpriteNode::attributeValues not bound
!missing-selector! SKSpriteNode::setAttributeValues: not bound
!missing-selector! SKSpriteNode::setValue:forAttributeNamed: not bound
!missing-selector! SKSpriteNode::valueForAttributeNamed: not bound
2017-09-01 08:20:28 -04:00
..
.gitignore [tests][xtro] Add optional generation of bindings for API in xtro's Makefile (#1732) 2017-03-28 09:46:11 -05:00
DesignatedInitializerCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
DllImportCheck.cs [XM] Fix xtro-sharpie issues (#620) 2016-08-17 20:11:05 -04:00
EnumCheck.cs [tests][xtro] Add CVOptionFlags == uint64_t to avoid a NIE processing macOS 10.12 headers (#288) 2016-06-27 17:18:30 -04:00
FieldCheck.cs [XM] Fix xtro-sharpie issues (#620) 2016-08-17 20:11:05 -04:00
Helpers.cs [uikit] Fix enums availability attributes (#2575) 2017-08-31 15:33:31 -04:00
Makefile [xtro-sharpie] Remove xtro-plugin and misc other fixes. (#2522) 2017-08-22 15:47:38 +02:00
ObjCInterfaceCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
ObjCProtocolCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
Program.cs [tests] Import 2016-05-26 15:06:52 +02:00
README.md [tests][xtro] Add optional generation of bindings for API in xtro's Makefile (#1732) 2017-03-28 09:46:11 -05:00
Runner.cs [xtro-sharpie] Fix a compiler warning. (#2516) 2017-08-22 11:33:09 +02:00
SelectorCheck.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
common.ignore [vision] Minor fix wrt xtro (#2551) 2017-08-28 10:24:06 -04:00
common.pending [wkwebkit] Fix (native) protocol names (#2572) 2017-08-31 13:35:25 -04:00
ios.ignore [PDFKit] Update to Xcode 9 Beta 1, 2, 3 & 4 (#2378) 2017-08-04 08:06:21 -05:00
ios.pending [Intents] Add bindings for Xcode 9 Beta 1, 2, 3, 4 & 5 (#2493) 2017-08-15 12:18:41 -05:00
osx.ignore [spritekit] Audit fixes (xtro) (#2577) 2017-09-01 08:20:28 -04:00
osx.pending [Intents] Add bindings for Xcode 9 Beta 1, 2, 3, 4 & 5 (#2493) 2017-08-15 12:18:41 -05:00
packages.config [tests] Import 2016-05-26 15:06:52 +02:00
tvos.ignore [replaykit] Update up to beta 5 (#2484) 2017-08-14 13:36:30 -04:00
tvos.pending [CoreNFC] Add CoreNFC Xcode 9 Beta 1 Bindings (#2226) 2017-06-19 13:56:00 -05:00
watchos.ignore [corebluetooth] Update up to beta 6 and enable it on watchOS (#2540) 2017-08-24 17:41:10 -04:00
watchos.pending [Intents] Add bindings for Xcode 9 Beta 1, 2, 3, 4 & 5 (#2493) 2017-08-15 12:18:41 -05:00
xtro-sharpie.csproj [xtro-sharpie] Remove xtro-plugin and misc other fixes. (#2522) 2017-08-22 15:47:38 +02:00
xtro-sharpie.sln [xtro-sharpie] Remove xtro-plugin and misc other fixes. (#2522) 2017-08-22 15:47:38 +02:00

README.md

Extrospection Tests based on ObjectiveSharpie

Goals

  • Compare our bindings with the information available Apple's C/ObjC header files

Design

  • The runner visit the provided (managed) assembly first, then it visit the precompiled headers (pch file) for an SDK (e.g. iOS or OSX);

  • Rules can be called at any steps to gather data and or report issues. Rules are also called at the end of the visits;

  • Rules should be kept simple and the external files, e.g. known-issues, should be used to track special cases, along with comments with our decisions, i.e. why we tolarate them. That will ease code sharing across existing and new platforms;

Rules

Existing

Those should be good enough to be execute on the bots on each build.

1) classify: takes the output from either 'sharpie' or 'all' (ios.results and osx.results files) classifies them in [ios|osx|common].[ignore|pending|unclassified] files
	NOTE: 	to add an entry to the ignore and pending files, just copy the entire line from the unclassified file into them and add your own comments 
		(why we are not binding/fixing that? who is going to bind this? etc) 

Work In Progress

E.g. rules might be too noisy and require refinement, either in code or in external files.

Ideas

Anything we do not check but for which data is available, e.g.

  • NullAllowed;
  • Enum member values;
  • Generic updates to existing API (need to find a way to avoid braking changes first)

Notes

  • To develop you need a checkout of ObjectiveSharpie

  • clang is only built for 64bits so you need a 64bits mono to execute the tool. The latest mono versions (required to build xamarin-macios supply a mono64 binary);

  • You can use the gen-[platform] or gen-all target of the Makefile to generate C# code for all the API from the headers. You can then copy/paste from the (large) files to create the missing bindings;