Class Flavors

  • public class Flavors
    extends Object
    • Method Detail

      • containsFlavors

        public static java.util.function.Predicate<BuildTarget> containsFlavors​(FlavorDomain<?> domain)
      • containsFlavor

        public static java.util.function.Predicate<BuildTarget> containsFlavor​(Flavor flavor)
      • propagateFlavorsInDomainIfNotPresent

        public static<BuildTarget> propagateFlavorsInDomainIfNotPresent​(FlavorDomain<?> domain,
                                                                                                                 BuildTarget buildTarget,
                                                                                                       <BuildTarget> deps)
        Propagate a build target's flavors in a certain domain to a list of other build targets.
        domain - the flavor domain to be propagated.
        buildTarget - the build target containing the flavors to be propagated
        deps - list of BuildTargetPaths to propagate the flavors to. If a target already contains one or more flavors in domain, it is left unchanged.
        the list of BuildTargetPaths with any flavors propagated.