Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply GMS gradle plugin only for specific flavor #160

Closed
dvdh opened this issue Feb 6, 2016 · 2 comments
Closed

Apply GMS gradle plugin only for specific flavor #160

dvdh opened this issue Feb 6, 2016 · 2 comments

Comments

@dvdh
Copy link

dvdh commented Feb 6, 2016

Google Analytics documentation https://developers.google.com/analytics/devguides/collection/android/v4/

requires the use of this gradle plugin
apply plugin: 'com.google.gms.google-services'

However it is not clear how to apply this plugin only for specific flavors.

Example use case:
I have a free app flavor with google analytics, a paid version without analytics.

Can you please provide an example on how to achieve this?

Thanks,
David.

@samtstern
Copy link
Contributor

samtstern commented Feb 8, 2016

Please see the discussion on #54 which I think will contain the details you are looking for.

@dvdh
Copy link
Author

dvdh commented Feb 11, 2016

Thanks @samtstern, exactly it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants