App BuildType Flag

This commit is contained in:
Chris Li 2016-07-06 13:41:45 -04:00
parent 439fa69a39
commit 288fb65a7e
2 changed files with 13 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1517</string>
<string>1518</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View File

@ -35,6 +35,18 @@ extension NSManagedObjectContext {
// MARK: - UI
enum BuildType {
case Alpha, Beta, Release
}
extension UIApplication {
var buildType: BuildType {
get {
return .Alpha
}
}
}
extension UIStoryboard {
class var library: UIStoryboard {get {return UIStoryboard(name: "Library", bundle: nil)}}
class var main: UIStoryboard {get {return UIStoryboard(name: "Main", bundle: nil)}}