CDBDownloader 1.0.2

CDBDownloader 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2017

Maintained by Kanstantsin Bucha, Kanstantsin Bucha.



  • By
  • Kanstantsin Bucha

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

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:\
              \r\n %@", 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.