Skip to content

Commit 7901b99

Browse files
Merge pull request #113 from tus/maintenance/pod-warnings-cleanup
Pod warnings and errors cleanup
2 parents e930830 + aaad00c commit 7901b99

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.2.1
4+
5+
- [PATCH] Fixing podfile and remove related warnings and errors.
6+
37
## 2.2.0
48

59
- [MINOR] The example project now uses native iOS examples with PHPickerViewController and UIImagePickerController.

Example/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use_frameworks!
22

3+
platform :ios, '10.0'
34
target 'TUSKit_Example' do
45
pod 'TUSKit', :path => '../'
56

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
TUSKit: 1a935c22c0719dee2f00d2767f01fcea63ae2aa0
12+
TUSKit: 0b5494e371515421b42d4114d58e06fef244551c
1313

14-
PODFILE CHECKSUM: de359d918c991c88499eaaf36013a47b21196991
14+
PODFILE CHECKSUM: c59049d4e36d1be9f3adeaa9165e9ed9417fd2a3
1515

1616
COCOAPODS: 1.10.1

Example/TUSKit.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
430430
GCC_WARN_UNUSED_FUNCTION = YES;
431431
GCC_WARN_UNUSED_VARIABLE = YES;
432-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
432+
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
433433
MTL_ENABLE_DEBUG_INFO = YES;
434434
ONLY_ACTIVE_ARCH = YES;
435435
SDKROOT = iphoneos;
@@ -475,7 +475,7 @@
475475
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
476476
GCC_WARN_UNUSED_FUNCTION = YES;
477477
GCC_WARN_UNUSED_VARIABLE = YES;
478-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
478+
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
479479
MTL_ENABLE_DEBUG_INFO = NO;
480480
SDKROOT = iphoneos;
481481
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";

TUSKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ TODO: Add long description of the pod here.
2828
s.license = { :type => 'MIT', :file => 'LICENSE' }
2929
s.author = { 'Mark Masterson' => '[email protected]' }
3030
s.source = { :git => 'https://github.com/tus/tus-ios-client.git', :tag => s.version.to_s }
31+
s.platform = :ios
3132
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
3233

3334
s.ios.deployment_target = '8.2'
34-
s.osx.deployment_target = '10.10'
3535

3636
s.source_files = 'TUSKit/Classes/**/*'
3737

TUSKit/Classes/TUSExecutor+get.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension TUSExecutor {
1212
var request = URLRequest(url: upload.uploadLocationURL!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
1313
request.httpMethod = "GET"
1414
// TODO: Fix
15-
let task = TUSClient.shared.tusSession.session.downloadTask(with: request) { (url, response, error) in
15+
let _ = TUSClient.shared.tusSession.session.downloadTask(with: request) { (url, response, error) in
1616
TUSClient.shared.logger.log(forLevel: .Info, withMessage:response!.description)
1717
}
1818
}

TUSKit/Classes/TUSExecutor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class TUSExecutor: NSObject, URLSessionDelegate {
8989
upload.status = .uploading
9090
TUSClient.shared.updateUpload(upload)
9191
// we start the upload from the first chunk (position 0)
92-
self.upload(forChunks: chunks, withUpload: upload, atPosition: 0, completion: uploadFinishedCallback)
92+
_ = self.upload(forChunks: chunks, withUpload: upload, atPosition: 0, completion: uploadFinishedCallback)
9393
}
9494

9595
// Do the work:

0 commit comments

Comments
 (0)