Latest 0.1.1
Homepage https://github.com/NickEntin/flagstaff-ios
License MIT
Platforms ios 7.0
Authors

CI Status
Version
License
Platform

Flagstaff is a simple feature flagging framework built in Objective-C.

Installation

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

pod 'Flagstaff', '~> 0.1'

Using Flagstaff

First, you need remote flags to use. Flags must follow the flagstaff v1 schema. For development purposes, the simplest way to do this is to upload json files to a server and use a url format similar to the following:

FSFlagManager *flagManager = [[FSFlagManager alloc] initWithURLFormat:@"https://example.com/flags/{flag}.json"];

// Check if a flag is enabled
if ([flagManager enableFeatureForKey:@"flag_name"]) {
    // The flag is enabled
} else {
    // The flag is disabled
}

// Get custom parameters for key
NSDictionary *parameters = [flagManager parametersForKey:@"flag_name"];
NSInteger parameterValue = [[parameters objectForKey:@"param_name"] integerValue];

Author

Nick Entin, [email protected]

License

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

Contributing

See a bug or have a feature you’d like added? Submit an issue or pull request. Contributions are welcome and appreciated!

Latest podspec

{
    "name": "Flagstaff",
    "version": "0.1.1",
    "summary": "Feature flagging for iOS",
    "homepage": "https://github.com/NickEntin/flagstaff-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nick Entin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NickEntin/flagstaff-ios.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/nckntn",
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Flagstaff/Classes/**/*"
}

Pin It on Pinterest

Share This