Last active
October 24, 2019 00:27
-
-
Save alvaroroyo/32249288d3de05026bfb56e5f14c3be7 to your computer and use it in GitHub Desktop.
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
enum AppEnvironments { | |
case Dev, Pre, Pro | |
} | |
var environment: AppEnvironments { | |
get { | |
let bundleId = Bundle.main.bundleIdentifier ?? "" | |
switch bundleId { | |
case "com.timbrit.dev": return .Dev | |
case "com.timbrit.pre": return .Pre | |
case "com.guru.timbrit": return .Pro | |
default: return .Dev | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment