[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:
Родитель
3924a30c4b
Коммит
cb524b13a8
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче