feat: 添加快捷动作功能,支持快速记录饮水量,更新相关配置和服务

This commit is contained in:
richarjiang
2025-09-05 17:17:22 +08:00
parent 6af86800f2
commit aee291bb69
8 changed files with 384 additions and 3 deletions

View File

@@ -89,5 +89,53 @@
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIApplicationShortcutItems</key>
<array>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>IconGlass</string>
<key>UIApplicationShortcutItemTitle</key>
<string>喝水</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>快速记录饮水</string>
<key>UIApplicationShortcutItemType</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).drink_water</string>
<key>UIApplicationShortcutItemUserInfo</key>
<dict>
<key>amount</key>
<integer>250</integer>
</dict>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>IconGlass</string>
<key>UIApplicationShortcutItemTitle</key>
<string>喝水 100ml</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>快速记录饮水</string>
<key>UIApplicationShortcutItemType</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).drink_water_100</string>
<key>UIApplicationShortcutItemUserInfo</key>
<dict>
<key>amount</key>
<integer>100</integer>
</dict>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>IconGlass</string>
<key>UIApplicationShortcutItemTitle</key>
<string>喝水 200ml</string>
<key>UIApplicationShortcutItemSubtitle</key>
<string>快速记录饮水</string>
<key>UIApplicationShortcutItemType</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).drink_water_200</string>
<key>UIApplicationShortcutItemUserInfo</key>
<dict>
<key>amount</key>
<integer>200</integer>
</dict>
</dict>
</array>
</dict>
</plist>