Fix updater.
This commit is contained in:
parent
d10b782308
commit
a391529b32
@ -12,7 +12,7 @@ class GithubUpdateChecker() {
|
|||||||
*/
|
*/
|
||||||
fun checkForUpdate(): Observable<GithubUpdateResult> {
|
fun checkForUpdate(): Observable<GithubUpdateResult> {
|
||||||
return service.getLatestVersion().map { release ->
|
return service.getLatestVersion().map { release ->
|
||||||
val newVersion = release.version.replace("[^\\d.]".toRegex(), "")
|
val newVersion = release.version
|
||||||
|
|
||||||
// Check if latest version is different from current version
|
// Check if latest version is different from current version
|
||||||
if (newVersion != BuildConfig.VERSION_NAME) {
|
if (newVersion != BuildConfig.VERSION_NAME) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user