Some of my product flavors work with Firebase and some of them don't. However, if I add classpath 'com.google.gms:google-services:4.2.0' to my dependencies, a google-services.json for each product flavor will be required. Is there any way to specify, that only some of my product flavors work with Firebase?
My suggestion would be to add a mock google-services.json file for the product flavors that don't use it. Is there any better way?
I think that you could just place an empty google-services.json file in those flavors.