diff --git a/CHANGELOG.md b/CHANGELOG.md index 1445cd00..a998ed56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +[1.0.0-beta09](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta09) +------------------- +- Increased API response timeout + [1.0.0-beta08](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta08) ------------------- - Fixed Cocoapod issue diff --git a/HyperwalletSDK.podspec b/HyperwalletSDK.podspec index 39608bf2..d7cd858f 100644 --- a/HyperwalletSDK.podspec +++ b/HyperwalletSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'HyperwalletSDK' - spec.version = '1.0.0-beta08' + spec.version = '1.0.0-beta09' spec.summary = 'Hyperwallet Core SDK for iOS to integrate with Hyperwallet Platform' spec.homepage = 'https://github.com/hyperwallet/hyperwallet-ios-sdk' spec.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/README.md b/README.md index 617aa51f..08b258bf 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ Use [Carthage](https://github.com/Carthage/Carthage) or [CocoaPods](https://coco ### Carthage Specify it in your Cartfile: ```ogdl -github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta08" +github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta09" ``` ### CocoaPods Specify it in your Podfile: ```ruby -pod 'HyperwalletSDK', '~> 1.0.0-beta08' +pod 'HyperwalletSDK', '~> 1.0.0-beta09' ``` ## Initialization diff --git a/Sources/HTTPTransaction.swift b/Sources/HTTPTransaction.swift index d84ea8a7..804f98c6 100644 --- a/Sources/HTTPTransaction.swift +++ b/Sources/HTTPTransaction.swift @@ -143,7 +143,7 @@ final class HTTPTransaction { _ error: HyperwalletErrorType?) -> Void) -> (GraphQlResult?, HyperwalletErrorType?) -> Void where Response: Decodable { - return { (result, error) in + { (result, error) in if let error = error { completionHandler(nil, error) } @@ -269,7 +269,7 @@ final class HTTPTransaction { /// Returns the default timeout - 5 seconds private static let defaultTimeout: Double = { - 5.0 + 10.0 }() /// Returns `Accept-Language` header, generated by querying `Locale` for the user's `preferredLanguages`. diff --git a/Tests/HTTPTransactionTests.swift b/Tests/HTTPTransactionTests.swift index 072facf5..36482bd2 100644 --- a/Tests/HTTPTransactionTests.swift +++ b/Tests/HTTPTransactionTests.swift @@ -16,7 +16,7 @@ class HTTPTransactionTests: XCTestCase { let configuration = HTTPTransaction.urlSessionConfiguration let header = configuration.httpAdditionalHeaders - XCTAssertEqual(configuration.timeoutIntervalForRequest, 5.0) + XCTAssertEqual(configuration.timeoutIntervalForRequest, 10.0) XCTAssertEqual(header?["Content-Type"] as? String, "application/json") XCTAssertTrue((header?["Accept-Language"] as? String ?? "").contains("en")) let userAgent = header?["User-Agent"] as? String