Skip to content

Commit

Permalink
Version 2.2.2
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Guerinet <julien@guerinet.com>
  • Loading branch information
jguerinet committed Dec 26, 2017
1 parent 8e1d534 commit f1933cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Version 2.2.2 (2017-12-26)
* `util`:
* Made the `BaseUpdateManager` methods `open`

## Version 2.2.1 (2017-12-26)
* Updated Kotlin
* `util`:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# org.gradle.parallel=true

# Project properties
suitcase_version=2.2.1
suitcase_version=2.2.2
group=com.guerinet

# Android specific properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ abstract class BaseUpdateManager(private val prefs: SharedPreferences,
/**
* @return True if an update is necessary, false otherwise
*/
fun needsUpdate(): Boolean = prefs.getInt(versionPrefName, -1) < currentVersionCode
open fun needsUpdate(): Boolean = prefs.getInt(versionPrefName, -1) < currentVersionCode

/**
* Runs any update code if necessary
*/
fun update() {
open fun update() {
var storedCode = prefs.getInt(versionPrefName, -1)

if (storedCode < currentVersionCode) {
Expand Down

0 comments on commit f1933cc

Please sign in to comment.