chore(widget): add iOS location catalog infrastructure - #578
Open
YinCheng0106 wants to merge 1 commit into
Open
YinCheng0106 wants to merge 1 commit into
YinCheng0106 wants to merge 1 commit into
Conversation
This was referenced Sep 20, 2026
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
YinCheng0106
added this pull request to stack #581
September 20, 2026 16:07
YinCheng0106
marked this pull request as ready for review
September 22, 2026 03:01
This branch has not been deployed
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 做了什麼
建立 iOS Weather Widget 的地點目錄(location catalog)基礎架構,讓 DPIP App 可以把使用者已儲存的地點同步到 Widget App Group,供後續每個 Widget instance 的地點設定使用。
此 PR 是 Widget 開發堆疊的第二階段,只處理「地點資料如何提供給原生 Widget / Intents Extension」,不改變目前 Widget 的設定 UI,也不加入 Widget 自行抓取天氣的能力。
主要變更
App Group 資料
位置:
WidgetSnapshots/location-catalog.json目前 schema:
schemaVersion: 1範例結構:
{ "schemaVersion": 1, "locations": [ { "regionCode": "242", "displayName": "新莊區", "administrativeAreaName": "新北市", "latitude": 25.0, "longitude": 121.4 } ] }Current Location 不存入 catalog;它會由後續原生 Widget configuration 當作特殊選項提供。
行為與邊界
驗證方式
建議 reviewer 優先確認:
WidgetSnapshots/location-catalog.json相關 Dart tests 涵蓋:
不包含
此 PR 不包含:
以上功能由後續 PR 分階段處理。
PR Stack
依賴:
feat/ios-widget-current-weather後續:
feat/ios-widget-intent-configurationfeat/ios-widget-weather-refresh檢查清單
main