Skip to content

Instantly share code, notes, and snippets.

@urouro
Last active January 5, 2016 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urouro/28b1e5cd04557f71539b to your computer and use it in GitHub Desktop.
Save urouro/28b1e5cd04557f71539b to your computer and use it in GitHub Desktop.
Env.plist
import Foundation
class Const {
class var FeedbackSlackURL: String {
let url = env["FeedbackSlackURL"] as! String
return url
}
private class var env: NSDictionary {
return NSDictionary(contentsOfFile: NSBundle.mainBundle().pathForResource("Env", ofType: "plist")!)!
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FeedbackSlackURL</key>
<string>https://hooks.slack.com/services/.....</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment