From 3706cfab07a78443e1b51d44abde549db7ec8bfb Mon Sep 17 00:00:00 2001 From: Joannis Orlandos Date: Wed, 11 Mar 2020 12:54:58 +0100 Subject: [PATCH] Revert changes that were destined for mobile --- Package.swift | 22 +++++++++++----------- Sources/MongoClient/SASL.swift | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Package.swift b/Package.swift index 814cd756..c01fb51c 100644 --- a/Package.swift +++ b/Package.swift @@ -37,7 +37,7 @@ var package = Package( .package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"), // 📚 - .package(url: "https://github.com/openkitten/NioDNS.git", .revision("master")), + .package(url: "https://github.com/openkitten/NioDNS.git", from: "2.0.0"), ], @@ -72,19 +72,19 @@ var package = Package( ] ) -#if canImport(Network) -// 🔑 -package.dependencies.append(.package(url: "https://github.com/joannis/swift-nio-transport-services.git", .revision("feature/udp-networking-framework-support"))) -let transport: Target.Dependency = "NIOTransportServices" -package.platforms = [ - .macOS(.v10_14), - .iOS(.v12), -] -#else +//#if canImport(Network) +//// 🔑 +//package.dependencies.append(.package(url: "https://github.com/joannis/swift-nio-transport-services.git", .revision("feature/udp-networking-framework-support"))) +//let transport: Target.Dependency = "NIOTransportServices" +//package.platforms = [ +// .macOS(.v10_14), +// .iOS(.v12), +//] +//#else // 🔑 package.dependencies.append(.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0")) let transport: Target.Dependency = "NIOSSL" -#endif +//#endif package.targets.append( .target( diff --git a/Sources/MongoClient/SASL.swift b/Sources/MongoClient/SASL.swift index 05d0cedf..14f2d02f 100644 --- a/Sources/MongoClient/SASL.swift +++ b/Sources/MongoClient/SASL.swift @@ -17,8 +17,8 @@ fileprivate enum ProgressState { /// A thread-safe global cache that all MongoDB clients can use to reduce computational cost of authentication /// /// By caching the proof of being auhtenticated. -public final class MongoCredentialsCache { - public static let `default` = MongoCredentialsCache() +fileprivate final class MongoCredentialsCache { + fileprivate static let `default` = MongoCredentialsCache() private init() {}