Latest 1.0.2
Homepage https://github.com/truebucha/CDBDownloader
License MIT
Platforms ios 7.0, osx 10.10
Dependencies AFNetworking
Frameworks Foundation
Authors

[![CI Status](http://img.shields.io/travis/Kanstantsin Bucha/CDBDownloader.svg?style=flat)](https://travis-ci.org/Kanstantsin Bucha/CDBDownloader)
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

    [CDBDownloader downloadFileAtURL:URL
                            progress:nil
                          completion:^(NSURL * downloadedFileURL, NSError *error) {
        if (error != nil) {
            [[NSFileManager new] removeItemAtURL:downloadedFileURL
                                           error:nil];
            return;
        }

        NSLog(@" Download document to URL:
              rn %@", downloadedFileURL);
    }];

remember to add section to your app in info.plist file,
replace www.pdf995.com to your download domain

    <key>NSAppTransportSecurity</key>
    <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
    <key>www.pdf995.com</key>
    <dict>
    <key>NSIncludesSubdomains</key>
    <true/>
    <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    <key>NSTemporaryExceptionMinimumTLSVersion</key>
    <string>TLSv1.1</string>
    </dict>
    </dict>
    </dict>

Requirements

Installation

CDBDownloader is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "CDBDownloader"

Author

Kanstantsin Bucha, [email protected]

License

CDBDownloader is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CDBDownloader",
    "version": "1.0.2",
    "summary": "Lightweight file downloader with progress",
    "description": "Lightweight file downloader with progress. It downloads file to the temporary location and call completion. It uses AFNetworking under the hood.",
    "homepage": "https://github.com/truebucha/CDBDownloader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kanstantsin Bucha": "[email protected]"
    },
    "source": {
        "git": "https://github.com/truebucha/CDBDownloader.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.10"
    },
    "source_files": "CDBDownloader/Classes/***",
    "public_header_files": "CDBDownloader/Classes/***.h",
    "frameworks": "Foundation",
    "dependencies": {
        "AFNetworking": [
            "~> 2.3"
        ]
    }
}

Pin It on Pinterest

Share This