[storekit] Update Xcode 11 beta 1 to 5 (#6760)
This commit is contained in:
Родитель
ca81952852
Коммит
5464ead926
|
@ -32,6 +32,7 @@ namespace StoreKit {
|
|||
[Wrap ("State", IsVirtual = true)]
|
||||
SKDownloadState DownloadState { get; }
|
||||
|
||||
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'ExpectedContentLength' instead.")]
|
||||
[Export ("contentLength", ArgumentSemantic.Copy)]
|
||||
NSNumber ContentLength { get; }
|
||||
#else
|
||||
|
@ -39,10 +40,15 @@ namespace StoreKit {
|
|||
[Export ("downloadState")]
|
||||
SKDownloadState DownloadState { get; }
|
||||
|
||||
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'ExpectedContentLength' instead.")]
|
||||
[Export ("contentLength")]
|
||||
long ContentLength { get; }
|
||||
#endif
|
||||
|
||||
[TV (13, 0), Mac (10, 15), iOS (13, 0)]
|
||||
[Export ("expectedContentLength")]
|
||||
long ExpectedContentLength { get; }
|
||||
|
||||
[Export ("contentIdentifier")]
|
||||
string ContentIdentifier { get; }
|
||||
|
||||
|
@ -204,7 +210,20 @@ namespace StoreKit {
|
|||
[Export ("cancelDownloads:")]
|
||||
void CancelDownloads (SKDownload [] downloads);
|
||||
|
||||
[Mac (10, 15), iOS (13, 0)]
|
||||
[Wrap ("WeakDelegate")]
|
||||
[NullAllowed]
|
||||
ISKPaymentQueueDelegate Delegate { get; set; }
|
||||
|
||||
[Mac (10, 15), iOS (13, 0)]
|
||||
[TV (13,0)]
|
||||
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
|
||||
NSObject WeakDelegate { get; set; }
|
||||
|
||||
[Mac (10, 15), iOS (13, 0)]
|
||||
[TV (13,0)]
|
||||
[NullAllowed, Export ("storefront")]
|
||||
SKStorefront Storefront { get; }
|
||||
}
|
||||
|
||||
[BaseType (typeof (NSObject))]
|
||||
|
@ -224,14 +243,23 @@ namespace StoreKit {
|
|||
[Export ("productIdentifier")]
|
||||
string ProductIdentifier { get; }
|
||||
|
||||
[iOS (6,0)]
|
||||
#if MONOMAC
|
||||
[Deprecated (PlatformName.MacOSX, 10,15, message: "Use 'IsDownloadable' instead.")]
|
||||
[Export ("downloadable")]
|
||||
bool Downloadable { get; }
|
||||
#elif !XAMCORE_4_0
|
||||
[iOS (6,0)]
|
||||
[Obsolete ("Use 'IsDownloadable' instead.")]
|
||||
bool Downloadable {
|
||||
#if !MONOMAC
|
||||
[Bind ("isDownloadable")]
|
||||
#endif
|
||||
[Wrap ("IsDownloadable")]
|
||||
get;
|
||||
}
|
||||
#endif
|
||||
|
||||
[iOS (6,0)]
|
||||
[Mac (10,15)]
|
||||
[Export ("isDownloadable")]
|
||||
bool IsDownloadable { get; }
|
||||
|
||||
[NoiOS]
|
||||
#if XAMCORE_4_0
|
||||
|
@ -304,6 +332,12 @@ namespace StoreKit {
|
|||
[iOS (11,0)][TV (11,0)][NoMac]
|
||||
[Export ("paymentQueue:shouldAddStorePayment:forProduct:")]
|
||||
bool ShouldAddStorePayment (SKPaymentQueue queue, SKPayment payment, SKProduct product);
|
||||
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13,0)]
|
||||
[Export ("paymentQueueDidChangeStorefront:")]
|
||||
void DidChangeStorefront (SKPaymentQueue queue);
|
||||
}
|
||||
|
||||
[BaseType (typeof (NSObject))]
|
||||
|
@ -811,4 +845,29 @@ namespace StoreKit {
|
|||
Introductory,
|
||||
Subscription,
|
||||
}
|
||||
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13,0)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
[DisableDefaultCtor] // no `init` but non-null properties
|
||||
interface SKStorefront {
|
||||
|
||||
[Export ("countryCode")]
|
||||
string CountryCode { get; }
|
||||
|
||||
[Export ("identifier")]
|
||||
string Identifier { get; }
|
||||
}
|
||||
|
||||
interface ISKPaymentQueueDelegate {}
|
||||
|
||||
[Mac (10,15), iOS (13,0)]
|
||||
[Protocol]
|
||||
[Model (AutoGeneratedName = true)]
|
||||
[BaseType (typeof(NSObject))]
|
||||
interface SKPaymentQueueDelegate {
|
||||
[Export ("paymentQueue:shouldContinueTransaction:inStorefront:")]
|
||||
bool ShouldContinueTransaction (SKPaymentQueue paymentQueue, SKPaymentTransaction transaction, SKStorefront newStorefront);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
## deprecated w/replacement in iOS 6, not version information specific to iOS
|
||||
!missing-selector! SKProduct::contentVersion not bound
|
|
@ -1,11 +0,0 @@
|
|||
!deprecated-attribute-missing! SKDownload::contentLength missing a [Deprecated] attribute
|
||||
!missing-protocol! SKPaymentQueueDelegate not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueueDidChangeStorefront: not found
|
||||
!missing-selector! SKDownload::expectedContentLength not bound
|
||||
!missing-selector! SKPaymentQueue::delegate not bound
|
||||
!missing-selector! SKPaymentQueue::setDelegate: not bound
|
||||
!missing-selector! SKPaymentQueue::storefront not bound
|
||||
!missing-selector! SKProduct::contentVersion not bound
|
||||
!missing-selector! SKStorefront::countryCode not bound
|
||||
!missing-selector! SKStorefront::identifier not bound
|
||||
!missing-type! SKStorefront not bound
|
|
@ -1,3 +1,7 @@
|
|||
# delegate do not mention macOS (as unavailable) but the non-delegate type is not (available)
|
||||
!missing-protocol! SKCloudServiceSetupViewControllerDelegate not bound
|
||||
!missing-protocol! SKStoreProductViewControllerDelegate not bound
|
||||
|
||||
# Fixed in XAMCORE_4_0
|
||||
!unknown-native-enum! SKCloudServiceAuthorizationStatus bound
|
||||
!unknown-native-enum! SKCloudServiceCapability bound
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
!deprecated-attribute-missing! SKDownload::contentLength missing a [Deprecated] attribute
|
||||
!deprecated-attribute-missing! SKProduct::downloadable missing a [Deprecated] attribute
|
||||
!missing-protocol! SKCloudServiceSetupViewControllerDelegate not bound
|
||||
!missing-protocol! SKPaymentQueueDelegate not bound
|
||||
!missing-protocol! SKStoreProductViewControllerDelegate not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueueDidChangeStorefront: not found
|
||||
!missing-selector! SKDownload::expectedContentLength not bound
|
||||
!missing-selector! SKPaymentQueue::delegate not bound
|
||||
!missing-selector! SKPaymentQueue::setDelegate: not bound
|
||||
!missing-selector! SKPaymentQueue::storefront not bound
|
||||
!missing-selector! SKProduct::isDownloadable not bound
|
||||
!missing-selector! SKStorefront::countryCode not bound
|
||||
!missing-selector! SKStorefront::identifier not bound
|
||||
!missing-type! SKStorefront not bound
|
|
@ -1,10 +0,0 @@
|
|||
!deprecated-attribute-missing! SKDownload::contentLength missing a [Deprecated] attribute
|
||||
!missing-protocol! SKPaymentQueueDelegate not bound
|
||||
!missing-protocol-member! SKPaymentTransactionObserver::paymentQueueDidChangeStorefront: not found
|
||||
!missing-selector! SKDownload::expectedContentLength not bound
|
||||
!missing-selector! SKPaymentQueue::delegate not bound
|
||||
!missing-selector! SKPaymentQueue::setDelegate: not bound
|
||||
!missing-selector! SKPaymentQueue::storefront not bound
|
||||
!missing-selector! SKStorefront::countryCode not bound
|
||||
!missing-selector! SKStorefront::identifier not bound
|
||||
!missing-type! SKStorefront not bound
|
Загрузка…
Ссылка в новой задаче