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 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.

Reply via email to