[introspection] Do not let intro check on QTKit now that is just stubs (#9843)

* [introspection] Do not let intro check on QTKit now that is just stubs

* Update ApiCtorInitTest.cs

* [QTKit] Fix more QT Tests

* Remove some more QT leftovers
This commit is contained in:
Alex Soto 2020-10-11 14:43:41 -04:00 коммит произвёл GitHub
Родитель 3924a30c4b
Коммит cb524b13a8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 17 добавлений и 7 удалений

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

@ -123,8 +123,6 @@ namespace Xamarin.Mac.Tests
if (IntPtr.Size == 4 && PlatformHelper.CheckSystemVersion(10, 13)) // Removed from 32-bit in macOS 10.13
return true;
break;
case "QTMovie":
return TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 14, 4); // Broke in macOS 10.14.4.
case "AVCaptureView":
// Deallocating a AVCaptureView makes it trigger a permission dialog, which we don't want, so just skip this type.
return true;
@ -132,7 +130,7 @@ namespace Xamarin.Mac.Tests
switch (t.Namespace) {
case "QTKit":
return TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 15); // QTKit is gone in 10.15.
return true; // QTKit has been removed from macos.
}
return false;

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

@ -118,16 +118,18 @@ namespace Introspection {
case "CKSubscription":
case "MPSCnnConvolutionState":
return true;
case "QTMovie":
return TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 14, 4); // Broke in macOS 10.14.4.
}
#if __IOS__
switch (type.Namespace) {
#if __IOS__
case "WatchKit":
return true; // WatchKit has been removed from iOS.
}
#elif MONOMAC
case "QTKit":
return true; // QTKit has been removed from macos.
#endif
}
// skip types that we renamed / rewrite since they won't behave correctly (by design)
if (SkipDueToRejectedTypes (type))
return true;

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

@ -52,6 +52,9 @@ namespace Introspection {
if (!Mac.CheckSystemVersion (10, 12) || IntPtr.Size != 8)
return true;
break;
case "MonoMac.QTKit": // QTKit has been removed from macOS
case "QTKit":
return true;
}
return false;
}

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

@ -20,6 +20,13 @@ namespace Introspection {
case "VNImageOptions":
return true;
}
switch (type.Namespace) {
case "MonoMac.QTKit": // QTKit has been removed from macOS
case "QTKit":
return true;
}
return base.Skip (type);
}
}