Popularity
0.4
Stable
Activity
0.0
Stable
6
3
0

Code Quality Rank: L4
Programming language: Objective-C
License: MIT License
Tags: Networking    
Latest version: v1.0.2

Domainer alternatives and similar libraries

Based on the "Networking" category.
Alternatively, view Domainer alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Domainer or a related project?

Add another 'Networking' Library

README

Domainer

Multi-domain mapper.

Carthage compatible Version License Platform

This library provides manage multi-domain table.

Editor preferences pane

Features

  • [x] Manage multi-domain mapping main domain.
  • [x] Find best domain which with low latency.
  • [x] Bypass dns resolver when IP table exists the domain.
  • [x] Swizzle NSURLRequest method in runtime.

Installation

Domainer requires iOS 7.0 or later.

Using CocoaPods

  1. Add the pod Domainer to your Podfile.

    pod 'Domainer'
    
  2. Run pod install from Terminal, then open your app's .xcworkspace file to launch Xcode.

  3. Import the Domainer.h header. Typically, this should be written as #import <Domainer.h>

Using Carthage

  1. Add the felixLinBH/Domainer project to your Cartfile.

    github "felixLinBH/Domainer"
    
  2. Run carthage update, then follow the additional steps required to add the iOS and/or Mac frameworks into your project.

  3. Import the Domainer framework/module.

    • Using Modules: @import Domainer
    • Without Modules: #import <Domainer.h>

Usage example

Create domain table with Json format

[
{"mainDomainName":"www.mainDomain.com","mapping":["www.domain1.com","www.domain2.com","www.domain3.com"]}
,
{"mainDomainName":"www.mainDomain2.com","mapping":["www.domain4.com","www.domain5.com","www.domain6.com"]}
]

Set mapping

[Domainer setMapper:jsonArray];

Run with callback

[Domainer runWithCompleteHandler:^(BOOL sucess, NSArray *noResolvedDomain) {
    if(sucess){
     //Start query some api...
    };
}];

Example

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

Contribute

We would love for you to contribute to Domainer, check the LICENSE file for more info.

Author

Felix.lin

License

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


*Note that all licence references and agreements mentioned in the Domainer README section above are relevant to that project's source code only.