1. What is the attribute android-versionCode doing there?
It should not be an attribute of the widget element, but rather a preference, as in
<preference name="android-versionCode" value="4151" />
This is only used in combination with the gradle build tool
2. The id, version, description and other meta data are specified in the config.xml.
If your built .apk doesn't contain what was specified, then the odds are that your config was not found, read and parsed, due to:
- activated Hydration, or
- wrong directory structure for PGB
If the former, disable Hydration and rebuild.
Regarding the latter: can you confirm that you have both config.xml and index.html in the root directory ("/") of your zip file, and that no other file called index.html exists in your assets?
Thanks for the quick response. We've had versionCode and android-versionCode in <widget> since cli-5.2.0. I will try moving the latter to a <preference>. I can confirm that index.html and config.xml are both located in the root, and those are the only files with those names in the install. Hydration is definitely off.
I tried removing the attributes, replacing them with <preference> settings, and with moving the <preference> settings under <platform>. These changes had no effect; when installed on our test devices, and when uploaded to the Google Play Developer Console, the version name was still reported as 1.0.
But I did discover the problem: a custom GitHub plugin we introduced with this version. The plugin bundled a build.gradle file with a defaultConfig block whose versionName setting seems to have been overriding the version name set in config.xml. I change versionName here to 2.3.1 and this is now reflected when we build the app on PGB. Most of the contents of this file seem to be placeholders or otherwise ignored, so I'll need to work with our plugin developer to see what the best way to handle this is. But at least it's enough to get our release out.