apache / apache/cordova-android

App config.xml does not update AndroidManifest.xml file's versionCode, versionName or anything

Open
#758 16 comments 3 reactions 0 assignees View on GitHub
support
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

# Bug Report
App config.xml does not update AndroidManifest.xml file's versionCode, versionName or anything
## Problem
I have changed app version, add some meta-data at android scope in config.xml file but after build it does not update android 'AndroidManifest.xml' file. I still see the previous value and meta-data in 'AndroidManifest.xml'.
### What is expected to happen?
changing on app config.xml file [app version, meta-data], should be changed in android 'AndroidManifest.xml' file after build.

### What does actually happen?
After changing app config.xml file widget version, meta-data, when the build finished nothing updated in AndroidManifest.xml file. And it shows no error, warning in build console/terminal. Build was success.

## Information

Changes on config.xml file data [app widget version], it changes automatically app version for the first couple of builds but after 6-7th time cordova build it does not automatically update. 'AndroidManifest.xml' so my android build version not updating and meta-data not added.
**Screenshot attached**
1. App config.xml file
Screen Shot 2019-07-03 at 7 39 14 PM
2. AndroidManifest.xml file after cordova build, it still showing previous properties
Screen Shot 2019-07-03 at 7 40 30 PM

### Command or Code

`ionic cordova build android`

### Environment, Platform, Device

```
Ionic:

ionic (Ionic CLI) : 4.0.1
Ionic Framework : ionic-angular 3.9.4-201903121725
@ionic/app-scripts : 3.1.8

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, browser 5.0.4, ios 4.5.4

System:

Android SDK Tools : 26.1.1
ios-deploy : 1.9.4
NodeJS : v10.15.1 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

Environment:

ANDROID_HOME : /Users/bs228/Library/Android/sdk
```

### Version information

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with config.xml using `ionic cordova build android`, then compare the generated AndroidManifest.xml with the configured app version and Android meta-data. Done means changes to config.xml consistently appear in AndroidManifest.xml after the build, without errors or warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.