0

To fix a recently problem with "com.google.android.gms.license" the recommended solution is to edit platforms/android/project.properties to specific the version of the libraries

old:

cordova.system.library.1=com.google.android.gms:play-services-auth:+

new:

cordova.system.library.1=com.google.android.gms:play-services-auth:11+

However the Ionic scaffolder deliberately out platforms/ into the .gitignore file so these changes will not be committed and shared to other dev. How/where should I make this change so that it persists?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Craig
  • 8,093
  • 8
  • 42
  • 74
  • This may help https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files – Duannx Mar 23 '18 at 01:49
  • @Duannx Since Ionic put those items into git-ignore on purpose I don't think I should be modifying it – Craig Mar 24 '18 at 09:20

1 Answers1

1

You can use the cordova-android-play-services-gradle-release plugin to align the versions specified by various plugins during the Cordova build process so you don't need to modify/exclude platforms/android/project.properties:

cordova plugin add cordova-android-play-services-gradle-release  --variable PLAY_SERVICES_VERSION=11+
DaveAlden
  • 30,083
  • 11
  • 93
  • 155