Copy constructor using "initWith" for "productFlavors" and "sourceSets"
Asked Answered
S

0

28

With reference to this answer. Is it possible to create a copy constructor for productFlavors and sourceSets using initWith just like the one in the linked answer. That one worked great for buildTypes.

For buildTypes it was done this way:

debugfree.initWith(buildTypes.debug)

Is this possible for productFlavors and sourceSets as well?

Sonora answered 24/3, 2016 at 12:3 Comment(2)
awesome question, this is what I've been looking for. Looks like productFlavors have this trick to combine the flavor instead: https://mcmap.net/q/504933/-android-specific-gradle-product-flavor-combinationsCuxhaven
Looks like it has been added in 2021, but somehow I can't make it work. See: issuetracker.google.com/issues/165642956Dustidustie

© 2022 - 2024 — McMap. All rights reserved.