Created
February 28, 2019 01:21
-
-
Save alvaroroyo/af5e1d80971bde0847b48665350aaf59 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
import Foundation | |
enum AppEnvironment { | |
case Development | |
case QA | |
case Release | |
} | |
struct AppConfig { | |
static var environment : AppEnvironment { | |
#if DEVELOPMENT | |
return .Development | |
#elseif QA | |
return .QA | |
#elseif RELEASE | |
return .Release | |
#endif | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment