| 123456789101112131415161718192021222324252627282930313233 |
- #if __has_include(<Braintree/BraintreeCore.h>) // CocoaPods
- #import <Braintree/BTHTTP.h>
- #elif SWIFT_PACKAGE // SPM
- // The only way SPM can find BTHTTP.h is using quoted includes,
- // so we need to silence the warning.
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wquoted-include-in-framework-header"
- #import "BTHTTP.h"
- #pragma clang diagnostic pop
- #else // Carthage
- #import <BraintreeCore/BTHTTP.h>
- #endif
- NS_ASSUME_NONNULL_BEGIN
- @class BTHTTPResponse, BTClientToken;
- /**
- Performs HTTP methods on the Braintree Client API
- */
- @interface BTGraphQLHTTP : BTHTTP
- - (void)handleRequestCompletion:(nullable NSData *)data
- response:(nullable NSURLResponse *)response
- error:(nullable NSError *)error
- completionBlock:(void (^)(BTJSON * _Nonnull, NSHTTPURLResponse * _Nonnull, NSError * _Nonnull))completionBlock;
- @end
- NS_ASSUME_NONNULL_END
|