From dd3b9dd01c2bccbb7ebce733911053c128222193 Mon Sep 17 00:00:00 2001 From: daserge Date: Fri, 25 Mar 2016 13:31:41 +0300 Subject: [PATCH] CB-10862 Cannot set minsdkversion --- bin/templates/cordova/lib/build.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 1abaa525..e2b37556 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -39,7 +39,7 @@ function parseOpts(options, resolvedTarget, projectRoot) { prepenv: Boolean, versionCode: String, minSdkVersion: String, - gradleArg: String, + gradleArg: [String, Array], keystore: path, alias: String, storePassword: String, @@ -66,8 +66,9 @@ function parseOpts(options, resolvedTarget, projectRoot) { if (options.argv.minSdkVersion) ret.extraArgs.push('-PcdvMinSdkVersion=' + options.argv.minSdkVersion); - if (options.argv.gradleArg) - ret.extraArgs.push(options.argv.gradleArg); + if (options.argv.gradleArg) { + ret.extraArgs = ret.extraArgs.concat(options.argv.gradleArg); + } var packageArgs = {};