[passkit] Update for xcode 10.2 beta 1 (#5498)

Filed rdar #47596444 for missing PKDisbursementVoucher.h header file

Tracked in release checklist https://github.com/xamarin/xamarin-macios/issues/5086
This commit is contained in:
Sebastien Pouliot 2019-01-28 16:08:18 -05:00 коммит произвёл GitHub
Родитель 850ea9d10d
Коммит 626a7c188a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 91 добавлений и 26 удалений

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

@ -858,6 +858,14 @@ namespace PassKit {
[iOS (12,0), Watch (5,0)]
[Field ("PKPaymentNetworkEftpos")]
NSString Eftpos { get; }
[Watch (5,1,2)][iOS (12,1,1)]
[Field ("PKPaymentNetworkElo")]
NSString Elo { get; }
[Watch (5,1,2)][iOS (12,1,1)]
[Field ("PKPaymentNetworkMada")]
NSString Mada { get; }
}
#if !WATCH
@ -1158,4 +1166,73 @@ namespace PassKit {
[Field ("PKPaymentErrorPostalAddressUserInfoKey")]
NSString PostalAddressUserInfoKey { get; }
}
interface IPKDisbursementAuthorizationControllerDelegate { }
[NoWatch]
[iOS (12,2)]
[Protocol, Model]
[BaseType (typeof (NSObject))]
interface PKDisbursementAuthorizationControllerDelegate {
#if false // missing PKDisbursementVoucher.h header inn xcode 10.2 beta 1
[Abstract]
[Export ("disbursementAuthorizationController:didAuthorizeWithDisbursementVoucher:")]
void DidAuthorize (PKDisbursementAuthorizationController controller, PKDisbursementVoucher disbursementVoucher);
#endif
[Abstract]
[Export ("disbursementAuthorizationControllerDidFinish:")]
void DidFinish (PKDisbursementAuthorizationController controller);
}
[NoWatch]
[iOS (12,2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface PKDisbursementAuthorizationController {
[Export ("initWithDisbursementRequest:delegate:")]
IntPtr Constructor (PKDisbursementRequest disbursementRequest, IPKDisbursementAuthorizationControllerDelegate @delegate);
[Wrap ("WeakDelegate")]
IPKDisbursementAuthorizationControllerDelegate Delegate { get; }
[NullAllowed, Export ("delegate", ArgumentSemantic.Assign)]
NSObject WeakDelegate { get; }
[Async]
[Export ("authorizeDisbursementWithCompletion:")]
void AuthorizeDisbursement (Action<bool, NSError> completion);
[Static]
[Export ("supportsDisbursements")]
bool SupportsDisbursements { get; }
}
[NoWatch]
[iOS (12, 2)]
[Native]
public enum PKDisbursementRequestSchedule : long {
OneTime,
Future,
}
[NoWatch]
[iOS (12, 2)]
[BaseType (typeof (NSObject))]
interface PKDisbursementRequest {
[NullAllowed, Export ("amount", ArgumentSemantic.Copy)]
NSDecimalNumber Amount { get; set; }
[NullAllowed, Export ("currencyCode")]
string CurrencyCode { get; set; }
[Export ("countryCode")]
string CountryCode { get; set; }
[Export ("requestSchedule", ArgumentSemantic.Assign)]
PKDisbursementRequestSchedule RequestSchedule { get; set; }
[NullAllowed, Export ("summaryItems", ArgumentSemantic.Copy)]
PKPaymentSummaryItem [] SummaryItems { get; set; }
}
}

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

@ -307,6 +307,7 @@ namespace Introspection
"Luma",
"Lzfse", // acronym
"Lzma", // acronym
"Mada", // payment system
"Mapbuffer",
"Matchingcoalesce",
"Megaampere",

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

@ -239,6 +239,8 @@ namespace Introspection {
case "ARLightEstimate":
case "ASCredentialProviderExtensionContext":
case "ILClassificationUIExtensionContext": // Conformance not in headers
// iOS 12.2
case "PKDisbursementRequest":
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":
@ -416,6 +418,8 @@ namespace Introspection {
// Xcode 10
case "ASCredentialProviderExtensionContext":
case "ILClassificationUIExtensionContext": // Conformance not in headers
// iOS 12.2
case "PKDisbursementRequest":
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":

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

@ -3,3 +3,6 @@
## fixed in XAMCORE_4_0 - API break
!incorrect-protocol-member! PKPaymentAuthorizationViewControllerDelegate::paymentAuthorizationViewControllerWillAuthorizePayment: is OPTIONAL and should NOT be abstract
## https://trello.com/c/X3UgiNyC/137-47596444-missing-pkdisbursementvoucherh-header-file
!missing-protocol-member! PKDisbursementAuthorizationControllerDelegate::disbursementAuthorizationController:didAuthorizeWithDisbursementVoucher: not found

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

@ -1,20 +0,0 @@
!missing-enum! PKDisbursementRequestSchedule not bound
!missing-field! PKPaymentNetworkElo not bound
!missing-field! PKPaymentNetworkMada not bound
!missing-protocol! PKDisbursementAuthorizationControllerDelegate not bound
!missing-selector! +PKDisbursementAuthorizationController::supportsDisbursements not bound
!missing-selector! PKDisbursementAuthorizationController::authorizeDisbursementWithCompletion: not bound
!missing-selector! PKDisbursementAuthorizationController::delegate not bound
!missing-selector! PKDisbursementAuthorizationController::initWithDisbursementRequest:delegate: not bound
!missing-selector! PKDisbursementRequest::amount not bound
!missing-selector! PKDisbursementRequest::countryCode not bound
!missing-selector! PKDisbursementRequest::currencyCode not bound
!missing-selector! PKDisbursementRequest::requestSchedule not bound
!missing-selector! PKDisbursementRequest::setAmount: not bound
!missing-selector! PKDisbursementRequest::setCountryCode: not bound
!missing-selector! PKDisbursementRequest::setCurrencyCode: not bound
!missing-selector! PKDisbursementRequest::setRequestSchedule: not bound
!missing-selector! PKDisbursementRequest::setSummaryItems: not bound
!missing-selector! PKDisbursementRequest::summaryItems not bound
!missing-type! PKDisbursementAuthorizationController not bound
!missing-type! PKDisbursementRequest not bound

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

@ -8,3 +8,9 @@
!missing-selector! PKLabeledValue::label not bound
!missing-selector! PKLabeledValue::value not bound
!missing-type! PKLabeledValue not bound
## types have no availability annotationns - but all API marked as unavailable on watchOS
!missing-enum! PKDisbursementRequestSchedule not bound
!missing-protocol! PKDisbursementAuthorizationControllerDelegate not bound
!missing-type! PKDisbursementAuthorizationController not bound
!missing-type! PKDisbursementRequest not bound

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

@ -1,6 +0,0 @@
!missing-enum! PKDisbursementRequestSchedule not bound
!missing-field! PKPaymentNetworkElo not bound
!missing-field! PKPaymentNetworkMada not bound
!missing-protocol! PKDisbursementAuthorizationControllerDelegate not bound
!missing-type! PKDisbursementAuthorizationController not bound
!missing-type! PKDisbursementRequest not bound