From 4ccc1f996ef9f585efc93a024937edc0c4ed4293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20SEMENCE?= Date: Wed, 25 Mar 2020 15:37:48 +0100 Subject: [PATCH] Fix issue with XCode 11.4 --- Stripe/PublicHeaders/STPAPIClient.h | 2 +- Stripe/STPAPIClient+Private.h | 2 +- Stripe/STPAPIClient.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Stripe/PublicHeaders/STPAPIClient.h b/Stripe/PublicHeaders/STPAPIClient.h index 66bef64ea80..bc2a598de03 100644 --- a/Stripe/PublicHeaders/STPAPIClient.h +++ b/Stripe/PublicHeaders/STPAPIClient.h @@ -325,7 +325,7 @@ static NSString *const STPSDKVersion = @"17.0.2"; @param secret The client secret of the source. Cannot be nil. @param completion The callback to run with the returned Source object, or an error. */ -- (void)retrieveSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret completion:(STPSourceCompletionBlock)completion; +- (void)retrieveSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret completion:(void (^)(STPSource * _Nullable, NSHTTPURLResponse * _Nullable, NSError * _Nullable))completion; /** Starts polling the Source object with the given ID. For payment methods that require diff --git a/Stripe/STPAPIClient+Private.h b/Stripe/STPAPIClient+Private.h index 3eb15994949..7b9c55293de 100644 --- a/Stripe/STPAPIClient+Private.h +++ b/Stripe/STPAPIClient+Private.h @@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN - (NSURLSessionDataTask *)retrieveSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret - responseCompletion:(STPAPIResponseBlock)completion; + responseCompletion:(void (^)(STPSource * _Nullable, NSHTTPURLResponse * _Nullable, NSError * _Nullable))completion; @end diff --git a/Stripe/STPAPIClient.m b/Stripe/STPAPIClient.m index 700d2b9d6f5..09e7d2b74f3 100644 --- a/Stripe/STPAPIClient.m +++ b/Stripe/STPAPIClient.m @@ -498,7 +498,7 @@ - (NSURLSessionDataTask *)retrieveSourceWithId:(NSString *)identifier clientSecr endpoint:endpoint parameters:parameters deserializer:[STPSource new] - completion:completion]; + completion:(void (^)(STPSource * _Nullable, NSHTTPURLResponse * _Nullable, NSError * _Nullable))completion]; } - (void)startPollingSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret timeout:(NSTimeInterval)timeout completion:(STPSourceCompletionBlock)completion {