Skip to content

Commit

Permalink
Update to new version code scheme
Browse files Browse the repository at this point in the history
Version codes now follow a MmmRR pattern, major number followed by two
digits for minor and revision respectively. This means 100 revisions for
each minor release, and 100 minors for each major - if we ever need more
than this (!) we'll have to extend the number of digits, but since the max
version code is 2,100,000,000 I didn't want to push it by jumping
straight to 3,000,000. Sure hope this ends up not being a bad decision!

So the basic idea now (explained in the manifest) is that we push betas
straight to production when ready. The next beta increments the minor
number. Updates to this beta and fixes for production both increment
their revision number - the beta being one minor number higher means
production can be updated without surpassing the beta version. Once the
current beta revision is ready to roll out, we just push it to production,
merge beta into master and tag it
  • Loading branch information
baka-kaba committed Jan 7, 2020
1 parent bfb0f90 commit 276ecb9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Awful.apk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><!--
Version code uses the format MmmRR following the Major, minor and Revision portions of the version number.
When a beta is pushed to production, the next beta should increment the minor number. Any updates to that
beta (or the production release) should increment the revision number. This means a beta is always one
minor number ahead of production, so they can be updated independently, and the beta can be pushed to production when ready.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ferg.awfulapp"
android:versionCode="10012"
android:versionCode="30608"
android:versionName="3.6.8"
android:installLocation="auto">
<supports-screens
Expand Down

0 comments on commit 276ecb9

Please sign in to comment.