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

Comments

Projects
None yet
2 participants
@dvdh

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

This comment has been minimized.

Show comment
Hide comment
@samtstern

samtstern Feb 8, 2016

Member

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

Member

samtstern commented Feb 8, 2016

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

@samtstern samtstern closed this Feb 8, 2016

@dvdh

This comment has been minimized.

Show comment
Hide comment
@dvdh

dvdh Feb 11, 2016

Thanks @samtstern, exactly it.

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