Latest 1.0.2
Homepage https://github.com/emsihyo/ShortenedURLExpander
License MIT
Platforms ios 8.0, watchos 2.0, tvos 9.0, osx 10.9, requires ARC
Dependencies Retriable
Authors

RetriableAFNetworking

License MIT
Build Status
Carthage compatible
Pod Version
Pod Platform

Retriable AFNetworking

Cocoapods

Add the following to your project’s Podfile:

pod 'ShortenedURLExpander'

Carthage

Add the following to your project’s Cartfile:

github "emsihyo/ShortenedURLExpander"

Example

    self.expander=[[ShortenedURLExpander alloc] initWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] isURLShortened:^bool(NSURL *url) {
        return [url.host isEqualToString:@"t.cn"];
    }];
    self.operation=[self.expander expand:[NSURL URLWithString:@"http://t.cn/RnWLQVx"] maximumRetries:2 completion:^(NSURL *originalUrl,NSURL *expandedUrl, NSError *error) {
        NSLog(@"%@",expandedUrl);
    }];

Latest podspec

{
    "name": "ShortenedURLExpander",
    "version": "1.0.2",
    "license": "MIT",
    "summary": "Shortened URL Expander",
    "homepage": "https://github.com/emsihyo/ShortenedURLExpander",
    "authors": {
        "emsihyo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/emsihyo/ShortenedURLExpander.git",
        "tag": "1.0.2"
    },
    "description": "Shortened URL Expander.",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0",
        "watchos": "2.0",
        "tvos": "9.0",
        "osx": "10.9"
    },
    "source_files": "ShortenedURLExpander/*.{h,m}",
    "dependencies": {
        "Retriable": []
    }
}

Pin It on Pinterest

Share This