Created
October 9, 2019 08:33
-
-
Save 0xtmphey/dd3563395abda5797c46323beaae0841 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
// Inject or instantiate the manager | |
lateinit var environmentManager: EnvironmentManager | |
// url address depending on DEFAULT_ENV | |
val serverAddress = environmentManager.get(EnvironmentVariables::baseUrl) | |
// change env | |
environmentManager.currentEnvironment = Environment.PRODUCTION | |
// Now you got the prod adrress | |
val prodAddress = environmentManager.get(EnvironmentVariables::baseUrl) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment