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

@@ -92,6 +92,8 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- ExpoQuickActions (5.0.0):
- ExpoModulesCore
- ExpoSplashScreen (0.30.10):
- ExpoModulesCore
- ExpoSymbols (0.4.5):
@@ -2011,6 +2013,7 @@ DEPENDENCIES:
- ExpoLinearGradient (from `../node_modules/expo-linear-gradient/ios`)
- ExpoLinking (from `../node_modules/expo-linking/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- ExpoQuickActions (from `../node_modules/expo-quick-actions/ios`)
- ExpoSplashScreen (from `../node_modules/expo-splash-screen/ios`)
- ExpoSymbols (from `../node_modules/expo-symbols/ios`)
- ExpoSystemUI (from `../node_modules/expo-system-ui/ios`)
@@ -2165,6 +2168,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-linking/ios"
ExpoModulesCore:
:path: "../node_modules/expo-modules-core"
ExpoQuickActions:
:path: "../node_modules/expo-quick-actions/ios"
ExpoSplashScreen:
:path: "../node_modules/expo-splash-screen/ios"
ExpoSymbols:
@@ -2366,6 +2371,7 @@ SPEC CHECKSUMS:
ExpoLinearGradient: 7734c8059972fcf691fb4330bcdf3390960a152d
ExpoLinking: d5c183998ca6ada66ff45e407e0f965b398a8902
ExpoModulesCore: 272bc6c06ddd9c4bee2048acc57891cab3700627
ExpoQuickActions: fdbda7f5874aed3dd2b1d891ec00ab3300dc7541
ExpoSplashScreen: 1c22c5d37647106e42d4ae1582bb6d0dda3b2385
ExpoSymbols: c5612a90fb9179cdaebcd19bea9d8c69e5d3b859
ExpoSystemUI: 433a971503b99020318518ed30a58204288bab2d

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>