-1

I have an assets folder in main and three flavors. Each one of them needs to import only a subset of those files. However some of them needs to be shared.

Let's make an example.
My assets folder in main contains four subfolders: A,B,C,D
flavor1 must contain assets A,B,C
flavor2 must contain assets A,C,D
flavor3 must contain assets B,D

Is there a way to declare a subset of the main's assets folder for each flavor, avoiding to copy/paste each desired folder in every flavor assets' folder (thus avoiding replication)?

Bryan Herbst
  • 66,602
  • 10
  • 133
  • 120
wverdese
  • 129
  • 1
  • 10
  • 1
    Possible duplicate of [Gradle: How to create two applications for each flavor with different assets folders:](http://stackoverflow.com/questions/26881266/gradle-how-to-create-two-applications-for-each-flavor-with-different-assets-fol) – 476rick Apr 29 '17 at 09:42
  • that could be, but mine is older... – wverdese May 22 '17 at 07:22

1 Answers1

0

At last I finally managed to do that using sourceSets.

wverdese
  • 129
  • 1
  • 10