I have a project with a lot of build types and 2 product flavors.
I've integrated FCM into my project, but I want to enable them only for some build types. To enable FCM, I have to add apply plugin: 'com.google.gms.google-services'
into my module-level build.gradle
. According to this answer, I can't enable plugin only for certain build type.
All my build types have different package names, and I have generated google-services.json
only for packages, which should use FCM.
So finally a question: How to enable (disable) FCM for certain build type?