Repository navigation
Android 應用內更新依 ABI 下載分包;三語 README 功能清單 - #490
Merged
Merged
Conversation
Carinoasd
force-pushed
the
feat/local-list-filter-and-quick-open
branch
from
November 27, 2026 08:10
a272950 to
bfdf216
Compare
Carinoasd
force-pushed
the
feat/android-abi-update-and-readme
branch
from
November 27, 2026 08:10
06762b9 to
0e52eac
Compare
Carinoasd
changed the base branch from
feat/local-list-filter-and-quick-open
to
master
November 27, 2026 08:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
疊在 #489 上(base 是
feat/local-list-filter-and-quick-open)。不動packages/,沒有改原生程式碼。1. Android 應用內更新依 ABI 選分包
ABI 偵測用
dart:ffi的Abi.current(),也就是 App 目前執行的 ABI,不需要新增平台管道。tsdm_client-arm64_v8a.apk(碼 3)→tsdm_client-universal.apk(碼 9)tsdm_client-armeabi_v7a.apk(碼 2)→ universalUpdateAsset:一個可安裝的發布檔(檔名+ABI 碼)。androidUpdateAssets(abi)回傳候選清單,universal 永遠排最後。UpdateInstaller新增assets:這台裝置可裝的檔案,依優先順序。Android 是上表,Windows 只有 zip。state == uploaded的。分包不存在或還在上傳 → universal。version.json裡列出的第一個。DownloadedUpdate.versionCode改用實際下載的那個檔案的 ABI 碼(版本號 × 10 + 碼)。原生端的檢查沒有動:APK 的版本號必須等於這個值,且必須大於已安裝的版本號。既有規則的確認(都有測試):
update_not_newer會擋,Android 系統也會擋。這本來就不算更新,App 也不會提供同版更新。android/app/build.gradle一致,測試直接讀 gradle 檔比對。快取:先前下載的檔案重新取用時,一樣比對解析出來的那個檔案的大小與雜湊。若先前因為 release 還沒有分包而下載了 universal,之後分包出現,快取的 universal 不會被當成分包交給安裝器,會被刪掉重新下載分包。
2. 三語 README
「主要功能」從 5 組 38 條流水帳改成 9 組 42 條,三份(
README.md、README.zh-hant.md、README.en.md)逐條對應。Ctrl+K、老闆鍵、應用內更新等。CHANGELOG.md找得到對應的已發布項目。這條疊層上還沒發版的功能(設定搜尋、清單篩選、選單面板)沒有寫進去。測試
test_1428_android_abi_update_test.dart(19 個):test_1423:測試用的假安裝器補上assets。dart ./scripts/check_strict_analyzing.dart:No issues found。沒有驗證與沒有處理的部分
🤖 Generated with Claude Code