Skip to content

Commit

Permalink
Revert changes that were destined for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Mar 11, 2020
1 parent e561141 commit 3706cfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),


],
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions Sources/MongoClient/SASL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand Down

0 comments on commit 3706cfa

Please sign in to comment.