[introspection] A few fixes for watchOS.

This commit is contained in:
Rolf Bjarne Kvinge 2022-06-29 13:30:53 +02:00
Родитель 50db0e315e
Коммит 330ddae9ba
3 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -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":