Skip to content

Instantly share code, notes, and snippets.

@0xtmphey
Created October 9, 2019 08:33
Show Gist options
  • Save 0xtmphey/dd3563395abda5797c46323beaae0841 to your computer and use it in GitHub Desktop.
Save 0xtmphey/dd3563395abda5797c46323beaae0841 to your computer and use it in GitHub Desktop.
// 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