NaitLee / Cat-Printer

Application supporting Bluetooth thermal “Cat Printers”, for everyone!
GNU General Public License v3.0
307 stars 31 forks source link

versioncodes messed up #48

Closed IzzySoft closed 1 year ago

IzzySoft commented 1 year ago

Please take care to always increase (and never decrease) versionCode, as that's what Android uses internally to decide whether an APK is an update to the already installed app or not. Currently, there's an issue:

Al future versions must have a versionCode > 12160002 to be accepted by existing installations. Can you please take care for that? Thanks in advance!

NaitLee commented 1 year ago

Sorry for not replying earlier. The future versions will always have version code like 0.6.2.0

(Shouldn’t it be Python for Android to blame? 🙃 It’s really increasing a minor version)

IzzySoft commented 1 year ago

The future versions will always have version code like 0.6.2.0

That's the versionName, which is just for humans to read. For Android, versionCode (an integer) is the important one (I guess if that's based on versionName it would be fixed as a side-effect, so all would be fine then). And no idea which tool to blame – I didn't intend "blame", just trying to help :smile:

NaitLee commented 1 year ago

Yes I know 😄 I’m not strictly android dev and this project is just using python-for-android to do those works. Things like version “code” are out of my control, and p4a just wanted a version name.

So as said versioning should be ok from now on.