Skip to content

Commit

Permalink
Fixed swift 3.0 conversion
Browse files Browse the repository at this point in the history
Fixed macos conversion
  • Loading branch information
Esqarrouth committed Sep 25, 2016
1 parent c6b5684 commit c28bd54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions QorumLogs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ public struct QorumOnlineLogs {

#if os(OSX)
if kCFCoreFoundationVersionNumber > kCFCoreFoundationVersionNumber10_10 {
let session = NSURLSession.sharedSession()
let task = session.dataTaskWithRequest(request)
task.resume()
Foundation.URLSession.shared.dataTask(with: request).resume()
} else {
NSURLConnection(request: request, delegate: nil)?.start()
}
Expand Down
2 changes: 2 additions & 0 deletions QorumLogsExample/QorumLogsExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand Down Expand Up @@ -251,6 +252,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down

0 comments on commit c28bd54

Please sign in to comment.