mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-27 19:47:51 +02:00
Fix updater.
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user