From 3c34b6a7d266e5addb163833c5d71ac6b1927bdb Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 6 Dec 2022 22:06:49 -0300 Subject: [PATCH] Upping the version code once more, and fixing the self updater --- mastodon/build.gradle | 4 ++-- .../joinmastodon/android/updater/GithubSelfUpdaterImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 323e4b034..5d1596322 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.joinmastodon.android.moshinda" minSdk 23 targetSdk 33 - versionCode 53 - versionName "1.1.4+fork.53.moshinda" + versionCode 54 + versionName "1.1.4+fork.54.moshinda" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" resConfigs "en", "ar-rSA", "bs-rBA", "ca-rES", "cs-rCZ", "de-rDE", "el-rGR", "es-rES", "eu-rES", "fi-rFI", "fr-rFR", "gl-rES", "hr-rHR", "hy-rAM", "it-rIT", "iw-rIL", diff --git a/mastodon/src/github/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java b/mastodon/src/github/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java index e7dbe21cb..3621ef33e 100644 --- a/mastodon/src/github/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java +++ b/mastodon/src/github/java/org/joinmastodon/android/updater/GithubSelfUpdaterImpl.java @@ -144,7 +144,7 @@ public class GithubSelfUpdaterImpl extends GithubSelfUpdater{ Log.d(TAG, "actuallyCheckForUpdates: new version: "+version); for(JsonElement el:obj.getAsJsonArray("assets")){ JsonObject asset=el.getAsJsonObject(); - if("megalodon.apk".equals(asset.get("name").getAsString()) && "application/vnd.android.package-archive".equals(asset.get("content_type").getAsString()) && "uploaded".equals(asset.get("state").getAsString())){ + if("moshidon.apk".equals(asset.get("name").getAsString()) && "application/vnd.android.package-archive".equals(asset.get("content_type").getAsString()) && "uploaded".equals(asset.get("state").getAsString())){ long size=asset.get("size").getAsLong(); String url=asset.get("browser_download_url").getAsString();