Created
May 27, 2020 13:34
-
-
Save jpignata/d2442e725e19ededc30a920ee304a5a7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
project.task('createAmplifyApp') { | |
def npx = 'npx' | |
if (project.file(gradleConfigFileName).exists()) { | |
return | |
} | |
if (Os.isFamily(Os.FAMILY_WINDOWS)) { | |
npx += '.cmd' | |
} | |
try { | |
project.exec { | |
commandLine npx, 'amplify-app', '--platform', 'android' | |
} | |
} catch (commandLineFailure) { | |
throw new Exception('Node.js is not installed. Visit https://nodejs.org/en/download/ to install it.') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment