Last active
January 5, 2016 05:41
-
-
Save urouro/28b1e5cd04557f71539b to your computer and use it in GitHub Desktop.
Env.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")!)! | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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