Simple Swift library for plist based configuration
Simple Swift library for plist based configuration
Add a line to your Podfile:
pod 'Configurations'
Add 2 keys to your applications Info.plist, one for the name of your configurations plist (ConfigurationFileName) and one for the current configuration (Configuration).

If you set Configuration to $(CONFIGURATION), it will inherit the current application configuration.
Create a plist with a dictionary containing dictionaries for the different configuration names, below them you’re free to add whatever you want:

Import the framework:
import Configurations
And get the default configuration:
let configuration = Configuration.defaultConfiguration()
if let someValue = configuration["someKey"] as? String {
print("someKey: \(someValue)")
}
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)