That is what I thought because it is very annoying to write the password even when assembleDebug is called.
I didn't fill and issue because I don't know if was doing it wrong. Again thank you very much for all and your efforts El 25/02/2014 18:55, "Xavier Ducrohet" <[email protected]> escribió: > Putting it in the signing config is not the right answer either. > > Because it means it's going to query for the passwords every time it tries > to evaluate the project, which means it'll happen when: > - you want to build the debug version > - you want to get the list of tasks, dependencies, projects, or when > running any other non-build Gradle tasks. > - when the IDE asks for the model. > > The last one is particularly bad as it breaks the IDE integration. > > We need to fix this and always create the ZipAlign task even if signing > doesn't occur, and make sure the task is properly skipped. > > I've filed https://code.google.com/p/android/issues/detail?id=66389 for > this. > > > On Tue, Feb 25, 2014 at 9:46 AM, Mario De Frutos <[email protected]>wrote: > >> Understood I put it in the signingconfig then. >> >> Thx for your quick response Xavier :) >> El 25/02/2014 18:42, "Xavier Ducrohet" <[email protected]> escribió: >> >>> This is because the zip-align task is only created if the signing is >>> fully setup when the tasks are created. >>> >>> We don't create the task if we think we're not going to run it. >>> >>> >>> On Tue, Feb 25, 2014 at 1:38 AM, Mario De Frutos <[email protected]>wrote: >>> >>>> Hi everyone, >>>> >>>> I'm trying to set the store and key passwords using readline from my >>>> console. I've set this properties using dex.doLast hook: >>>> >>>> if (variant.dex!= null) { >>>>> variant.dex.doLast{ >>>>> project.android.signingConfigs.release.storePassword = >>>>> System.console().readLine("\n\$ Enter keystore password: ") >>>>> project.android.signingConfigs.release.keyPassword = >>>>> System.console().readLine("\n\$ Enter key password: ")} >>>>> } >>>>> >>>>> The funny thing is that the signing process occurs without any problem >>>> but it skips the zipAlign task. >>>> >>>> If i set this properties inside the signingConfigs, it works fine: >>>> >>>> release { >>>>> storeFile file("file.keystore") >>>>> storePassword System.console().readLine("\n\$ Enter keystore password: >>>>> ") >>>>> keyAlias "alias" >>>>> keyPassword System.console().readLine("\n\$ Enter key password: ") >>>>> } >>>>> >>>> >>>> Anyone with this problem? Thx in advance >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "adt-dev" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> >>> >>> -- >>> Xavier Ducrohet >>> Android SDK Tech Lead >>> Google Inc. >>> http://developer.android.com | http://tools.android.com >>> >>> Please do not send me questions directly. Thanks! >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "adt-dev" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/adt-dev/Fy8ZrDnhB2w/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > > -- > You received this message because you are subscribed to a topic in the > Google Groups "adt-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adt-dev/Fy8ZrDnhB2w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
