cmackay / google-analytics-plugin

Cordova Google Analytics Plugin for Android & iOS
Apache License 2.0
89 stars 43 forks source link

Feature/#77 custom framework version #79

Closed petarov closed 6 years ago

petarov commented 6 years ago

This adds the possibility to specify a custom version for the play-services-analytics dependency using a ANALYTICS_VERSION cordova variable.

Ref #77

IMO, the Cordova plugin docs were not too clear on this, but I saw that the firebase-analytics plugin uses the same technique. 😉


This could be tested on a clean cordova project. After adding the plugin using the variable, the Android platforms/android/build.gradle file should contain the dependency with the exact version specified, i.e.,

$ cat platforms/android/build.gradle | grep analytics
    compile "com.google.android.gms:play-services-analytics:11.0.1"