The exported XML file when using Cordova doesn't include a VersionCode. It'd be nice if this was included within Construct, or even the export section.
Attach a Capx
Description of Capx
But you can literally use any CAPX with an ID and description. This is just a blank capx (with included properties) because rules...
Steps to Reproduce Bug
- Open CAPX
- Export using Cordova
- Open exported config.xml
- Note that there's no line regarding the android-versionCode
When you upload an APK to Google Play Store, you see a version code. It defaults to 10000. If you then try to upload another APK, Google will throw up an error telling you that you have to upload an APK with a different version code. Note that the version code is different to the version that is included in Construct's Properties section.
Within the config.xml file, you're meant to be able to change the version code.
I added it in the top line, highlighted below in bold.
version="22.214.171.124" android-versionCode="10001" xmlns="http://www.w3.org/ns/widgets"
When I add this line in, build an APK and upload it to the store, it's accepted and works. Surely we should be able to edit this within Construct, rather than opening it up after each and every export, adding this line and then going through the normal process. At the very least, this line should be included in the exported XML already. I do note that if I change the "Version" number within Construct, the XML is changed already.
Again, I emphasise that Version is not the same as VersionCode.
Operating System and Service Pack
Construct 2 Version ID