From c71cf2d54d13b0aa8f599280fc84ba6444f17069 Mon Sep 17 00:00:00 2001 From: John Sundell Date: Tue, 21 Aug 2018 13:15:29 +0200 Subject: [PATCH] =?UTF-8?q?Replace=20=E2=80=98open=E2=80=99=20with=20?= =?UTF-8?q?=E2=80=98public=E2=80=99=20for=20final=20symbols?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They can’t be overridden anyway, so no need for them to be open. --- Sources/Shared/AuthConfig.swift | 2 +- Sources/Shared/AuthContainer.swift | 6 +++--- Sources/Shared/AuthService.swift | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/Shared/AuthConfig.swift b/Sources/Shared/AuthConfig.swift index d50a5b3..a5cfd68 100644 --- a/Sources/Shared/AuthConfig.swift +++ b/Sources/Shared/AuthConfig.swift @@ -2,7 +2,7 @@ import Foundation @objc open class AuthConfig: NSObject { - open static var networking: Networking = Networking(configuration: URLSessionConfiguration.default) + public static var networking: Networking = Networking(configuration: URLSessionConfiguration.default) open var clientId: String open var accessGrantType: String diff --git a/Sources/Shared/AuthContainer.swift b/Sources/Shared/AuthContainer.swift index 8eff645..ce839f9 100644 --- a/Sources/Shared/AuthContainer.swift +++ b/Sources/Shared/AuthContainer.swift @@ -6,17 +6,17 @@ import Foundation // MARK: - Services - open static func addService(_ service: AuthService) { + public static func addService(_ service: AuthService) { services[service.name] = service } - open static func serviceNamed(_ name: String) -> AuthService? { + public static func serviceNamed(_ name: String) -> AuthService? { return services[name] } // MARK: - Helpers - open static func locker(_ serviceName: String) -> Lockable? { + public static func locker(_ serviceName: String) -> Lockable? { return serviceNamed(serviceName)?.locker } } diff --git a/Sources/Shared/AuthService.swift b/Sources/Shared/AuthService.swift index f46591b..633b22a 100644 --- a/Sources/Shared/AuthService.swift +++ b/Sources/Shared/AuthService.swift @@ -4,9 +4,9 @@ import Foundation public typealias Completion = (String?, Error?) -> Void - open let name: String - open let config: AuthConfig - open var locker: Lockable + public let name: String + public let config: AuthConfig + public var locker: Lockable fileprivate var pendingTokenCompletions = [Completion]() fileprivate var executing = false