Thank you for the update. This makes sense. I'll submit a tools feature request to add an example to the docs, for those of us new to the new build system and would have no idea on how to do that. :)
On Thursday, February 5, 2015 at 8:14:49 PM UTC-5, Xavier Ducrohet wrote: > > It's not possible at the moment, and there isn't any plan to offer this. > we can improve how the variantFilter API works but I'm not sure we'd offer > something that different. > > One thing you could do is build your own model from this hierarchical way > of representing this and compute the valid combination from that and then > just have variantFilter check against this data. > > On Thu, Feb 5, 2015 at 7:44 AM, <[email protected] <javascript:>> wrote: > >> For example, let's say I have three flavor dimensions: >> >> Color, Food, Ripeness >> >> With this structure (for example): >> >> Unripe >> - Apple >> - Red, Green >> - Avocado >> - Green >> Ripe >> - Apple >> - Red, Green >> - Avocado >> - Green >> - Strawberry >> - Red >> - Raspberry >> - Red >> >> Is there a way I can specify which flavor combinations I want, rather >> than having the build system combine them all combinatorially and then >> excluding the ones I don't want? >> >> According to this StackOverflow question, it can be done by excluding the >> combos: >> http://stackoverflow.com/questions/28341273/android-specific-gradle-product-flavor-combinations. >> >> This seems like it could become error-prone, and having a declarative and >> inclusive way to do this would also be nice to have. >> >> >> -- >> 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.
