Last active
May 8, 2020 18:39
-
-
Save TatsuUkraine/348ceff1cb7f58b3505feb0a96854088 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
def dartEnvironmentVariables = [ | |
DEFINEEXAMPLE_APP_NAME: 'awesomeApp', | |
DEFINEEXAMPLE_APP_SUFFIX: null | |
]; | |
if (project.hasProperty('dart-defines')) { | |
dartEnvironmentVariables = dartEnvironmentVariables + project.property('dart-defines') | |
.split(',') | |
.collectEntries { entry -> | |
def pair = entry.split('=') | |
[(pair.first()): pair.last()] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment