From f0043676c6394d781147bbdfb5c1ae9739b94d68 Mon Sep 17 00:00:00 2001 From: nestor Date: Sat, 4 Nov 2023 17:10:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E5=8E=BB=E9=99=A4=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8=E5=A4=B1=E8=B4=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../homeassistant/companion/android/update/UpdateUtil.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt b/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt index 097042c90de..401324676cc 100644 --- a/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt +++ b/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt @@ -99,14 +99,6 @@ object UpdateUtil { } private fun githubCheckNew(context: Activity, okHttpClient: OkHttpClient) { - runBlocking(Dispatchers.Main) { - Toast.makeText( - context, - "次数用尽检查更新失败,尝试备用更新,推荐关注公众号:UnknownExceptions 回复最新版进行更新", - Toast.LENGTH_SHORT - ).show() - } - try { val request = Request.Builder().apply { url("https://github.com/nesror/Home-Assistant-Companion-for-Android/releases/latest") From 63c4c1d4a4d3687ab2b5aa7ecc4a98781f32eaa9 Mon Sep 17 00:00:00 2001 From: nestor Date: Sat, 4 Nov 2023 18:06:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=E5=8E=BB=E9=99=A4=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8=E5=A4=B1=E8=B4=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/homeassistant/companion/android/update/UpdateUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt b/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt index 401324676cc..17d7f69df72 100644 --- a/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt +++ b/app/src/main/java/io/homeassistant/companion/android/update/UpdateUtil.kt @@ -51,7 +51,7 @@ object UpdateUtil { val formBody: RequestBody = FormBody.Builder() .add("_api_key", context.getAppMetaDataString("pgy_api_key")) .add("appKey", "8a601dcac3098f0d5c89fa9fe416ca94") - .add("buildVersion", BuildConfig.VERSION_NAME) + .add("buildVersion", BuildConfig.VERSION_CODE.toString()) .build() val request = Request.Builder().apply { url("https://www.pgyer.com/apiv2/app/check")