[introspection] A few fixes for watchOS.
This commit is contained in:
Родитель
50db0e315e
Коммит
330ddae9ba
|
@ -26,6 +26,12 @@ namespace Introspection {
|
|||
if (TestRuntime.IsSimulatorOrDesktop)
|
||||
return true;
|
||||
break;
|
||||
#if __WATCHOS__
|
||||
case "GameKit":
|
||||
if (IntPtr.Size == 4)
|
||||
return true;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
// While the following types are categories and contains a class_ptr
|
||||
|
|
|
@ -160,6 +160,10 @@ namespace Introspection {
|
|||
// Xcode 12.2 Beta 1 does not ship this but it is available in Xcode 12.0...
|
||||
case "HKMetadataKeyBarometricPressure":
|
||||
return true;
|
||||
#if __WATCHOS__
|
||||
case "AVCaptureLensPositionCurrent": // looks like this was bound by mistake in watchOS
|
||||
return true;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,12 @@ namespace Introspection {
|
|||
protected override bool Skip (Type type)
|
||||
{
|
||||
switch (type.Namespace) {
|
||||
#if __WATCHOS__
|
||||
case "GameKit":
|
||||
if (IntPtr.Size == 4)
|
||||
return true;
|
||||
break;
|
||||
#endif
|
||||
// they don't answer on the simulator (Apple implementation does not work) but fine on devices
|
||||
case "GameController":
|
||||
case "MonoTouch.GameController":
|
||||
|
|
Загрузка…
Ссылка в новой задаче