Skip to content

Commit 02ef0df

Browse files
author
nghialv
committed
change deployment target
1 parent 218515d commit 02ef0df

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Net/Net.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Net : NSObject, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NS
8282
func setupSession(backgroundIdentifier: String? = nil) {
8383
if backgroundIdentifier != nil {
8484
if backgroundSession == nil {
85-
85+
/*
8686
func systemVersionGreaterThanOrEqualTo(version: String) -> Bool {
8787
let osVersion = UIDevice.currentDevice().systemVersion
8888
return osVersion.compare(version, options: NSStringCompareOptions.NumericSearch) != NSComparisonResult.OrderedAscending
@@ -93,6 +93,8 @@ class Net : NSObject, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NS
9393
} else {
9494
backgroundSessionConfig = NSURLSessionConfiguration.backgroundSessionConfiguration(backgroundIdentifier!)
9595
}
96+
*/
97+
backgroundSessionConfig = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier(backgroundIdentifier!)
9698
backgroundSessionConfig!.HTTPMaximumConnectionsPerHost = HTTPMaximumconnectionsPerHost
9799

98100
backgroundSession = NSURLSession(configuration: backgroundSessionConfig, delegate: self, delegateQueue: nil)

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Features
1515
- [x] Batch of operations
1616
- [x] BaseURL
1717
- [x] Customizable header
18-
- [ ] Batch of operations
19-
- [ ] Basic authentiacation
2018

2119
Demo app
2220
-----

ios_example/example.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
433433
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
434434
INFOPLIST_FILE = example/Info.plist;
435-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
435+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
436436
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437437
PRODUCT_NAME = "$(TARGET_NAME)";
438438
};
@@ -444,7 +444,7 @@
444444
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
445445
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
446446
INFOPLIST_FILE = example/Info.plist;
447-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
447+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
448448
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
449449
PRODUCT_NAME = "$(TARGET_NAME)";
450450
};

0 commit comments

Comments
 (0)