[Android] VERSION_CODE generation

2015-06-02 Thread Joe Bowser
I just fixed CB-9080 by removing the fix for CB-8834, since I consider VERSION_DOWNGRADE to be easily worked around while not launching the application on older devices is an unacceptable fail state. The thing is why is VERSION_DOWNGRADE happening in the first place, and why are we generating the

Re: [Android] VERSION_CODE generation

2015-06-02 Thread Andrew Grieve
I can shed some light. The code for it is here: https://github.com/apache/cordova-android/blob/master/bin/templates/project/build.gradle#L178 There are two times we fiddle with it: 1 - When building multiple architectures (cough crosswalk cough) 2 - When a minSdkVersion is set. Play store