Repository navigation
feat(map): draw the device's own movement track as a layer - #625
Merged
Merged
Conversation
Platform: all New(zh-Hant): 地圖的「生活」分類新增「軌跡」圖層,可看今天、7 天、30 天或全部的移動紀錄;資料只存在這支手機,不會上傳 New(en-US): a new Track layer under Daily life on the map shows where this phone has been today, in the last 7 or 30 days, or ever; it stays on the device and is never uploaded
Codecov Report❌ Patch coverage is ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
這個 PR 做了什麼
裝置本來就會在本機記錄移動軌跡(
LocationTrackStore.kt/LocationTrackStore.swift寫入location_track.db,50 MB 上限、從最舊的開始刪),但除了診斷報告的筆數和大小以外,使用者看不到它。這個 PR 在地圖圖層選單的「生活」分類新增「軌跡」圖層,並清楚註明資料只存在這支手機、不會上傳、移除 app 或清除資料後就會遺失。記錄本身沒有改:一樣只在允許背景定位時記錄、沒有開關、沿用 50 MB 上限。
改動內容
正式程式碼
bc2ba2b5refactor:解碼抽成共用,並新增串流讀取器LocationTrack改用同一個解碼器,測試透過共用的 fixture helper 讀資料庫。3d3ddf37新增「軌跡」圖層lib/core/geo/track_digest.dart。clearTrack();確認檔案真的空了才顯示「已清除軌跡」。開發者頁的清除入口不變。f56cc7d5文件:ARCHITECTURE.md § Persistence註明移動軌跡永遠不會離開裝置(repo 沒有獨立的隱私文件)。測試
相關 issue
沒有對應的 issue。
怎麼驗
tool/commit.sh --push通過(analyze、codegen、全部 Dart 測試、l10n)。新字串 12 個語系都有翻譯。NSLocationAlwaysAndWhenInUseUsageDescription目前只提到警報。合併注意:和 #616、#618 都在 ARB 檔尾端新增 key,後合併的需要 rebase 並重新產生 l10n。
檢查清單
tool/check/commits.sh通過tool/commit.sh --push)AppLocalizations,12 個語系都有翻譯