Gradle: add dependency for a specific flavour of the library
I have a library project and a application. I'd like to have 2 product flavours ( store , dev ) for both library and application. When I build the store flavour for the application I want to use the store flavour from the library. Also when I build the dev flavour for the application I want to use the dev flavour from the library. I tried setting the same product flavours for both library and application but it does not work. Here is my configuration: Library apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion "19.1.0" defaultConfig { applicationId "ro.amarkovits