tiagoMissiato
tiagoMissiato

Reputation: 345

Gradle with Flavors configuration

I read a lot of posts here e couldn't find a way to do it, what i want is define the "res" for debug per flavor, like:

+ src
+ main
    + java 
    + res
+ flavor1
    + release
        + res
    + debug
        + res
+ flavor2
    + release
        + res
    + debug
        + res

the reason is that I have ic_launcher to each buildTypes , and each flavor has your own ic_launcher, so I need to have de release and debug ic_launcher per flavor.

is that possible?

Upvotes: 0

Views: 91

Answers (1)

Mann
Mann

Reputation: 661

It's possible with the following namings:

  • flavor1Release
  • flavor1Debug
  • flavor2Release
  • flavor2Debug

Put in every directory a result folder and your specific launcher icon. Then you can switch the build type and the system will select the correct one

Upvotes: 1

Related Questions