Thank you Xavier. At the moment we don't need it per variant. However, we 
do need to be able to set these options programmatically not necessarily at 
the very beginning of the build, because the decision is sometimes based on 
some processing we do in the transform. So the best is to be able to set it 
at any stage as long as it's done before the dex task actually starts 
running.
Thanks!
Ariel

On Thursday, November 19, 2015 at 9:52:36 PM UTC+2, Xavier Ducrohet wrote:
>
> This is not currently possible. We want to fix this. Do you need this 
> per-variant?
>
> On Tue, Nov 17, 2015 at 1:48 AM, Ariel Cattan <[email protected] 
> <javascript:>> wrote:
>
>> Hi guys,
>>
>> Working with plugin 1.5.0 I'm trying to figure out how to set command 
>> line parameters for the dx. I am aware of the dexOptions directive, but it 
>> doesn't provide the full set of command line parameters available in dx.
>> In previous versions of the android plugin I was using the dex class and 
>> doing something like this:
>>
>> if (dexTask.additionalParameters == null) dexTask.additionalParameters = 
>> []
>> dexTask.additionalParameters += '--no-locals'
>>
>> However, in 1.5.0, even if I find the task 
>> "transformClassesWithDexForDebug", there is no longer an 
>> "additionalParameters" property on that task.
>> Is there another way to achieve that?
>>
>> Specifically we need to control the following options:
>> --no-locals
>> --minimal-main-dex
>>
>> Thanks!
>> Ariel
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> 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/d/optout.

Reply via email to