DEV Community

Mayank
Mayank

Posted on

Answer: How to apply plugin to only one flavor in gradle?

I simply used apply plugin: 'com.google.gms.google-services' inside the flavor in app level build.gradle and it works just fine.

productFlavors {
    ..... your other flavors ....
    yourFlv {
        ....
        ....
        apply plugin: 'com.google.gms.google-services'
    }
}

No extra step needed.

Top comments (0)