mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
CB-7512 Fix gradle asking for release password when building for debug
This commit is contained in:
parent
949152532c
commit
3f83fdbfc1
@ -140,7 +140,7 @@ def promptForPassword(msg) {
|
||||
}
|
||||
}
|
||||
|
||||
task promptForReleaseKeyPassword {
|
||||
def promptForReleaseKeyPassword() {
|
||||
if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) {
|
||||
return;
|
||||
}
|
||||
@ -153,9 +153,11 @@ task promptForReleaseKeyPassword {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.whenTaskAdded { task ->
|
||||
if (task.name == 'validateReleaseSigning') {
|
||||
task.dependsOn promptForReleaseKeyPassword
|
||||
gradle.taskGraph.whenReady { taskGraph ->
|
||||
taskGraph.getAllTasks().each() { task ->
|
||||
if (task.name == 'validateReleaseSigning') {
|
||||
promptForReleaseKeyPassword()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user