[catalyst] Remove some framework that are not available on catalyst (#10658)
Those show up with only `!unknown-*` inside extrospection tests. There's a few more frameworks to disable but they require some changes inside `src/generate-type-forwarders/Program.cs` and are better done in separate pull-requests.
This commit is contained in:
Родитель
60d002d75e
Коммит
a56960b023
|
@ -4,12 +4,12 @@ using System;
|
|||
using System.Runtime.InteropServices;
|
||||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
using iAd;
|
||||
#endif
|
||||
|
||||
namespace AVKit {
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
public partial class AVPlayerViewController {
|
||||
|
||||
// This is a [Category] -> C# extension method (see adlib.cs) but it targets on static selector
|
||||
|
|
|
@ -4,13 +4,13 @@ using System;
|
|||
using System.Runtime.InteropServices;
|
||||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
using iAd;
|
||||
#endif
|
||||
|
||||
namespace MediaPlayer {
|
||||
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
public partial class MPMoviePlayerController {
|
||||
// This is a [Category] -> C# extension method (see adlib.cs) but it targets on static selector
|
||||
// the resulting syntax does not look good in user code so we provide a better looking API
|
||||
|
|
|
@ -2468,9 +2468,11 @@ namespace UIKit {
|
|||
[Field ("UIWindowSceneSessionRoleExternalDisplay")]
|
||||
ExternalDisplay,
|
||||
|
||||
#if HAS_CARPLAY
|
||||
[NoTV][NoWatch]
|
||||
[Field ("CPTemplateApplicationSceneSessionRoleApplication", "CarPlay")]
|
||||
CarTemplateApplication,
|
||||
#endif
|
||||
}
|
||||
|
||||
[iOS (13,0), TV (13,0), NoWatch]
|
||||
|
|
|
@ -14,7 +14,7 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Foundation;
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
using iAd;
|
||||
#endif
|
||||
using ObjCRuntime;
|
||||
|
@ -62,7 +62,7 @@ namespace UIKit {
|
|||
yield return uiv;
|
||||
}
|
||||
|
||||
#if IOS
|
||||
#if HAS_IAD
|
||||
// This is a [Category] -> C# extension method (see adlib.cs) but it targets on static selector
|
||||
// the resulting syntax does not look good in user code so we provide a better looking API
|
||||
// https://trello.com/c/iQpXOxCd/227-category-and-static-methods-selectors
|
||||
|
|
|
@ -37,8 +37,10 @@ using CoreData;
|
|||
using CoreFoundation;
|
||||
using Foundation;
|
||||
using CoreGraphics;
|
||||
#if IOS
|
||||
#if HAS_APPCLIP
|
||||
using AppClip;
|
||||
#endif
|
||||
#if IOS
|
||||
using QuickLook;
|
||||
#endif
|
||||
#if !TVOS
|
||||
|
@ -5426,11 +5428,13 @@ namespace Foundation
|
|||
[NullAllowed, Export ("targetContentIdentifier")]
|
||||
string TargetContentIdentifier { get; set; }
|
||||
|
||||
#if HAS_APPCLIP
|
||||
// Inlined from NSUserActivity (AppClip)
|
||||
[iOS (14,0)][NoTV][NoMac][NoWatch]
|
||||
[Export ("appClipActivationPayload", ArgumentSemantic.Strong)]
|
||||
[NullAllowed]
|
||||
APActivationPayload AppClipActivationPayload { get; }
|
||||
#endif
|
||||
}
|
||||
|
||||
[iOS (8,0)][Mac (10,10)] // same as NSUserActivity
|
||||
|
|
|
@ -2184,10 +2184,8 @@ MACCATALYST_FRAMEWORKS = \
|
|||
AdSupport \
|
||||
AddressBook \
|
||||
AddressBookUI \
|
||||
AppClip \
|
||||
AppTrackingTransparency \
|
||||
ARKit \
|
||||
AssetsLibrary \
|
||||
AudioToolbox \
|
||||
AudioUnit \
|
||||
AutomaticAssessmentConfiguration \
|
||||
|
@ -2210,20 +2208,16 @@ MACCATALYST_FRAMEWORKS = \
|
|||
CoreMotion \
|
||||
CoreNFC \
|
||||
CoreSpotlight \
|
||||
CoreTelephony \
|
||||
CoreText \
|
||||
DeviceCheck \
|
||||
EventKit \
|
||||
EventKitUI \
|
||||
ExternalAccessory \
|
||||
FileProvider \
|
||||
GameController \
|
||||
GameplayKit \
|
||||
HealthKit \
|
||||
HealthKitUI \
|
||||
HomeKit \
|
||||
IdentityLookup \
|
||||
IdentityLookupUI \
|
||||
ImageIO \
|
||||
Intents \
|
||||
IntentsUI \
|
||||
|
@ -2236,7 +2230,6 @@ MACCATALYST_FRAMEWORKS = \
|
|||
MediaPlayer \
|
||||
MediaToolbox \
|
||||
Messages \
|
||||
MessageUI \
|
||||
Metal \
|
||||
MetalKit \
|
||||
MetalPerformanceShaders \
|
||||
|
@ -2270,9 +2263,7 @@ MACCATALYST_FRAMEWORKS = \
|
|||
VideoSubscriberAccount \
|
||||
Vision \
|
||||
VisionKit \
|
||||
WatchConnectivity \
|
||||
WKWebKit \
|
||||
iAd \
|
||||
|
||||
#
|
||||
# Compute the SOURCES variables.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2014 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_IAD
|
||||
|
||||
using System;
|
||||
using AVKit;
|
||||
|
@ -33,4 +33,4 @@ namespace MonoTouchFixtures.AVKit {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_IAD
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2017 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_EVENTKITUI
|
||||
|
||||
using System;
|
||||
using EventKitUI;
|
||||
|
@ -31,4 +31,4 @@ namespace MonoTouchFixtures.EventKitUI {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif // HAS_EVENTKITUI
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2014 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_IAD
|
||||
|
||||
using System;
|
||||
using Foundation;
|
||||
|
@ -37,4 +37,4 @@ namespace MonoTouchFixtures.MediaPlayer {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_IAD
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2012 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_MESSAGEUI
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
@ -57,4 +57,4 @@ namespace MonoTouchFixtures.MessageUI {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_MESSAGEUI
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2016 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_MESSAGE
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
@ -38,5 +38,5 @@ namespace MonoTouchFixtures.MessageUI {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_MESSAGE
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2013 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_PHOTOS && !__TVOS__
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
@ -16,7 +16,9 @@ using UIKit;
|
|||
using ObjCRuntime;
|
||||
using Photos;
|
||||
using CoreGraphics;
|
||||
#if HAS_ASSETSLIBRARY
|
||||
using AssetsLibrary;
|
||||
#endif
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MonoTouchFixtures.Photos {
|
||||
|
@ -25,14 +27,25 @@ namespace MonoTouchFixtures.Photos {
|
|||
[Preserve (AllMembers = true)]
|
||||
public class FetchResultTest {
|
||||
|
||||
[SetUp]
|
||||
public void Setup ()
|
||||
{
|
||||
TestRuntime.AssertSystemVersion (PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
|
||||
#if HAS_ASSETSLIBRARY
|
||||
if (ALAssetsLibrary.AuthorizationStatus != ALAuthorizationStatus.Authorized)
|
||||
Assert.Inconclusive ("Requires access to the photo library");
|
||||
#elif __MACCATALYST__
|
||||
TestRuntime.AssertSystemVersion (PlatformName.MacCatalyst, 14, 0, throwIfOtherPlatform: false);
|
||||
if (PHPhotoLibrary.GetAuthorizationStatus (PHAccessLevel.ReadWrite) != PHAuthorizationStatus.Authorized)
|
||||
Assert.Inconclusive ("Requires access to the photo library");
|
||||
#else
|
||||
#error Add authorization check for the platform
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void FetchResultToArray ()
|
||||
{
|
||||
TestRuntime.AssertSystemVersion (PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
|
||||
|
||||
if (ALAssetsLibrary.AuthorizationStatus != ALAuthorizationStatus.Authorized)
|
||||
Assert.Inconclusive ("Requires access to the photo library");
|
||||
|
||||
var collection = PHAsset.FetchAssets (PHAssetMediaType.Image, null);
|
||||
if (collection.Count == 0) {
|
||||
XamagramImage.Image.SaveToPhotosAlbum (null);
|
||||
|
@ -47,11 +60,6 @@ namespace MonoTouchFixtures.Photos {
|
|||
[Test]
|
||||
public void FetchResultIndex ()
|
||||
{
|
||||
TestRuntime.AssertSystemVersion (PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
|
||||
|
||||
if (ALAssetsLibrary.AuthorizationStatus != ALAuthorizationStatus.Authorized)
|
||||
Assert.Inconclusive ("Requires access to the photo library");
|
||||
|
||||
var collection = PHAsset.FetchAssets (PHAssetMediaType.Image, null);
|
||||
if (collection.Count == 0) {
|
||||
XamagramImage.Image.SaveToPhotosAlbum (null);
|
||||
|
@ -66,11 +74,6 @@ namespace MonoTouchFixtures.Photos {
|
|||
[Test]
|
||||
public void FetchResultObjectsAt ()
|
||||
{
|
||||
TestRuntime.AssertSystemVersion (PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
|
||||
|
||||
if (ALAssetsLibrary.AuthorizationStatus != ALAuthorizationStatus.Authorized)
|
||||
Assert.Inconclusive ("Requires access to the photo library");
|
||||
|
||||
var collection = PHAsset.FetchAssets (PHAssetMediaType.Image, null);
|
||||
if (collection.Count == 0) {
|
||||
XamagramImage.Image.SaveToPhotosAlbum (null);
|
||||
|
@ -137,4 +140,4 @@ namespace MonoTouchFixtures.Photos {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_PHOTOS && !__TVOS__
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Reflection;
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
using ObjCRuntime;
|
||||
#if !__TVOS__
|
||||
#if HAS_IAD
|
||||
using iAd;
|
||||
#endif
|
||||
using NUnit.Framework;
|
||||
|
@ -172,7 +172,7 @@ namespace MonoTouchFixtures.UIKit {
|
|||
}
|
||||
}
|
||||
|
||||
#if !__TVOS__
|
||||
#if HAS_IAD
|
||||
[Test]
|
||||
public void InterstitialAds_New ()
|
||||
{
|
||||
|
@ -180,7 +180,7 @@ namespace MonoTouchFixtures.UIKit {
|
|||
|
||||
UIViewController.PrepareForInterstitialAds ();
|
||||
}
|
||||
#endif // !__TVOS__
|
||||
#endif // HAS_IAD
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
// Copyright 2011 Xamarin Inc. All rights reserved
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_IAD
|
||||
|
||||
using System;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
#if !__WATCHOS__
|
||||
using iAd;
|
||||
#endif
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MonoTouchFixtures.iAd {
|
||||
|
@ -37,4 +35,4 @@ namespace MonoTouchFixtures.iAd {
|
|||
}
|
||||
}
|
||||
|
||||
#endif // !__TVOS__ && !__WATCHOS__
|
||||
#endif // HAS_IAD
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Copyright 2013 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if !__TVOS__ && !__WATCHOS__ && !MONOMAC
|
||||
#if HAS_IAD
|
||||
|
||||
using System;
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
!unknown-field! APActivationPayloadErrorDomain bound
|
||||
!unknown-native-enum! APActivationPayloadErrorCode bound
|
||||
!unknown-type! APActivationPayload bound
|
|
@ -1,29 +0,0 @@
|
|||
!unknown-field! ALAssetLibraryDeletedAssetGroupsKey bound
|
||||
!unknown-field! ALAssetLibraryInsertedAssetGroupsKey bound
|
||||
!unknown-field! ALAssetLibraryUpdatedAssetGroupsKey bound
|
||||
!unknown-field! ALAssetLibraryUpdatedAssetsKey bound
|
||||
!unknown-field! ALAssetPropertyAssetURL bound
|
||||
!unknown-field! ALAssetPropertyDate bound
|
||||
!unknown-field! ALAssetPropertyDuration bound
|
||||
!unknown-field! ALAssetPropertyLocation bound
|
||||
!unknown-field! ALAssetPropertyOrientation bound
|
||||
!unknown-field! ALAssetPropertyRepresentations bound
|
||||
!unknown-field! ALAssetPropertyType bound
|
||||
!unknown-field! ALAssetPropertyURLs bound
|
||||
!unknown-field! ALAssetsGroupPropertyName bound
|
||||
!unknown-field! ALAssetsGroupPropertyPersistentID bound
|
||||
!unknown-field! ALAssetsGroupPropertyType bound
|
||||
!unknown-field! ALAssetsGroupPropertyURL bound
|
||||
!unknown-field! ALAssetsLibraryChangedNotification bound
|
||||
!unknown-field! ALAssetsLibraryErrorDomain bound
|
||||
!unknown-field! ALAssetTypePhoto bound
|
||||
!unknown-field! ALAssetTypeUnknown bound
|
||||
!unknown-field! ALAssetTypeVideo bound
|
||||
!unknown-native-enum! ALAssetOrientation bound
|
||||
!unknown-native-enum! ALAssetsGroupType bound
|
||||
!unknown-native-enum! ALAuthorizationStatus bound
|
||||
!unknown-type! ALAsset bound
|
||||
!unknown-type! ALAssetRepresentation bound
|
||||
!unknown-type! ALAssetsFilter bound
|
||||
!unknown-type! ALAssetsGroup bound
|
||||
!unknown-type! ALAssetsLibrary bound
|
|
@ -1,27 +0,0 @@
|
|||
!unknown-field! CTRadioAccessTechnologyCDMA1x bound
|
||||
!unknown-field! CTRadioAccessTechnologyCDMAEVDORev0 bound
|
||||
!unknown-field! CTRadioAccessTechnologyCDMAEVDORevA bound
|
||||
!unknown-field! CTRadioAccessTechnologyCDMAEVDORevB bound
|
||||
!unknown-field! CTRadioAccessTechnologyEdge bound
|
||||
!unknown-field! CTRadioAccessTechnologyeHRPD bound
|
||||
!unknown-field! CTRadioAccessTechnologyGPRS bound
|
||||
!unknown-field! CTRadioAccessTechnologyHSDPA bound
|
||||
!unknown-field! CTRadioAccessTechnologyHSUPA bound
|
||||
!unknown-field! CTRadioAccessTechnologyLTE bound
|
||||
!unknown-field! CTRadioAccessTechnologyNR bound
|
||||
!unknown-field! CTRadioAccessTechnologyNRNSA bound
|
||||
!unknown-field! CTRadioAccessTechnologyWCDMA bound
|
||||
!unknown-field! CTServiceRadioAccessTechnologyDidChangeNotification bound
|
||||
!unknown-native-enum! CTCellularDataRestrictedState bound
|
||||
!unknown-native-enum! CTCellularPlanProvisioningAddPlanResult bound
|
||||
!unknown-protocol! CTSubscriberDelegate bound
|
||||
!unknown-protocol! CTTelephonyNetworkInfoDelegate bound
|
||||
!unknown-type! CTCall bound
|
||||
!unknown-type! CTCallCenter bound
|
||||
!unknown-type! CTCarrier bound
|
||||
!unknown-type! CTCellularData bound
|
||||
!unknown-type! CTCellularPlanProvisioning bound
|
||||
!unknown-type! CTCellularPlanProvisioningRequest bound
|
||||
!unknown-type! CTSubscriber bound
|
||||
!unknown-type! CTSubscriberInfo bound
|
||||
!unknown-type! CTTelephonyNetworkInfo bound
|
|
@ -1,11 +0,0 @@
|
|||
!unknown-native-enum! EKCalendarChooserDisplayStyle bound
|
||||
!unknown-native-enum! EKCalendarChooserSelectionStyle bound
|
||||
!unknown-native-enum! EKEventEditViewAction bound
|
||||
!unknown-native-enum! EKEventViewAction bound
|
||||
!unknown-pinvoke! EventKitUIBundle bound
|
||||
!unknown-protocol! EKCalendarChooserDelegate bound
|
||||
!unknown-protocol! EKEventEditViewDelegate bound
|
||||
!unknown-protocol! EKEventViewDelegate bound
|
||||
!unknown-type! EKCalendarChooser bound
|
||||
!unknown-type! EKEventEditViewController bound
|
||||
!unknown-type! EKEventViewController bound
|
|
@ -1 +0,0 @@
|
|||
!unknown-type! HKActivityRingView bound
|
|
@ -1,2 +0,0 @@
|
|||
!unknown-type! ILClassificationUIExtensionContext bound
|
||||
!unknown-type! ILClassificationUIExtensionViewController bound
|
|
@ -1,9 +0,0 @@
|
|||
!unknown-field! MFMailComposeErrorDomain bound
|
||||
!unknown-field! MFMessageComposeViewControllerAttachmentAlternateFilename bound
|
||||
!unknown-field! MFMessageComposeViewControllerAttachmentURL bound
|
||||
!unknown-field! MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification bound
|
||||
!unknown-field! MFMessageComposeViewControllerTextMessageAvailabilityKey bound
|
||||
!unknown-protocol! MFMailComposeViewControllerDelegate bound
|
||||
!unknown-protocol! MFMessageComposeViewControllerDelegate bound
|
||||
!unknown-type! MFMailComposeViewController bound
|
||||
!unknown-type! MFMessageComposeViewController bound
|
|
@ -1,8 +0,0 @@
|
|||
!unknown-field! WCErrorDomain bound
|
||||
!unknown-native-enum! WCErrorCode bound
|
||||
!unknown-native-enum! WCSessionActivationState bound
|
||||
!unknown-protocol! WCSessionDelegate bound
|
||||
!unknown-type! WCSession bound
|
||||
!unknown-type! WCSessionFile bound
|
||||
!unknown-type! WCSessionFileTransfer bound
|
||||
!unknown-type! WCSessionUserInfoTransfer bound
|
|
@ -1,15 +0,0 @@
|
|||
!unknown-field! ADBannerContentSizeIdentifierLandscape bound
|
||||
!unknown-field! ADBannerContentSizeIdentifierPortrait bound
|
||||
!unknown-field! ADClientErrorDomain bound
|
||||
!unknown-field! ADErrorDomain bound
|
||||
!unknown-native-enum! ADAdType bound
|
||||
!unknown-native-enum! ADClientError bound
|
||||
!unknown-native-enum! ADError bound
|
||||
!unknown-native-enum! ADInterstitialPresentationPolicy bound
|
||||
!unknown-pinvoke! ADClampedBannerSize bound
|
||||
!unknown-protocol! ADBannerViewDelegate bound
|
||||
!unknown-protocol! ADInterstitialAdDelegate bound
|
||||
!unknown-type! ADBannerView bound
|
||||
!unknown-type! ADClient bound
|
||||
!unknown-type! ADInterstitialAd bound
|
||||
!unknown-type! ADInterstitialAdPresentationViewController bound
|
Загрузка…
Ссылка в новой задаче