fix(Android): 🐛 修复安卓启动配置 (#191)

优化web worker处理时机
This commit is contained in:
Dawn
2025-01-18 01:35:47 +08:00
committed by GitHub
parent 000fcc289b
commit 5176aee1ac
23 changed files with 18 additions and 13 deletions
+5 -2
View File
@@ -1,3 +1,6 @@
{
"css.customData": [".vscode/tailwindcss.json"],
}
"css.customData": [
".vscode/tailwindcss.json"
],
"java.configuration.updateBuildConfiguration": "disabled",
}
+1 -1
View File
@@ -1,4 +1,4 @@
/src/main/java/com/hula/app/generated
/src/main/java/com/hula_app/app/generated
/src/main/jniLibs/**/*.so
/src/main/assets/tauri.conf.json
/tauri.build.gradle.kts
+2 -2
View File
@@ -15,10 +15,10 @@ val tauriProperties = Properties().apply {
android {
compileSdk = 34
namespace = "com.hula.app"
namespace = "com.hula_app.app"
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "com.hula.app"
applicationId = "com.hula_app.app"
minSdk = 24
targetSdk = 34
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
@@ -1,3 +1,3 @@
package com.hula.app
package com.hula_app.app
class MainActivity : TauriActivity()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 16 KiB

+1 -1
View File
@@ -41,7 +41,7 @@
"language": "zh-CN"
},
"nsis": {
"installerIcon": "./icons/windows/icon.ico",
"installerIcon": "./icons/icon.ico",
"displayLanguageSelector": true,
"languages": [
"SimpChinese"
+8 -6
View File
@@ -428,12 +428,14 @@ export const useChatStore = defineStore(
recallTime
})
// 使用 Worker 来处理定时器
timerWorker.postMessage({
type: 'startTimer',
msgId,
duration: RECALL_EXPIRATION_TIME
})
if (message.fromUser.uid === userStore.userInfo.uid) {
// 使用 Worker 来处理定时器
timerWorker.postMessage({
type: 'startTimer',
msgId,
duration: RECALL_EXPIRATION_TIME
})
}
// 记录这个消息ID已经有了定时器
expirationTimers.set(msgId, true)