On Tue, Mar 11, 2014 at 4:17 AM, Diego Costantini <
[email protected]> wrote:
> Hi guys,
> in latest plugin we can use variantFilter.
>
> I am not sure I am using it wrong or there is a bug.
>
> variantFilter { variant ->
> flavor = variant.getDefaultConfig().versionName
>
Why are you calling versionName? This should be name.
> println "flavor $flavor"
> type = variant.getBuildType().name
> println "type $type"
> if (flavor == "vanilla" && type == "release") {
> variant.setIgnore(true)
> }
> }
>
> I am not sure I should use getDefaultconfig() because I always get vanilla
> rather than each flavor.
> Build types are looped correctly instead.
>
> 3 flavors and 3 types (I expect 9 couples but there are 8), this is the
> output:
> flavor vanilla
> type debug
>
> flavor vanilla
> type release
>
> flavor vanilla
> type debugBaybridgeQA
>
> flavor vanilla
> type debug
>
> flavor vanilla
> type release
>
> flavor vanilla
> type debugBaybridgeQA
>
> flavor vanilla
> type debug
>
> flavor vanilla
> type release
>
> --
> 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.
>
--
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.