mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-10862 Cannot set minsdkversion
This commit is contained in:
parent
1b43bc99a1
commit
dd3b9dd01c
7
bin/templates/cordova/lib/build.js
vendored
7
bin/templates/cordova/lib/build.js
vendored
@ -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 = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user