Skip to content Skip to sidebar Skip to footer

Using Cordova To Set Values In The Android Project.properties File

TL;DR I have a cordova app that is targeting both iOS and Android. Is there a way using config.xml to set the values inside the cordova generated file platforms/android/project.pro

Solution 1:

the good solution for me was using the variable tag like this:

<pluginname="pluginA"spec="npm"><variablename=”PLAY_SERVICES_VERSION”value="15.0.0" /></plugin><pluginname="pluginB"spec="npm"><variablename=”PLAY_SERVICES_VERSION”value="15.0.0" /></plugin>

The source

Post a Comment for "Using Cordova To Set Values In The Android Project.properties File"