Skip to content

Commit

Permalink
Merge pull request #8 from subtranix/escapeing-challenge
Browse files Browse the repository at this point in the history
Make task challenge completion handler escaping
  • Loading branch information
subtranix authored Aug 17, 2018
2 parents 2d32616 + d0cc457 commit c6bd7da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- FunctionalSwift (1.0.5)
- YandexMoneyCoreApi (1.1.0):
- YandexMoneyCoreApi (1.2.0):
- FunctionalSwift (~> 1.0.5)

DEPENDENCIES:
Expand All @@ -12,7 +12,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FunctionalSwift: 89cef31016cbc9fcdd49ec04e5831ed5f51244bb
YandexMoneyCoreApi: 9e24781e7b523ce818e8754ed79c4bd8bab20a83
YandexMoneyCoreApi: 998d30de040fd32767840d760ca35b8d41dfb28f

PODFILE CHECKSUM: 6e7c5c48060c013a57828b8bdba56efae76bd68f

Expand Down
2 changes: 1 addition & 1 deletion YandexMoneyCoreApi.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'YandexMoneyCoreApi'
spec.version = '1.1.0'
spec.version = '1.2.0'
spec.homepage = 'https://github.com/yandex-money/core-api-swift'
spec.license = {
:type => "MIT",
Expand Down
14 changes: 7 additions & 7 deletions YandexMoneyCoreApi/Core/ApiSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public class ApiSession {

/// Overrides all behavior for NSURLSessionTaskDelegate method
/// `URLSession:task:didReceiveChallenge:completionHandler:` and requires the caller to call the `completionHandler`
public var taskDidReceiveChallengeWithCompletion: ((_ session: URLSession,
_ challenge: URLAuthenticationChallenge,
_ completionHandler: (URLSession.AuthChallengeDisposition,
URLCredential?) -> Void) -> Void)? {
didSet {
delegate.taskDidReceiveChallengeWithCompletion = taskDidReceiveChallengeWithCompletion
}
public var taskDidReceiveChallengeWithCompletion: ((
_ session: URLSession,
_ challenge: URLAuthenticationChallenge,
_ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)? {
didSet {
delegate.taskDidReceiveChallengeWithCompletion = taskDidReceiveChallengeWithCompletion
}
}

// MARK: - Private properties
Expand Down

0 comments on commit c6bd7da

Please sign in to comment.