{"id":18937357,"url":"https://github.com/fetch/swift-configurations","last_synced_at":"2025-04-15T18:31:54.634Z","repository":{"id":56906496,"uuid":"50430451","full_name":"fetch/swift-configurations","owner":"fetch","description":"Simple Swift library for plist based configuration","archived":false,"fork":false,"pushed_at":"2019-08-18T15:44:57.000Z","size":33,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T00:51:16.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cocoapods.org/pods/Configurations","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-26T13:31:51.000Z","updated_at":"2020-02-06T14:32:51.000Z","dependencies_parsed_at":"2022-08-21T02:20:59.408Z","dependency_job_id":null,"html_url":"https://github.com/fetch/swift-configurations","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Fswift-configurations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Fswift-configurations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Fswift-configurations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch%2Fswift-configurations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetch","download_url":"https://codeload.github.com/fetch/swift-configurations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647259,"owners_count":21139081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T12:10:52.912Z","updated_at":"2025-04-15T18:31:49.625Z","avatar_url":"https://github.com/fetch.png","language":"Swift","readme":"# Configurations\n\nSimple Swift library for plist based configuration\n\n## Installation\n\nAdd a line to your `Podfile`:\n\n```\npod 'Configurations'\n```\n\nAdd 2 keys to your applications `Info.plist`, one for the name of your configurations plist (`ConfigurationFileName`) and one for the current configuration (`Configuration`).\n\n![](http://i.imgur.com/SV7p043.png)\n\nIf you set `Configuration` to `$(CONFIGURATION)`, it will inherit the current application configuration.\n\n## Usage\n\nCreate a plist with a dictionary containing dictionaries for the different configuration names, below them you're free to add whatever you want:\n\n![](http://i.imgur.com/jYArF82.png)\n\n### Retrieve a value from the current configuration:\n\nImport the framework:\n\n```swift\nimport Configurations\n```\n\nAnd get the default configuration:\n\n```swift\nlet configuration = Configuration.defaultConfiguration()\nif let someValue = configuration[\"someKey\"] as? String {\n    print(\"someKey: \\(someValue)\")\n}\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch%2Fswift-configurations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetch%2Fswift-configurations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch%2Fswift-configurations/lists"}