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

flavor vanilla
type debug

flavor vanilla
type release

flavor vanilla
type debugQA

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.

Reply via email to