This message was deleted.
# android
s
This message was deleted.
s
Perhaps https://developer.android.com/studio/build/build-variants#configure-sourcesets can help? You could explicitly specify sourceSets as needed.
a
Thanks, but as this class is in another module, I am looking for a way to actually do that by module dependency, aka flavor1Debug and flavor2Debug would use the module in debug and flavor3Debug would use release
s
Ah okay..And you do not want to specify the dependency for each variant separately?
Are you using flavors and build types? I think you should be able to use
extendsFrom
to specify inheritance amongst buildtypes which may help resolve this. However that would become an implciti config which you may forget about later 🙂