Dynamically generating productFlavors and sourceSets using a list of names (with properties) in a CSV/TXT file
问题 This question in continuation of my other question, which i want to improve further. I am being able to group flavors (having common configuration) under sourceSets with the following code : (got it from a genius in the linked question above) import com.android.build.gradle.api.AndroidSourceSet android { sourceSets { [flavor2, flavor4].each { AndroidSourceSet ss -> ss.assets.srcDirs = ['repo-assets/flavor2'] ss.res.srcDirs = ['repo-res/flavor2'] } } } Now, I was wondering if the list [flavor2