[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619049#comment-16619049 ] Carl edited comment on CB-13684 at 9/18/18 1:06 PM: preferred solution: [https://stackoverflow.com/a/42668454] (since gradle v3, gradle.daemon on by default -> headless mode), but problem remains that stdin from cordova nodejs process seems not to be forwarded to gradle daemon for ant.input? also working: [https://stackoverflow.com/a/46130914] was (Author: runtetti): best solution: [https://stackoverflow.com/a/42668454] (since gradle v3, gradle.daemon on by default -> headless mode) also working: [https://stackoverflow.com/a/46130914] > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619049#comment-16619049 ] Carl edited comment on CB-13684 at 9/18/18 12:37 PM: - best solution: [https://stackoverflow.com/a/42668454] (since gradle v3, gradle.daemon on by default -> headless mode) also working: [https://stackoverflow.com/a/46130914] was (Author: runtetti): best solution: [https://stackoverflow.com/a/42668454] (since gradle v3, gradle.daemon on by default) also working: [https://stackoverflow.com/a/46130914] > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619049#comment-16619049 ] Carl edited comment on CB-13684 at 9/18/18 12:37 PM: - best solution: [https://stackoverflow.com/a/42668454] (since gradle v3, gradle.daemon on by default) also working: [https://stackoverflow.com/a/46130914] was (Author: runtetti): best solution: [https://stackoverflow.com/a/42668454] also working: [https://stackoverflow.com/a/46130914] > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16619049#comment-16619049 ] Carl edited comment on CB-13684 at 9/18/18 12:36 PM: - best solution: [https://stackoverflow.com/a/42668454] also working: [https://stackoverflow.com/a/46130914] was (Author: runtetti): solution that worked for me: [https://stackoverflow.com/a/46130914] before {code:java} import groovy.swing.SwingBuilder{code} add {code:java} System.setProperty('java.awt.headless', 'false') {code} in cordova.gradle > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16429283#comment-16429283 ] P. T. edited comment on CB-13684 at 4/7/18 8:59 AM: I just experienced the same issue, when I added a build.json to my project to specify the keystore, that has no "password": {code:java} { "ios": {...}, "android": { "release": { "keystore": "abc.keystore", "storePassword": "xxx", "alias": "abc" } } } {code} cordova --version # 8.0.0 cordova platform ls # android 6.4.0 was (Author: peditausd): I just experienced the same issue, when I added a build.json to my project to specify the keystore, that has no "password": {code:java} { "ios": {...}, "android": { "release": { "keystore": "abc.keystore", "storePassword": "xxx", "alias": "abc" } } } {code} > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13684) Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in build.json
[ https://issues.apache.org/jira/browse/CB-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16332759#comment-16332759 ] Joe Bowser edited comment on CB-13684 at 1/19/18 7:04 PM: -- [~danielcooper_xyz] The keyPassword argument does not exist, and you can't pass the password through command line arguments this way. Right now there's no way for this to be skipped, and you have to provide it via the build.json in the top-level of the project. If you're using a Stand-Alone Android Project, you could just write to the release-signing.properties file directly and put the passwords there before executing the build. Below is my build.json from recreating the WeatherApp to try and reproduce the bug: {code:java} { "android": { "release": { "keystore": "keystore", "alias": "alias1", "storePassword": "password", "password": "password" } } } {code} And here's the release-signing .properties when I use the command line to try and generate this file: {noformat} # This file is automatically generated. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! key.store=../../keystore key.alias=alias1 key.store.password=password {noformat} This is obviously missing the much-needed key.alias.password, which will allow the build to work. was (Author: bowserj): [~danielcooper_xyz] The keyPassword argument does not exist, and you can't pass the password through command line arguments this way. Right now there's no way for this to be skipped, and you have to provide it via the build.json in the top-level of the project. If you're using a Stand-Alone Android Project, you could just write to the release-signing.properties file directly and put the passwords there before executing the build. > Not be able to sign apk with 6.4.0 and 7.0.0 without specifying passwords in > build.json > --- > > Key: CB-13684 > URL: https://issues.apache.org/jira/browse/CB-13684 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Reporter: Kevin Lot >Assignee: Joe Bowser >Priority: Major > > Since 6.4.0, sign APK without specify passwords in config file does not work. > Cause gradle 4.1.0 has this issue [#2826] - Use SwingBuilder in customize > task on Android studio throw java.awt.HeadlessException. > ([link|https://github.com/gradle/gradle/issues/2826]). > If you don't specify passwords in config file to sign your APK, compilation > launches a window with SwingBuilder to prompt passwords. > {code:java} > def doPromptForPassword(msg) { > if (System.console() == null) { > def ret = null > new SwingBuilder().edt { > dialog(modal: true, title: 'Enter password', alwaysOnTop: true, > resizable: false, locationRelativeTo: null, pack: true, show: true) { > vbox { > label(text: msg) > def input = passwordField() > button(defaultButton: true, text: 'OK', actionPerformed: { > ret = input.password; > dispose(); > }) > } > } > } > if (!ret) { > throw new GradleException('User canceled build') > } > return new String(ret) > } else { > return System.console().readPassword('\n' + msg); > } > } > {code} > On Linux Mint 18.3 and MacOs High sierra, even in terminal, System.console() > return null and compilation crashes due to gradle issue. > Thanks for help. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org