Skip to content

Commit

Permalink
fix f-droid automatic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
smichel17 committed Sep 7, 2017
1 parent 233c921 commit 5529cb6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 9 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ android {
applicationId "com.jmstudios.redmoon"
minSdkVersion 17
targetSdkVersion 25
versionCode 31
versionName "${org.ajoberstar.grgit.Grgit.open().describe()}"
versionCode 32
versionName "3.1.2"
javaCompileOptions {
annotationProcessorOptions {
arguments = [ eventBusIndex : 'com.jmstudios.redmoon.event.EventBusIndex' ]
Expand All @@ -62,7 +62,13 @@ android {

debug {
applicationIdSuffix '.debug'
versionNameSuffix '_DEBUG'
def repo = org.ajoberstar.grgit.Grgit.open()
def commitId = "${repo.log().get(0).getAbbreviatedId()}"
if (repo.status().isClean()) {
versionNameSuffix "-$commitId"
} else {
versionNameSuffix "-$commitId (dirty)"
}
}
}
productFlavors {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/jmstudios/redmoon/RedMoonApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class RedMoonApplication: Application() {
upgradeFrom(26)
} in 26..27 -> {
upgradeFrom(28)
} in 28..30 -> {
} in 28..31 -> {
upgradeProfilesFrom(version)
upgradeFrom(31)
upgradeFrom(32)
} else -> {
Log.e("Didn't catch upgrades from version $version")
upgradeFrom(version+1)
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/xml/changelog_master.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<release version="3.1.2" versioncode="32" >
<change>Fix a bug where widgets and tiles did not work</change>
</release>
<release version="3.1.1" versioncode="31" >
<change>Fix a crash on Android 6.0 and earlier</change>
<change>Enable finer control over behavior in secure apps</change>
Expand Down

0 comments on commit 5529cb6

Please sign in to comment.