Skip to content

Commit 3f8a3a2

Browse files
committed
closes #34 bug fixes, improvements and example download links are updated
1 parent b071bc0 commit 3f8a3a2

39 files changed

Lines changed: 655 additions & 1015 deletions

File tree

Example/MZDownloadManager.xcodeproj/project.pbxproj

Lines changed: 79 additions & 62 deletions
Large diffs are not rendered by default.

Example/MZDownloadManager.xcodeproj/xcshareddata/xcschemes/MZDownloadManager-Example.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0830"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/MZDownloadManager/MZAvailableDownloadsViewController.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class MZAvailableDownloadsViewController: UITableViewController {
2424
}
2525
debugPrint("custom download path: \(myDownloadPath)")
2626

27-
availableDownloadsArray.append("https://dl.dropboxusercontent.com/u/97700329/AlecrimCoreData-master.zip")
28-
availableDownloadsArray.append("https://dl.dropbox.com/u/97700329/file1.mp4")
29-
availableDownloadsArray.append("https://dl.dropbox.com/u/97700329/file2.mp4")
30-
availableDownloadsArray.append("https://dl.dropbox.com/u/97700329/file3.mp4")
31-
availableDownloadsArray.append("https://dl.dropbox.com/u/97700329/FileZilla_3.6.0.2_i686-apple-darwin9.app.tar.bz2")
32-
availableDownloadsArray.append("https://dl.dropbox.com/u/97700329/GCDExample-master.zip")
27+
availableDownloadsArray.append("https://www.dropbox.com/s/yrura6qlcgcwpp4/file1.mp4?dl=1")
28+
availableDownloadsArray.append("https://www.dropbox.com/s/y9kgs6caztxxjdh/AlecrimCoreData-master.zip?dl=1")
29+
availableDownloadsArray.append("https://www.dropbox.com/s/73ymbx6icoiqus9/file2.mp4?dl=1")
30+
availableDownloadsArray.append("https://www.dropbox.com/s/4pw4jwiju0eon6r/file3.mp4?dl=1")
31+
availableDownloadsArray.append("https://www.dropbox.com/s/2bmbk8id7nseirq/file4.mp4?dl=1")
32+
availableDownloadsArray.append("https://www.dropbox.com/s/cw7wfyaic9rtzwd/GCDExample-master.zip?dl=1")
3333

3434
self.setUpDownloadingViewController()
3535
}
@@ -79,9 +79,9 @@ extension MZAvailableDownloadsViewController {
7979
fileName = MZUtility.getUniqueFileNameWithPath((myDownloadPath as NSString).appendingPathComponent(fileName as String) as NSString)
8080

8181
//Use it download at default path i.e document directory
82+
// mzDownloadingViewObj?.downloadManager.addDownloadTask(fileName as String, fileURL: fileURL as String)
8283

83-
// mzDownloadingViewObj?.downloadManager.addDownloadTask(fileName as String, fileURL: fileURL.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!)
84-
mzDownloadingViewObj?.downloadManager.addDownloadTask(fileName as String, fileURL: fileURL.addingPercentEscapes(using: String.Encoding.utf8.rawValue)!, destinationPath: myDownloadPath)
84+
mzDownloadingViewObj?.downloadManager.addDownloadTask(fileName as String, fileURL: fileURL as String, destinationPath: myDownloadPath)
8585

8686
availableDownloadsArray.remove(at: (indexPath as NSIndexPath).row)
8787
tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.right)

Example/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
platform :ios, '9.0'
22
use_frameworks!
33

4-
target 'MZDownloadManager_Example', :exclusive => true do
4+
target 'MZDownloadManager_Example' do
55
pod 'MZDownloadManager', :path => '../'
66
end
77

8-
target 'MZDownloadManager_Tests', :exclusive => true do
8+
target 'MZDownloadManager_Tests' do
99
pod 'MZDownloadManager', :path => '../'
1010

1111

Example/Podfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- MZDownloadManager (3.0)
2+
- MZDownloadManager (3.2)
33

44
DEPENDENCIES:
55
- MZDownloadManager (from `../`)
@@ -9,6 +9,8 @@ EXTERNAL SOURCES:
99
:path: ../
1010

1111
SPEC CHECKSUMS:
12-
MZDownloadManager: fcb5e609595e520ca07192463c60cac61d752279
12+
MZDownloadManager: 7ecad4fe503ee9eeb03b0bbbfb4de1e1d932bfc0
1313

14-
COCOAPODS: 0.39.0
14+
PODFILE CHECKSUM: 5d1b65c18daced252a92b00cff8468d902a37fe7
15+
16+
COCOAPODS: 1.2.1

Example/Pods/Local Podspecs/MZDownloadManager.podspec.json

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)