Commit 03b69b437e784baeaac94b19ddade1777afc689c

Authored by 权海
1 parent 8a108a53

feat(ui):添加watch app 推送、watch表盘、移除thinkingdata

Showing 45 changed files with 1505 additions and 497 deletions
... ... @@ -5,6 +5,12 @@
"version": "0.2.0",
"configurations": [
{
"name": "Flutter: Attach to Device",
"type": "dart",
"request": "attach"
},
{
"name": "Flutter-release",
"type": "dart",
"request": "launch",
... ...
... ... @@ -30,7 +30,7 @@ target 'Runner' do
use_frameworks!
pod 'SDWebImage'
pod 'ThinkingSDK'
# pod 'ThinkingSDK'
pod 'DeviceGuru'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
... ... @@ -43,7 +43,7 @@ target 'Runner Watch App' do
pod 'SDWebImage'
pod 'SDWebImageSwiftUI'
pod 'ThinkingDataAnalyticsExtension'
# pod 'ThinkingDataAnalyticsExtension'
end
... ...
... ... @@ -28,25 +28,6 @@ PODS:
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
- ThinkingDataAnalyticsExtension (1.1.3):
- ThinkingDataCore (= 1.3.3)
- ThinkingDataCore (1.3.3):
- ThinkingDataCore/Main (= 1.3.3)
- ThinkingDataCore/iOS (1.3.3)
- ThinkingDataCore/Main (1.3.3):
- ThinkingDataCore/iOS
- ThinkingDataCore/OSX
- ThinkingDataCore/tvOS
- ThinkingDataCore/versionOS
- ThinkingDataCore/watchOS
- ThinkingDataCore/watchOS (1.3.3)
- ThinkingSDK (3.4.0):
- ThinkingSDK/Main (= 3.4.0)
- ThinkingSDK/iOS (3.4.0):
- ThinkingDataCore (= 1.3.3)
- ThinkingSDK/Main (3.4.0):
- ThinkingSDK/iOS
- ThinkingSDK/OSX
- TOCropViewController (2.7.4)
- webview_flutter_wkwebview (0.0.1):
- Flutter
... ... @@ -64,8 +45,6 @@ DEPENDENCIES:
- SDWebImageSwiftUI
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- ThinkingDataAnalyticsExtension
- ThinkingSDK
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/darwin`)
SPEC REPOS:
... ... @@ -73,9 +52,6 @@ SPEC REPOS:
- DeviceGuru
- SDWebImage
- SDWebImageSwiftUI
- ThinkingDataAnalyticsExtension
- ThinkingDataCore
- ThinkingSDK
- TOCropViewController
EXTERNAL SOURCES:
... ... @@ -100,7 +76,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
DeviceGuru: f0f2bd81953d82777689f22025bca418e0c51d64
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1
image_cropper: c4326ea50132b1e1564499e5d32a84f01fb03537
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
... ... @@ -110,12 +86,9 @@ SPEC CHECKSUMS:
SDWebImageSwiftUI: 965cdad5a7210b7ec06aaa1a3d17180d0a152250
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
ThinkingDataAnalyticsExtension: 06a9b27447ba1fc7b38d336f0b1807c682349983
ThinkingDataCore: 69334fda774daf150396514cfd79b90cdb0c0d16
ThinkingSDK: e114c65ad28ccfc11b9de84e902abbd73c69fc32
TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654
webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2
PODFILE CHECKSUM: 2fe1ab1ea8359a411d88196bffe408db7cb1c02a
PODFILE CHECKSUM: a8659e141c630710570ccaa57479406ca3a4bc20
COCOAPODS: 1.16.2
... ...
... ... @@ -7,6 +7,7 @@
import SwiftUI
// 双人压力表盘
struct DFCoupleStressHomeView: View {
var hasData: Bool = true
... ...
... ... @@ -7,6 +7,7 @@
import SwiftUI
// 单人压力表盘
struct DFSingleStressHomeView: View {
var kind: DFWatchStressKind = .overloaded
var value: String? = "38ms"
... ...
... ... @@ -56,7 +56,7 @@ struct DFDefaultWatchHomeView: View {
updateDate()
}
}
private func updateDate(){
let calendar = Calendar.current
let component = calendar.component(.weekday, from: .now)
... ...
... ... @@ -10,6 +10,7 @@ import SwiftUI
struct MainPagingView: View {
@State private var showPKView = false
@State private var currentPage = 0
@EnvironmentObject var router: WatchNotificationRouter
var body: some View {
NavigationView {
... ... @@ -36,5 +37,13 @@ struct MainPagingView: View {
.fullScreenCover(isPresented: $showPKView, content: {
PKDetailView()
})
.onAppear {
router.consumeCachedPayloadIfNeeded()
}
.onChange(of: router.pendingNotification?.id) { _, id in
guard let id else { return }
// TODO: 根据 id 跳转详情页
print("跳转通知详情:", id)
}
}
}
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.healthkit</key>
<true/>
<key>com.apple.developer.healthkit.background-delivery</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.luiz.doublefeel.watchkitapp</string>
</array>
</dict>
</plist>
... ...
... ... @@ -6,24 +6,26 @@
//
import Foundation
import ThinkingDataAnalyticsExtension
//import ThinkingDataAnalyticsExtension
class ThinkSDKUtil {
static func initSDK() {
/*
#if DEBUG || CI_ENV
TDAnalyticsExtension.start(withAppId: "1efaeef2c4c04a3bac557d78899ecee6", serverUrl: "https://ta-api.didiapp.com")
#else
TDAnalyticsExtension.start(withAppId: "6e53fb7a8f5f483081c15b8f5f017401", serverUrl: "https://ta-api.didiapp.com")
#endif
*/
}
static func track(eventName: String,
properties: [String: Any]? = nil) {
TDAnalyticsExtension.track(eventName, properties: properties)
// TDAnalyticsExtension.track(eventName, properties: properties)
}
static func login(_ uid: Int) {
TDAnalyticsExtension.login(uid.string)
// TDAnalyticsExtension.login(uid.string)
}
}
... ...
//
// WatchAppDelegate.swift
// Runner Watch App
//
// Created by 权海 on 2026/6/17.
//
import WatchKit
import UserNotifications
final class WatchAppDelegate: NSObject, WKApplicationDelegate, UNUserNotificationCenterDelegate {
func applicationDidFinishLaunching() {
setup()
let center = UNUserNotificationCenter.current()
center.delegate = self
requestNotificationPermission()
}
private func setup(){
WatchUserAgent.share.genUA()
WatchSessionManager.share.addListen()
WatchDataManager.share.requestAuthForHealth()
WatchDataManager.share.fetchMyTodayData()
WatchDataManager.share.fetchOtherTodayData()
ThinkSDKUtil.initSDK()
if let id = WatchUserinfoManager.share.myUserinfo?.id {
ThinkSDKUtil.login(id)
}
}
private func requestNotificationPermission() {
UNUserNotificationCenter.current().requestAuthorization(
options: [.alert, .sound, .badge]
) { granted, error in
print("watch notification permission:", granted, error as Any)
guard granted else { return }
DispatchQueue.main.async {
WKApplication.shared().registerForRemoteNotifications()
}
}
}
func didRegisterForRemoteNotifications(withDeviceToken deviceToken: Data) {
let token = deviceToken.map { String(format: "%02x", $0) }.joined()
print("watch apns token:", token)
// TODO: 上传到你的服务端
// uploadWatchToken(token)
}
func didFailToRegisterForRemoteNotificationsWithError(_ error: Error) {
print("watch register push failed:", error)
}
// App 在前台收到通知:热启动前台展示
func userNotificationCenter(
_ center: UNUserNotificationCenter,
willPresent notification: UNNotification
) async -> UNNotificationPresentationOptions {
let userInfo = notification.request.content.userInfo
print("watch will present:", userInfo)
return [.banner, .sound]
}
// 用户点击通知:冷启动 / 后台 / 前台都走这里
func userNotificationCenter(
_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse
) async {
let userInfo = response.notification.request.content.userInfo
print("watch notification clicked:", userInfo)
WatchNotificationRouter.shared.handle(userInfo: userInfo)
}
}
... ...
//
// WatchAppSchema.swift
// Runner Watch App
//
// Created by 权海 on 2026/6/17.
//
import Foundation
/*
doublefeel.watchapp:// 打开watch app
doublefeel.watchapp://pressure/hrv?userId=0 单人hrv压力
doublefeel.watchapp://pressure/realtime?userId=0 单人实时压力
doublefeel.watchapp://pressure/hrv 双人hrv压力
doublefeel.watchapp://pressure/realtime 双人实时压力
doublefeel.watchapp://summary?userId=0 // 单人今日状态
*/
enum WatchAppSchema: String{
case pressureHrv = "doublefeel.watchapp://pressure/hrv"
case pressureRealTime = "doublefeel.watchapp://pressure/realtime"
case pressureSummary = "doublefeel.watchapp://summary"
}
... ...
//
// WatchNotificationRouter.swift
// Runner Watch App
//
// Created by 权海 on 2026/6/17.
//
import Foundation
import Combine
final class WatchNotificationRouter: ObservableObject {
static let shared = WatchNotificationRouter()
@Published var pendingNotification: WatchNotificationPayload?
private init() {}
func handle(userInfo: [AnyHashable: Any]) {
let payload = WatchNotificationPayload(userInfo: userInfo)
DispatchQueue.main.async {
self.pendingNotification = payload
}
}
func consumeCachedPayloadIfNeeded() {
// pendingNotification = WatchNotificationPayload(
// id: id,
// type: type
// )
}
}
struct WatchNotificationPayload {
let id: String?
let type: String?
init(userInfo: [AnyHashable: Any]) {
self.id = userInfo["id"] as? String
self.type = userInfo["type"] as? String
}
init(id: String?, type: String?) {
self.id = id
self.type = type
}
}
... ...
... ... @@ -87,6 +87,16 @@ class WatchSessionManager: NSObject, WCSessionDelegate, ObservableObject {
print("Activation error: \(error.localizedDescription)")
}
}
#if os(iOS)
func sessionDidBecomeInactive(_ session: WCSession) {
}
func sessionDidDeactivate(_ session: WCSession) {
WCSession.default.activate()
}
#endif
}
... ...
... ... @@ -6,26 +6,17 @@
//
import SwiftUI
import ThinkingDataAnalyticsExtension
import UserNotifications
import WidgetKit
@main
struct hippo_watch_Watch_AppApp: App {
@State private var currentPage = 0
@StateObject private var router = WatchNotificationRouter.shared
var body: some Scene {
WindowGroup {
MainPagingView()
.onAppear {
WatchUserAgent.share.genUA()
WatchSessionManager.share.addListen()
WatchDataManager.share.requestAuthForHealth()
WatchDataManager.share.fetchMyTodayData()
WatchDataManager.share.fetchOtherTodayData()
ThinkSDKUtil.initSDK()
if let id = WatchUserinfoManager.share.myUserinfo?.id {
ThinkSDKUtil.login(id)
}
}
.environmentObject(router)
}
}
}
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>com.luiz.doublefeel.watchkitapp</key>
<string>doublefeel.watchapp</string>
</dict>
</array>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
<key>WKBackgroundModes</key>
<array>
<string>self-care</string>
<string>workout-processing</string>
</array>
</dict>
</plist>
... ...
... ... @@ -3,19 +3,26 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 77;
objects = {
/* Begin PBXBuildFile section */
36345731C945926C4A5BD632 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CEEADFA95177019D949C8D0 /* Pods_Runner.framework */; };
66FB19002FDBC80100F515B4 /* DFWatchFigmaTokens.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66FB19032FDBC80100F515B4 /* DFWatchFigmaTokens.swift */; };
66FB19012FDBC80100F515B4 /* DFWatchFigmaHomeViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66FB19042FDBC80100F515B4 /* DFWatchFigmaHomeViews.swift */; };
66FB19022FDBC80100F515B4 /* DFWatchFigmaDetailViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66FB19052FDBC80100F515B4 /* DFWatchFigmaDetailViews.swift */; };
661A0D342FE2AB340026EEBB /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66FBE5A72FDA518C00F515B4 /* WidgetKit.framework */; };
661A0D352FE2AB340026EEBB /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 66FBE5A92FDA518C00F515B4 /* SwiftUI.framework */; };
661A0D402FE2AB360026EEBB /* hippo-watch-extensionExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 661A0D332FE2AB340026EEBB /* hippo-watch-extensionExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
66FBE58C2FDA4F0F00F515B4 /* Runner Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 66FBE58B2FDA4F0F00F515B4 /* Runner Watch App.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
D0E7FB41C5122A32579199E1 /* Pods_Runner_Watch_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32675A83AFB845DC8CA3467C /* Pods_Runner_Watch_App.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
661A0D3E2FE2AB360026EEBB /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 66FBE5762FDA4F0E00F515B4 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 661A0D322FE2AB340026EEBB;
remoteInfo = "hippo-watch-extensionExtension";
};
66569B6E2FE27D0400B7E33C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 66FBE5762FDA4F0E00F515B4 /* Project object */;
... ... @@ -43,6 +50,7 @@
dstPath = "";
dstSubfolderSpec = 13;
files = (
661A0D402FE2AB360026EEBB /* hippo-watch-extensionExtension.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
... ... @@ -56,9 +64,7 @@
4A9B7C112FDB0A1200F515B4 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
5CEEADFA95177019D949C8D0 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6291BE76A39C6E31BC18338B /* Pods-Runner Watch App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner Watch App.debug.xcconfig"; path = "Target Support Files/Pods-Runner Watch App/Pods-Runner Watch App.debug.xcconfig"; sourceTree = "<group>"; };
66FB19032FDBC80100F515B4 /* DFWatchFigmaTokens.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Runner Watch App/FigmaHome/DFWatchFigmaTokens.swift"; sourceTree = "<group>"; };
66FB19042FDBC80100F515B4 /* DFWatchFigmaHomeViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Runner Watch App/FigmaHome/DFWatchFigmaHomeViews.swift"; sourceTree = "<group>"; };
66FB19052FDBC80100F515B4 /* DFWatchFigmaDetailViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Runner Watch App/FigmaHome/DFWatchFigmaDetailViews.swift"; sourceTree = "<group>"; };
661A0D332FE2AB340026EEBB /* hippo-watch-extensionExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "hippo-watch-extensionExtension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
66FBE57E2FDA4F0E00F515B4 /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
66FBE58B2FDA4F0F00F515B4 /* Runner Watch App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Runner Watch App.app"; sourceTree = BUILT_PRODUCTS_DIR; };
66FBE5A72FDA518C00F515B4 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
... ... @@ -69,6 +75,27 @@
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
661A0D442FE2AB360026EEBB /* Exceptions for "hippo-watch-extension" folder in "hippo-watch-extensionExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 661A0D322FE2AB340026EEBB /* hippo-watch-extensionExtension */;
};
661A0D482FE2AC4E0026EEBB /* Exceptions for "Runner Watch App" folder in "hippo-watch-extensionExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
"Color+Extension.swift",
FigmaHome/DFCoupleStressHomeView.swift,
FigmaHome/DFSingleStressHomeView.swift,
FigmaHome/DFWatchCloseCircle.swift,
FigmaHome/DFWatchFigmaHomeViews.swift,
FigmaHome/DFWatchFigmaTokens.swift,
FigmaHome/DFWatchHeartBeatCircle.swift,
FigmaHome/DFWatchStepCountCircle.swift,
);
target = 661A0D322FE2AB340026EEBB /* hippo-watch-extensionExtension */;
};
66FB17B22FDB9E3200F515B4 /* Exceptions for "Runner" folder in "Runner Watch App" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
... ... @@ -86,6 +113,14 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
661A0D362FE2AB340026EEBB /* hippo-watch-extension */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
661A0D442FE2AB360026EEBB /* Exceptions for "hippo-watch-extension" folder in "hippo-watch-extensionExtension" target */,
);
path = "hippo-watch-extension";
sourceTree = "<group>";
};
66FBE5802FDA4F0E00F515B4 /* Runner */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
... ... @@ -98,6 +133,7 @@
66FBE58F2FDA4F0F00F515B4 /* Runner Watch App */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
661A0D482FE2AC4E0026EEBB /* Exceptions for "Runner Watch App" folder in "hippo-watch-extensionExtension" target */,
);
path = "Runner Watch App";
sourceTree = "<group>";
... ... @@ -105,6 +141,15 @@
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */
661A0D302FE2AB340026EEBB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
661A0D352FE2AB340026EEBB /* SwiftUI.framework in Frameworks */,
661A0D342FE2AB340026EEBB /* WidgetKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
66FBE57B2FDA4F0E00F515B4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
... ... @@ -133,24 +178,14 @@
path = Flutter;
sourceTree = "<group>";
};
66FB19072FDBC80100F515B4 /* FigmaHome Preview Sources */ = {
isa = PBXGroup;
children = (
66FB19052FDBC80100F515B4 /* DFWatchFigmaDetailViews.swift */,
66FB19042FDBC80100F515B4 /* DFWatchFigmaHomeViews.swift */,
66FB19032FDBC80100F515B4 /* DFWatchFigmaTokens.swift */,
);
name = "FigmaHome Preview Sources";
sourceTree = "<group>";
};
66FBE5752FDA4F0E00F515B4 = {
isa = PBXGroup;
children = (
66FBE5BF2FDA51A300F515B4 /* doublefeel-watch-app-extensionExtension.entitlements */,
66FB19072FDBC80100F515B4 /* FigmaHome Preview Sources */,
66FBE5802FDA4F0E00F515B4 /* Runner */,
66FBE58F2FDA4F0F00F515B4 /* Runner Watch App */,
4A9B7C122FDB0A1200F515B4 /* Flutter */,
661A0D362FE2AB340026EEBB /* hippo-watch-extension */,
66FBE5A62FDA518C00F515B4 /* Frameworks */,
66FBE57F2FDA4F0E00F515B4 /* Products */,
C9C45D06AF94828256154164 /* Pods */,
... ... @@ -162,6 +197,7 @@
children = (
66FBE57E2FDA4F0E00F515B4 /* Runner.app */,
66FBE58B2FDA4F0F00F515B4 /* Runner Watch App.app */,
661A0D332FE2AB340026EEBB /* hippo-watch-extensionExtension.appex */,
);
name = Products;
sourceTree = "<group>";
... ... @@ -191,6 +227,28 @@
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
661A0D322FE2AB340026EEBB /* hippo-watch-extensionExtension */ = {
isa = PBXNativeTarget;
buildConfigurationList = 661A0D412FE2AB360026EEBB /* Build configuration list for PBXNativeTarget "hippo-watch-extensionExtension" */;
buildPhases = (
661A0D2F2FE2AB340026EEBB /* Sources */,
661A0D302FE2AB340026EEBB /* Frameworks */,
661A0D312FE2AB340026EEBB /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
661A0D362FE2AB340026EEBB /* hippo-watch-extension */,
);
name = "hippo-watch-extensionExtension";
packageProductDependencies = (
);
productName = "hippo-watch-extensionExtension";
productReference = 661A0D332FE2AB340026EEBB /* hippo-watch-extensionExtension.appex */;
productType = "com.apple.product-type.app-extension";
};
66FBE57D2FDA4F0E00F515B4 /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 66FBE59C2FDA4F1000F515B4 /* Build configuration list for PBXNativeTarget "Runner" */;
... ... @@ -232,6 +290,7 @@
buildRules = (
);
dependencies = (
661A0D3F2FE2AB360026EEBB /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
66FBE58F2FDA4F0F00F515B4 /* Runner Watch App */,
... ... @@ -251,6 +310,9 @@
LastSwiftUpdateCheck = 2600;
LastUpgradeCheck = 1510;
TargetAttributes = {
661A0D322FE2AB340026EEBB = {
CreatedOnToolsVersion = 26.0.1;
};
66FBE57D2FDA4F0E00F515B4 = {
CreatedOnToolsVersion = 26.0.1;
};
... ... @@ -275,11 +337,19 @@
targets = (
66FBE57D2FDA4F0E00F515B4 /* Runner */,
66FBE58A2FDA4F0F00F515B4 /* Runner Watch App */,
661A0D322FE2AB340026EEBB /* hippo-watch-extensionExtension */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
661A0D312FE2AB340026EEBB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
66FBE57C2FDA4F0E00F515B4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
... ... @@ -305,10 +375,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner Watch App/Pods-Runner Watch App-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner Watch App/Pods-Runner Watch App-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner Watch App/Pods-Runner Watch App-frameworks.sh\"\n";
... ... @@ -322,10 +396,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
... ... @@ -418,10 +496,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
... ... @@ -430,6 +512,13 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
661A0D2F2FE2AB340026EEBB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
66FBE57A2FDA4F0E00F515B4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
... ... @@ -441,15 +530,17 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
66FB19022FDBC80100F515B4 /* DFWatchFigmaDetailViews.swift in Sources */,
66FB19012FDBC80100F515B4 /* DFWatchFigmaHomeViews.swift in Sources */,
66FB19002FDBC80100F515B4 /* DFWatchFigmaTokens.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
661A0D3F2FE2AB360026EEBB /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 661A0D322FE2AB340026EEBB /* hippo-watch-extensionExtension */;
targetProxy = 661A0D3E2FE2AB360026EEBB /* PBXContainerItemProxy */;
};
66569B6F2FE27D0400B7E33C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 66FBE58A2FDA4F0F00F515B4 /* Runner Watch App */;
... ... @@ -458,6 +549,75 @@
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
661A0D422FE2AB360026EEBB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = ZRPLMC329K;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "hippo-watch-extension/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "hippo-watch-extension";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.luiz.doublefeel.watchkitapp.hippo-watch-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 26.0;
};
name = Debug;
};
661A0D432FE2AB360026EEBB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = ZRPLMC329K;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "hippo-watch-extension/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "hippo-watch-extension";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.luiz.doublefeel.watchkitapp.hippo-watch-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
VALIDATE_PRODUCT = YES;
WATCHOS_DEPLOYMENT_TARGET = 26.0;
};
name = Release;
};
66FBE5962FDA4F1000F515B4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
... ... @@ -580,14 +740,16 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "Runner Watch App/Runner Watch App.entitlements";
CODE_SIGN_ENTITLEMENTS = "Runner Watch App/Runner Watch AppDebug.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = ZRPLMC329K;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Runner-Watch-App-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = DoubleFeel;
INFOPLIST_KEY_NSHealthShareUsageDescription = "需要访问健康数据以显示步数、hrv等信息";
INFOPLIST_KEY_NSHealthUpdateUsageDescription = "需要写入少量健康数据权限以保持与旧版 Apple Health 同步流程兼容。";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.luiz.doublefeel;
LD_RUNPATH_SEARCH_PATHS = (
... ... @@ -623,8 +785,10 @@
DEVELOPMENT_TEAM = ZRPLMC329K;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "Runner-Watch-App-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = DoubleFeel;
INFOPLIST_KEY_NSHealthShareUsageDescription = "需要访问健康数据以显示步数、hrv等信息";
INFOPLIST_KEY_NSHealthUpdateUsageDescription = "需要写入少量健康数据权限以保持与旧版 Apple Health 同步流程兼容。";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.luiz.doublefeel;
LD_RUNPATH_SEARCH_PATHS = (
... ... @@ -800,6 +964,15 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
661A0D412FE2AB360026EEBB /* Build configuration list for PBXNativeTarget "hippo-watch-extensionExtension" */ = {
isa = XCConfigurationList;
buildConfigurations = (
661A0D422FE2AB360026EEBB /* Debug */,
661A0D432FE2AB360026EEBB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
66FBE5792FDA4F0E00F515B4 /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
... ...
... ... @@ -32,7 +32,7 @@
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
... ...
... ... @@ -18,13 +18,16 @@ typealias FlutterBridgeMethod = ((_ params: Any?, _ result: FlutterResult) -> Vo
@Observable
class AppDelegate: NSObject, UIApplicationDelegate {
private(set) var enginInitError: String?
enum FlutterBridgeMethodName: String{
case verifyPayment
}
private var methods: [String: FlutterBridgeMethod] = [:]
let flutterEngine: FlutterEngine = FlutterEngine(name: "main_flutter_engine")
var flutterEngine: FlutterEngine?
var channel: FlutterMethodChannel?
private var isFlutterEngineReady = false
func application(
_ application: UIApplication,
... ... @@ -32,21 +35,36 @@ class AppDelegate: NSObject, UIApplicationDelegate {
) -> Bool {
AppShared.shared.agent.genUA()
AppShared.shared.payment.delegate = self
_ = AppShared.shared.payment.listenForTransactions()
UIApplication.shared.registerForRemoteNotifications()
UNUserNotificationCenter.current().setBadgeCount(0)
UNUserNotificationCenter.current().delegate = self
requestIDFAAuthorization()
WatchConnectivityService.shared.activate()
HealthKitService.shared.startBackgroundObserversIfNeeded()
return true
}
func warmUpFlutterEngineIfNeeded() {
guard !isFlutterEngineReady else {
enginInitError = nil
return
}
flutterEngine = FlutterEngine(name: "main_flutter_engine")
guard let flutterEngine else{
enginInitError = "engin 初始化失败"
return
}
isFlutterEngineReady = true
flutterEngine.run()
GeneratedPluginRegistrant.register(with: flutterEngine)
NativePigeonRegistrar.register(binaryMessenger: flutterEngine.binaryMessenger)
channel = FlutterMethodChannel(name: "doublefeel_flutter_main_channel", binaryMessenger: flutterEngine.binaryMessenger)
methods = defaultMethods()
WatchConnectivityService.shared.activate()
HealthKitService.shared.startBackgroundObserversIfNeeded()
return true
enginInitError = nil
}
func application(_ application: UIApplication,
... ...
... ... @@ -6,6 +6,7 @@
//
import SwiftUI
import UIKit
@main
struct RunnerApp: App {
... ... @@ -13,11 +14,96 @@ struct RunnerApp: App {
var body: some Scene {
WindowGroup {
FlutterRootView(engine:appDelegate.flutterEngine )
.ignoresSafeArea()
.onAppear {
_ = AppShared.shared.payment.listenForTransactions()
RunnerLaunchView(appDelegate: appDelegate)
}
}
}
private struct RunnerLaunchView: View {
let appDelegate: AppDelegate
@State private var showFlutter = false
@State private var didStart = false
var body: some View {
Group {
if showFlutter {
if let flutterEngine = appDelegate.flutterEngine{
FlutterRootView(engine: flutterEngine)
.ignoresSafeArea()
}else{
VStack{
Text("Engin init error: \(appDelegate.enginInitError ?? "-")")
Button {
appDelegate.warmUpFlutterEngineIfNeeded()
} label: {
Text("Engin 重载")
}
}
}
} else {
SplashView()
.onAppear(perform: startIfNeeded)
}
}
}
private func startIfNeeded() {
guard !didStart else {
return
}
didStart = true
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
appDelegate.warmUpFlutterEngineIfNeeded()
withAnimation(.easeInOut(duration: 0.2)) {
showFlutter = true
}
}
}
}
private struct SplashView: View {
var body: some View {
ZStack(alignment: .top) {
Color.white
.ignoresSafeArea()
AppLogoView()
.padding(.top, 96)
}
}
}
private struct AppLogoView: View {
var body: some View {
if let image = Bundle.main.appIconImage {
Image(uiImage: image)
.resizable()
.scaledToFit()
.frame(width: 96, height: 96)
.clipShape(RoundedRectangle(cornerRadius: 22, style: .continuous))
} else {
Text("DoubleFeel")
.font(.system(size: 28, weight: .semibold))
.foregroundStyle(.primary)
}
}
}
private extension Bundle {
var appIconImage: UIImage? {
if let image = UIImage(named: "AppIcon") {
return image
}
guard let icons = infoDictionary?["CFBundleIcons"] as? [String: Any],
let primaryIcon = icons["CFBundlePrimaryIcon"] as? [String: Any],
let iconFiles = primaryIcon["CFBundleIconFiles"] as? [String],
let iconName = iconFiles.last else {
return nil
}
return UIImage(named: iconName)
}
}
... ...
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
... ...
{
"images" : [
{
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
... ...
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
... ...
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
... ...
//
// DFCoupleMiniCard.swift
// hippo-watch-extension
//
import SwiftUI
struct DFCoupleMiniCard: View {
let name: String
let status: DFStressStatus
let value: String
var body: some View {
HStack(spacing: 5) {
DFStatusOrb(status: status, value: "")
.frame(width: 30, height: 30)
VStack(alignment: .leading, spacing: 1) {
Text(status.title)
.font(.system(size: 10, weight: .semibold))
.foregroundStyle(status.color)
.lineLimit(1)
.minimumScaleFactor(0.7)
Text(name)
.font(.system(size: 8, weight: .medium))
.foregroundStyle(.white)
.lineLimit(1)
Text(value)
.font(.system(size: 8, weight: .regular))
.foregroundStyle(.white.opacity(0.78))
}
}
.frame(maxWidth: .infinity, alignment: .leading)
}
}
... ...
//
// DFCoupleStressFaceView.swift
// hippo-watch-extension
//
import SwiftUI
struct DFCoupleStressFaceView: View {
let entry: DFWatchFaceEntry
var body: some View {
GeometryReader { proxy in
let scale = min(proxy.size.width / 172, proxy.size.height / 74)
VStack(spacing: 5 * scale) {
HStack {
Text(entry.data.hasData ? "我们的状态 · HRV" : "我们的状态 · 实时")
.font(.system(size: 10 * scale, weight: .medium))
.foregroundStyle(.white.opacity(0.68))
Spacer()
Text(entry.date, style: .time)
.font(.system(size: 10 * scale, weight: .medium))
.foregroundStyle(.white)
}
HStack(spacing: 6 * scale) {
DFCoupleMiniCard(
name: entry.data.partnerName,
status: entry.data.partnerStatus,
value: entry.data.hasData ? "\(entry.data.partnerHRV)ms" : "--"
)
DFCoupleMiniCard(
name: entry.data.myName,
status: entry.data.myStatus,
value: entry.data.hasData ? "\(entry.data.myHRV)ms" : "--"
)
}
}
.padding(.horizontal, 8)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
}
... ...
//
// DFCoupleStressWidget.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
struct DFCoupleStressWidget: Widget {
var body: some WidgetConfiguration {
StaticConfiguration(kind: DFWatchFaceKind.coupleStress.widgetKind, provider: DFWatchFaceProvider(face: .coupleStress)) { entry in
DFWatchFaceEntryView(entry: entry)
}
.configurationDisplayName(DFWatchFaceKind.coupleStress.displayName)
.description(DFWatchFaceKind.coupleStress.description)
.supportedFamilies([.accessoryRectangular, .accessoryCircular, .accessoryCorner, .accessoryInline])
}
}
... ...
//
// DFDefaultHomeFaceView.swift
// hippo-watch-extension
//
import SwiftUI
struct DFDefaultHomeFaceView: View {
let entry: DFWatchFaceEntry
var body: some View {
GeometryReader { proxy in
let scale = min(proxy.size.width / 172, proxy.size.height / 74)
HStack(spacing: 8 * scale) {
VStack(alignment: .leading, spacing: 2 * scale) {
HStack(spacing: 4 * scale) {
Text(entry.date, format: .dateTime.weekday(.abbreviated))
.foregroundStyle(DFWatchFaceColor.purple)
Text(entry.date, format: .dateTime.day())
.foregroundStyle(.white)
}
.font(.system(size: 11 * scale, weight: .semibold))
Text(entry.date, style: .time)
.font(.system(size: 25 * scale, weight: .medium, design: .rounded))
.foregroundStyle(.white)
.lineLimit(1)
.minimumScaleFactor(0.7)
DFSegmentBar(selected: entry.data.hasData ? entry.data.myStatus : nil)
.frame(height: 7 * scale)
}
VStack(alignment: .trailing, spacing: 5 * scale) {
HStack(spacing: 5 * scale) {
DFMiniMetric(value: entry.data.hasData ? "\(entry.data.heartRate)" : "0", icon: "heart.fill", tint: DFWatchFaceColor.red)
DFMiniMetric(value: "\(entry.data.closePercent)", icon: "sparkles", tint: DFWatchFaceColor.purple)
DFMiniMetric(value: entry.data.hasData ? shortSteps(entry.data.steps) : "0", icon: "shoeprints.fill", tint: DFWatchFaceColor.green)
}
Text(entry.data.hasData ? "\(entry.data.myStatus.title) · \(entry.data.hrvValue)ms" : "暂无数据 · --ms")
.font(.system(size: 10 * scale, weight: .semibold))
.foregroundStyle(entry.data.hasData ? entry.data.myStatus.color : DFWatchFaceColor.grayText)
.lineLimit(1)
.minimumScaleFactor(0.7)
Text(entry.data.hasData ? entry.data.hrvTime : "--:--")
.font(.system(size: 9 * scale, weight: .medium))
.foregroundStyle(.white.opacity(0.78))
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding(.horizontal, 6)
}
}
private func shortSteps(_ steps: Int) -> String {
steps >= 1000 ? "\(steps / 1000)k" : "\(steps)"
}
}
... ...
//
// DFDefaultHomeWidget.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
struct DFDefaultHomeWidget: Widget {
var body: some WidgetConfiguration {
StaticConfiguration(kind: DFWatchFaceKind.defaultHome.widgetKind, provider: DFWatchFaceProvider(face: .defaultHome)) { entry in
DFWatchFaceEntryView(entry: entry)
}
.configurationDisplayName(DFWatchFaceKind.defaultHome.displayName)
.description(DFWatchFaceKind.defaultHome.description)
.supportedFamilies([.accessoryRectangular, .accessoryCircular, .accessoryCorner, .accessoryInline])
}
}
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.widgetkit-extension</string>
</dict>
</dict>
</plist>
... ...
//
// DFMiniMetric.swift
// hippo-watch-extension
//
import SwiftUI
struct DFMiniMetric: View {
let value: String
let icon: String
let tint: Color
var body: some View {
VStack(spacing: 1) {
Image(systemName: icon)
.font(.system(size: 9, weight: .semibold))
Text(value)
.font(.system(size: 8, weight: .bold, design: .rounded))
.lineLimit(1)
.minimumScaleFactor(0.7)
}
.foregroundStyle(.white)
.frame(width: 24, height: 24)
.background(tint.opacity(0.26), in: Circle())
.overlay(Circle().stroke(tint, lineWidth: 1))
}
}
... ...
//
// DFSegmentBar.swift
// hippo-watch-extension
//
import SwiftUI
struct DFSegmentBar: View {
let selected: DFStressStatus?
private let kinds: [DFStressStatus] = [.overloaded, .little, .normal, .excellent]
var body: some View {
if selected == nil {
Capsule()
.fill(DFWatchFaceColor.grayBar)
} else {
GeometryReader { proxy in
HStack(spacing: 2) {
ForEach(kinds, id: \.rawValue) { kind in
Capsule()
.fill(kind.color)
.frame(width: segmentWidth(kind: kind, totalWidth: proxy.size.width))
.overlay {
if selected == kind {
Capsule()
.stroke(kind.color, lineWidth: 3)
.background(Capsule().fill(Color.black))
.frame(width: 10, height: 10)
}
}
}
}
}
}
}
private func segmentWidth(kind: DFStressStatus, totalWidth: CGFloat) -> CGFloat {
guard let selected else {
return totalWidth
}
let spacing: CGFloat = 6
let extra: CGFloat = totalWidth * 0.18
let base = (totalWidth - spacing - extra) / CGFloat(kinds.count)
return selected == kind ? base + extra : base
}
}
... ...
//
// DFStatusOrb.swift
// hippo-watch-extension
//
import SwiftUI
struct DFStatusOrb: View {
let status: DFStressStatus
let value: String
var body: some View {
ZStack {
Circle()
.fill(status.color.opacity(0.16))
Circle()
.stroke(status.color.opacity(0.34), lineWidth: 5)
Circle()
.trim(from: 0.12, to: 0.82)
.stroke(status.color, style: StrokeStyle(lineWidth: 5, lineCap: .round))
.rotationEffect(.degrees(110))
if value.isEmpty {
Image(systemName: "heart.text.square.fill")
.font(.system(size: 12, weight: .semibold))
.foregroundStyle(status.color)
} else {
VStack(spacing: -1) {
Text(value)
.font(.system(size: 14, weight: .bold, design: .rounded))
.foregroundStyle(.white)
Text("ms")
.font(.system(size: 7, weight: .medium))
.foregroundStyle(.white.opacity(0.74))
}
}
}
}
}
... ...
//
// DFWatchFaceEntry.swift
// hippo-watch-extension
//
import WidgetKit
struct DFWatchFaceEntry: TimelineEntry {
let date: Date
let face: DFWatchFaceKind
let data: DFWatchFaceData
}
... ...
//
// DFWatchFaceEntryView.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
struct DFWatchFaceEntryView: View {
@Environment(\.widgetFamily) private var family
let entry: DFWatchFaceEntry
var body: some View {
Group {
switch family {
case .accessoryInline:
inlineView
case .accessoryCircular, .accessoryCorner:
circularView
default:
rectangularView
}
}
.containerBackground(DFWatchFaceColor.background, for: .widget)
}
@ViewBuilder
private var rectangularView: some View {
switch entry.face {
case .defaultHome:
DFDefaultHomeFaceView(entry: entry)
case .singleStress:
DFSingleStressFaceView(entry: entry)
case .coupleStress:
DFCoupleStressFaceView(entry: entry)
}
}
private var circularView: some View {
let status = statusForCompactView
return ZStack {
DFWatchFaceColor.background
Circle()
.trim(from: 0.08, to: 0.86)
.stroke(status.color.opacity(0.28), style: StrokeStyle(lineWidth: 5, lineCap: .round))
.rotationEffect(.degrees(110))
Circle()
.trim(from: 0.08, to: compactProgress)
.stroke(status.color, style: StrokeStyle(lineWidth: 5, lineCap: .round))
.rotationEffect(.degrees(110))
VStack(spacing: 0) {
Image(systemName: compactIcon)
.font(.system(size: 13, weight: .semibold))
.foregroundStyle(status.color)
Text(compactValue)
.font(.system(size: 12, weight: .bold, design: .rounded))
.foregroundStyle(.white)
.minimumScaleFactor(0.7)
}
}
}
private var inlineView: some View {
Text("\(inlineTitle) \(compactValue)")
}
private var statusForCompactView: DFStressStatus {
switch entry.face {
case .defaultHome, .singleStress:
return entry.data.myStatus
case .coupleStress:
return entry.data.myStatus
}
}
private var compactIcon: String {
switch entry.face {
case .defaultHome:
return "waveform.path.ecg"
case .singleStress:
return "heart.text.square.fill"
case .coupleStress:
return "person.2.fill"
}
}
private var compactValue: String {
switch entry.face {
case .defaultHome, .singleStress:
return entry.data.hasData ? "\(entry.data.hrvValue)ms" : "--"
case .coupleStress:
return entry.data.hasData ? "\(entry.data.partnerHRV)/\(entry.data.myHRV)" : "--"
}
}
private var compactProgress: CGFloat {
switch entry.face {
case .defaultHome, .singleStress:
return 0.08 + min(CGFloat(entry.data.hrvValue) / 100, 0.78)
case .coupleStress:
return 0.08 + min(CGFloat(entry.data.myHRV) / 100, 0.78)
}
}
private var inlineTitle: String {
switch entry.face {
case .defaultHome:
return "HRV"
case .singleStress:
return entry.data.myStatus.title
case .coupleStress:
return "双人状态"
}
}
}
... ...
//
// DFWatchFaceMockService.swift
// hippo-watch-extension
//
enum DFWatchFaceMockService {
static func fetch(face: DFWatchFaceKind) async -> DFWatchFaceData {
// TODO: Replace this with the real watch face API request.
switch face {
case .defaultHome:
return .placeholder
case .singleStress:
var data = DFWatchFaceData.placeholder
data.myStatus = .overloaded
data.hrvValue = 38
data.hrvTime = "16:06"
return data
case .coupleStress:
var data = DFWatchFaceData.placeholder
data.myStatus = .excellent
data.partnerStatus = .overloaded
data.myHRV = 80
data.partnerHRV = 30
return data
}
}
}
... ...
//
// DFWatchFaceModels.swift
// hippo-watch-extension
//
import SwiftUI
enum DFWatchFaceKind: String, CaseIterable {
case defaultHome
case singleStress
case coupleStress
var widgetKind: String {
"hippo_watch_extension_\(rawValue)"
}
var displayName: String {
switch self {
case .defaultHome:
return "DoubleFeel 默认表盘"
case .singleStress:
return "DoubleFeel 单人压力"
case .coupleStress:
return "DoubleFeel 双人压力"
}
}
var description: String {
switch self {
case .defaultHome:
return "展示时间、HRV 状态和今日健康指标。"
case .singleStress:
return "展示个人实时压力状态。"
case .coupleStress:
return "展示你和另一半的压力状态。"
}
}
}
enum DFStressStatus: String {
case excellent
case normal
case little
case overloaded
var title: String {
switch self {
case .excellent:
return "状态优秀"
case .normal:
return "状态正常"
case .little:
return "注意压力"
case .overloaded:
return "压力过载"
}
}
var color: Color {
switch self {
case .excellent:
return DFWatchFaceColor.green
case .normal:
return DFWatchFaceColor.blue
case .little:
return DFWatchFaceColor.orange
case .overloaded:
return DFWatchFaceColor.red
}
}
}
struct DFWatchFaceData: Equatable {
var hasData: Bool
var hrvValue: Int
var hrvTime: String
var heartRate: Int
var steps: Int
var closePercent: Int
var myName: String
var partnerName: String
var myStatus: DFStressStatus
var partnerStatus: DFStressStatus
var myHRV: Int
var partnerHRV: Int
static let placeholder = DFWatchFaceData(
hasData: true,
hrvValue: 38,
hrvTime: "19:04",
heartRate: 79,
steps: 2486,
closePercent: 72,
myName: "我",
partnerName: "男朋友",
myStatus: .excellent,
partnerStatus: .overloaded,
myHRV: 80,
partnerHRV: 30
)
}
enum DFWatchFaceColor {
static let background = Color(hex: "0F0F11")
static let purple = Color(hex: "845EEE")
static let green = Color(hex: "3BD49D")
static let red = Color(hex: "FF5279")
static let orange = Color(hex: "FF9A6E")
static let blue = Color(hex: "7B9BFB")
static let grayText = Color(hex: "B0B0B6")
static let grayBar = Color(hex: "78787D")
}
... ...
//
// DFWatchFacePreviews.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
#Preview("默认表盘", as: .accessoryRectangular) {
DFDefaultHomeWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .defaultHome, data: .placeholder)
}
#Preview("单人压力表盘", as: .accessoryRectangular) {
DFSingleStressWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .singleStress, data: .placeholder)
}
#Preview("双人压力表盘", as: .accessoryRectangular) {
DFCoupleStressWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .coupleStress, data: .placeholder)
}
... ...
//
// DFWatchFaceProvider.swift
// hippo-watch-extension
//
import WidgetKit
struct DFWatchFaceProvider: TimelineProvider {
let face: DFWatchFaceKind
func placeholder(in context: Context) -> DFWatchFaceEntry {
DFWatchFaceEntry(date: .now, face: face, data: .placeholder)
}
func getSnapshot(in context: Context, completion: @escaping (DFWatchFaceEntry) -> Void) {
completion(DFWatchFaceEntry(date: .now, face: face, data: .placeholder))
}
func getTimeline(in context: Context, completion: @escaping (Timeline<DFWatchFaceEntry>) -> Void) {
Task {
let data = await DFWatchFaceMockService.fetch(face: face)
let entry = DFWatchFaceEntry(date: .now, face: face, data: data)
let nextRefresh = Calendar.current.date(byAdding: .minute, value: 15, to: .now) ?? .now.addingTimeInterval(900)
completion(Timeline(entries: [entry], policy: .after(nextRefresh)))
}
}
}
... ...
//
// DFSingleStressFaceView.swift
// hippo-watch-extension
//
import SwiftUI
struct DFSingleStressFaceView: View {
let entry: DFWatchFaceEntry
var body: some View {
GeometryReader { proxy in
let scale = min(proxy.size.width / 172, proxy.size.height / 74)
HStack(spacing: 10 * scale) {
DFStatusOrb(status: entry.data.myStatus, value: entry.data.hasData ? "\(entry.data.hrvValue)" : "--")
.frame(width: 54 * scale, height: 54 * scale)
VStack(alignment: .leading, spacing: 5 * scale) {
HStack {
Text("HRV")
.font(.system(size: 10 * scale, weight: .medium))
.foregroundStyle(.white.opacity(0.62))
Spacer()
Text(entry.date, style: .time)
.font(.system(size: 10 * scale, weight: .medium))
.foregroundStyle(.white)
}
Text(entry.data.hasData ? "\(entry.data.myStatus.title) · \(entry.data.hrvValue)ms" : "等待数据")
.font(.system(size: 14 * scale, weight: .semibold))
.foregroundStyle(entry.data.hasData ? entry.data.myStatus.color : DFWatchFaceColor.grayText)
.lineLimit(1)
.minimumScaleFactor(0.7)
DFSegmentBar(selected: entry.data.hasData ? entry.data.myStatus : nil)
.frame(height: 9 * scale)
Text(entry.data.hasData ? entry.data.hrvTime : "--:--")
.font(.system(size: 10 * scale, weight: .medium))
.foregroundStyle(.white.opacity(0.82))
}
}
.padding(.horizontal, 8)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(
LinearGradient(
colors: [entry.data.myStatus.color.opacity(0.28), .clear],
startPoint: .leading,
endPoint: .trailing
)
)
}
}
}
... ...
//
// DFSingleStressWidget.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
struct DFSingleStressWidget: Widget {
var body: some WidgetConfiguration {
StaticConfiguration(kind: DFWatchFaceKind.singleStress.widgetKind, provider: DFWatchFaceProvider(face: .singleStress)) { entry in
DFWatchFaceEntryView(entry: entry)
}
.configurationDisplayName(DFWatchFaceKind.singleStress.displayName)
.description(DFWatchFaceKind.singleStress.description)
.supportedFamilies([.accessoryRectangular, .accessoryCircular, .accessoryCorner, .accessoryInline])
}
}
... ...
//
// hippo_watch_extensionBundle.swift
// hippo-watch-extension
//
// Created by 权海 on 2026/6/17.
//
import WidgetKit
import SwiftUI
@main
struct hippo_watch_extensionBundle: WidgetBundle {
var body: some Widget {
DFDefaultHomeWidget()
DFSingleStressWidget()
DFCoupleStressWidget()
}
}
... ...
... ... @@ -62,8 +62,7 @@ import 'app_localizations_zh.dart';
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
final String localeName;
... ... @@ -71,8 +70,7 @@ abstract class AppLocalizations {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();
static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate();
/// A list of this localizations delegate along with the default localizations
/// delegates.
... ... @@ -84,8 +82,7 @@ abstract class AppLocalizations {
/// Additional delegates can be added by appending to this list in
/// MaterialApp. This list does not have to be used at all if a custom list
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
... ... @@ -528,8 +525,7 @@ abstract class AppLocalizations {
///
/// In zh, this message translates to:
/// **'你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。'**
String
get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired;
String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired;
/// No description provided for @bindPartnerTitle.
///
... ... @@ -1738,8 +1734,7 @@ abstract class AppLocalizations {
String get dailyActions;
}
class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();
@override
... ... @@ -1748,25 +1743,25 @@ class _AppLocalizationsDelegate
}
@override
bool isSupported(Locale locale) =>
<String>['en', 'zh'].contains(locale.languageCode);
bool isSupported(Locale locale) => <String>['en', 'zh'].contains(locale.languageCode);
@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
}
AppLocalizations lookupAppLocalizations(Locale locale) {
// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en':
return AppLocalizationsEn();
case 'zh':
return AppLocalizationsZh();
case 'en': return AppLocalizationsEn();
case 'zh': return AppLocalizationsZh();
}
throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.'
);
}
... ...
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
... ... @@ -69,12 +67,10 @@ class AppLocalizationsEn extends AppLocalizations {
String get settings => 'Settings';
@override
String get onboardingIntroTitle =>
'DoubleFeel is a health companion app built for Apple Watch';
String get onboardingIntroTitle => 'DoubleFeel is a health companion app built for Apple Watch';
@override
String get onboardingIntroBody =>
'We hope to help you\n<em>notice changes in your mind and body, and help the people who love you</em> see when you are <em>tired or need support</em>';
String get onboardingIntroBody => 'We hope to help you\n<em>notice changes in your mind and body, and help the people who love you</em> see when you are <em>tired or need support</em>';
@override
String get onboardingStateQuestion => 'Which of these often happens to you?';
... ... @@ -86,19 +82,16 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingStateTired => 'I get tired easily';
@override
String get onboardingStatePoorRest =>
'I wake up but still do not feel rested';
String get onboardingStatePoorRest => 'I wake up but still do not feel rested';
@override
String get onboardingStateNeedStimulants =>
'I rely on cigarettes, alcohol, coffee, or other stimulants to stay alert';
String get onboardingStateNeedStimulants => 'I rely on cigarettes, alcohol, coffee, or other stimulants to stay alert';
@override
String get onboardingStateNone => 'None of the above';
@override
String get onboardingStressGoalQuestion =>
'What do you want to learn by understanding stress?';
String get onboardingStressGoalQuestion => 'What do you want to learn by understanding stress?';
@override
String get onboardingStressGoalSource => 'Understand where stress comes from';
... ... @@ -107,8 +100,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingStressGoalReminder => 'Get reminded when stress appears';
@override
String get onboardingStressGoalLovedOnes =>
'Let people who care about me know my stress state';
String get onboardingStressGoalLovedOnes => 'Let people who care about me know my stress state';
@override
String get onboardingStressGoalRelax => 'Understand stress and feel lighter';
... ... @@ -117,8 +109,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingStressGoalBodyTalk => 'Communicate better with my body';
@override
String get onboardingReliefQuestion =>
'Which methods do you think can ease stress?';
String get onboardingReliefQuestion => 'Which methods do you think can ease stress?';
@override
String get onboardingReliefSleep => 'Regular sleep';
... ... @@ -142,8 +133,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingKeyDataTitle => 'Did you know?';
@override
String get onboardingKeyDataSubtitle =>
'Everyone has a magical and important body metric that can help us:';
String get onboardingKeyDataSubtitle => 'Everyone has a magical and important body metric that can help us:';
@override
String get onboardingKeyDataStress => 'Monitor stress';
... ... @@ -158,8 +148,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingKeyDataHabits => 'Build healthy habits';
@override
String get onboardingKeyDataLovedOnes =>
'Help important people care about your state in time';
String get onboardingKeyDataLovedOnes => 'Help important people care about your state in time';
@override
String get onboardingTellMeWhatItIs => 'Tell me what it is!';
... ... @@ -168,19 +157,16 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingHrvTitle => 'It is HRV, heart rate variability';
@override
String get onboardingHrvSubtitle =>
'It helps us measure overall stress and health';
String get onboardingHrvSubtitle => 'It helps us measure overall stress and health';
@override
String get onboardingHrvDescription =>
'Heart rate variability (HRV) is the tiny variation in time between heartbeats. It reflects autonomic nervous system activity and how the body responds to stress.';
String get onboardingHrvDescription => 'Heart rate variability (HRV) is the tiny variation in time between heartbeats. It reflects autonomic nervous system activity and how the body responds to stress.';
@override
String get onboardingTellMeMore => 'Tell me more';
@override
String get onboardingResearchTitle =>
'Many studies show that HRV changes are closely related to how our body and mind feel';
String get onboardingResearchTitle => 'Many studies show that HRV changes are closely related to how our body and mind feel';
@override
String get onboardingResearchFatigue => 'Physical fatigue';
... ... @@ -198,30 +184,25 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingHealthPermissionTitle => 'Allow health data access';
@override
String get onboardingHealthPermissionBody =>
'DoubleFeel needs connected wearable health data to send reminders, count stress moments, and provide suggestions.';
String get onboardingHealthPermissionBody => 'DoubleFeel needs connected wearable health data to send reminders, count stress moments, and provide suggestions.';
@override
String get onboardingHealthPermissionPrivacy =>
'Your health data is stored locally. We do not upload any related data.';
String get onboardingHealthPermissionPrivacy => 'Your health data is stored locally. We do not upload any related data.';
@override
String get onboardingNotificationTitle => 'Turn on notifications';
@override
String get onboardingNotificationSubtitle =>
'Learn about every body change in time';
String get onboardingNotificationSubtitle => 'Learn about every body change in time';
@override
String get onboardingNotificationBody =>
'After Apple Watch data updates, we can remind you in time and help you act to improve your stress state.';
String get onboardingNotificationBody => 'After Apple Watch data updates, we can remind you in time and help you act to improve your stress state.';
@override
String get onboardingMemberTitle => 'Get an annual membership offer';
@override
String get onboardingMemberBody =>
'Start your pressure alert and health companion journey, so love and care are always present.';
String get onboardingMemberBody => 'Start your pressure alert and health companion journey, so love and care are always present.';
@override
String get onboardingMemberOriginalPrice => 'Original ¥72.00/year';
... ... @@ -236,16 +217,13 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingMemberAllOptions => 'View all purchase options';
@override
String get healthCompanionIsNowAvailable =>
'Health Companion is now available';
String get healthCompanionIsNowAvailable => 'Health Companion is now available';
@override
String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired =>
'You can now view each other\'s HRV, stress levels, and sleep patterns, and reach out to check in when the other person seems tired.';
String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired => 'You can now view each other\'s HRV, stress levels, and sleep patterns, and reach out to check in when the other person seems tired.';
@override
String get bindPartnerTitle =>
'Add a Close Contact\nOne more person to care about your health';
String get bindPartnerTitle => 'Add a Close Contact\nOne more person to care about your health';
@override
String get bindPartnerMyId => 'My ID';
... ... @@ -284,8 +262,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get onboardingResearchGoodSleep => 'Good Sleep';
@override
String get loginSlogan =>
'Start your pressure alert and health companion journey\nso love and care are always present';
String get loginSlogan => 'Start your pressure alert and health companion journey\nso love and care are always present';
@override
String get loginWithPhone => 'Sign in with Phone';
... ... @@ -335,15 +312,13 @@ class AppLocalizationsEn extends AppLocalizations {
String get phoneLoginCodeHint => 'Enter verification code';
@override
String get phoneLoginAutoRegisterHint =>
'Unregistered numbers will be registered automatically';
String get phoneLoginAutoRegisterHint => 'Unregistered numbers will be registered automatically';
@override
String get phoneLoginLoggingIn => 'Signing in...';
@override
String get loginAgreeToTermsToast =>
'Please read and agree to the Terms of Service and Privacy Policy first';
String get loginAgreeToTermsToast => 'Please read and agree to the Terms of Service and Privacy Policy first';
@override
String get phoneLoginInvalidPhone => 'Invalid phone number';
... ... @@ -355,12 +330,10 @@ class AppLocalizationsEn extends AppLocalizations {
String get phoneLoginInvalidCode => 'Invalid verification code';
@override
String get todayHealthDataAuthTitle =>
'Unable to access heart rate health data';
String get todayHealthDataAuthTitle => 'Unable to access heart rate health data';
@override
String get todayHealthDataAuthDescription =>
'DoubleFeel needs permission to access your health data to provide stress reminders, real-time stress statistics, and health suggestions. Otherwise, some app features may not work properly. Your health data is stored locally only and will not be uploaded to any server.';
String get todayHealthDataAuthDescription => 'DoubleFeel needs permission to access your health data to provide stress reminders, real-time stress statistics, and health suggestions. Otherwise, some app features may not work properly. Your health data is stored locally only and will not be uploaded to any server.';
@override
String get todayHealthDataAuthAction => 'Authorize health data access';
... ... @@ -381,24 +354,19 @@ class AppLocalizationsEn extends AppLocalizations {
String get todayFaqLinkNoData => 'What if the app or watch face has no data?';
@override
String get todayFaqLinkHrvRealtimeUpdate =>
'How can HRV data update in real time?';
String get todayFaqLinkHrvRealtimeUpdate => 'How can HRV data update in real time?';
@override
String get todayFaqLinkWatchNoStatusNotification =>
'Why can\'t my watch receive status notifications?';
String get todayFaqLinkWatchNoStatusNotification => 'Why can\'t my watch receive status notifications?';
@override
String get todayFaqLinkWatchNoStatusAndInteractionNotification =>
'Why can\'t my watch receive status and interaction notifications?';
String get todayFaqLinkWatchNoStatusAndInteractionNotification => 'Why can\'t my watch receive status and interaction notifications?';
@override
String get todayFaqLinkWatchFaceDataDelay =>
'Why is watch face data delayed or not updating?';
String get todayFaqLinkWatchFaceDataDelay => 'Why is watch face data delayed or not updating?';
@override
String get todayFaqLinkWatchFaceBlackScreen =>
'Why does the watch face turn black?';
String get todayFaqLinkWatchFaceBlackScreen => 'Why does the watch face turn black?';
@override
String get todayStressStatusTitle => 'Overall stress status';
... ... @@ -425,176 +393,136 @@ class AppLocalizationsEn extends AppLocalizations {
String get todayStressStatusInsufficientData => 'Insufficient data';
@override
String get todayStressStatusOverloadDescription =>
'Your current HRV is much lower than your long-term average, which may indicate fatigue, high stress, or insufficient recovery. Rest is recommended.';
String get todayStressStatusOverloadDescription => 'Your current HRV is much lower than your long-term average, which may indicate fatigue, high stress, or insufficient recovery. Rest is recommended.';
@override
String get todayStressStatusCautionDescription =>
'Your current HRV is below the normal range, and your body may be accumulating stress. Pay attention to rest and recovery.';
String get todayStressStatusCautionDescription => 'Your current HRV is below the normal range, and your body may be accumulating stress. Pay attention to rest and recovery.';
@override
String get todayStressStatusNormalDescription =>
'Your current body state is within your normal fluctuation range.';
String get todayStressStatusNormalDescription => 'Your current body state is within your normal fluctuation range.';
@override
String get todayStressStatusExcellentDescription =>
'Your current HRV is higher than your recent average, indicating better recovery and overall state.';
String get todayStressStatusExcellentDescription => 'Your current HRV is higher than your recent average, indicating better recovery and overall state.';
@override
String get todayStressStatusInsufficientDataDescription =>
'There is not enough available data to accurately assess your stress state yet.';
String get todayStressStatusInsufficientDataDescription => 'There is not enough available data to accurately assess your stress state yet.';
@override
String get todayHrvMeasurementIntro =>
'Apple Watch measures HRV every 2-5 hours by default. If you want to measure it manually right now, follow these steps:';
String get todayHrvMeasurementIntro => 'Apple Watch measures HRV every 2-5 hours by default. If you want to measure it manually right now, follow these steps:';
@override
String get todayHrvMeasurementStep1 =>
'1. Wear your Apple Watch snugly, sit down, and stay calm';
String get todayHrvMeasurementStep1 => '1. Wear your Apple Watch snugly, sit down, and stay calm';
@override
String get todayHrvMeasurementStep2 =>
'2. Open Mindfulness on Apple Watch and start Breathe';
String get todayHrvMeasurementStep2 => '2. Open Mindfulness on Apple Watch and start Breathe';
@override
String get todayHrvMeasurementStep3 =>
'3. Keep breathing steadily and wait 1-3 minutes';
String get todayHrvMeasurementStep3 => '3. Keep breathing steadily and wait 1-3 minutes';
@override
String get todayHrvMeasurementStep4 =>
'4. After breathing is complete, lock and unlock your iPhone once';
String get todayHrvMeasurementStep4 => '4. After breathing is complete, lock and unlock your iPhone once';
@override
String get todayHrvMeasurementStep5 =>
'5. Wait about one minute. StressWatch will receive and display your data';
String get todayHrvMeasurementStep5 => '5. Wait about one minute. StressWatch will receive and display your data';
@override
String get todayHrvMeasurementHint =>
'Tip: Data comes from Apple Watch. After measurement, there may be delays or data may not sync immediately. If this happens, measure again and wait for the data to be read.';
String get todayHrvMeasurementHint => 'Tip: Data comes from Apple Watch. After measurement, there may be delays or data may not sync immediately. If this happens, measure again and wait for the data to be read.';
@override
String get todayHrvMeasurementWarning =>
'Note: Health permissions must be enabled, and Low Power Mode must be turned off.';
String get todayHrvMeasurementWarning => 'Note: Health permissions must be enabled, and Low Power Mode must be turned off.';
@override
String get todayStressStatusWhatTitle => 'What is overall stress status?';
@override
String get todayStressStatusWhatDescription1 =>
'DoubleFeel combines your HRV (heart rate variability), resting heart rate, and body-state changes from the past 30 days to assess your overall stress level.';
String get todayStressStatusWhatDescription1 => 'DoubleFeel combines your HRV (heart rate variability), resting heart rate, and body-state changes from the past 30 days to assess your overall stress level.';
@override
String get todayStressStatusWhatDescription2 =>
'Because HRV fluctuates with emotions, exercise, sleep, and fatigue, a single reading has limited value. We recommend focusing on your overall stress status across the day, which is more stable and useful. It helps you understand your body state and helps close contacts notice changes in time.';
String get todayStressStatusWhatDescription2 => 'Because HRV fluctuates with emotions, exercise, sleep, and fatigue, a single reading has limited value. We recommend focusing on your overall stress status across the day, which is more stable and useful. It helps you understand your body state and helps close contacts notice changes in time.';
@override
String get todayStressStatusWhyHrvTitle =>
'Why use HRV (heart rate variability)?';
String get todayStressStatusWhyHrvTitle => 'Why use HRV (heart rate variability)?';
@override
String get todayStressStatusWhyHrvDescription =>
'HRV is an important metric for measuring body stress and recovery capacity.';
String get todayStressStatusWhyHrvDescription => 'HRV is an important metric for measuring body stress and recovery capacity.';
@override
String get todayStressStatusUsually => 'In general:';
@override
String get todayStressStatusHrvHigher =>
'· Higher HRV usually means better recovery';
String get todayStressStatusHrvHigher => '· Higher HRV usually means better recovery';
@override
String get todayStressStatusHrvLower =>
'· Lower HRV may indicate fatigue, stress, or insufficient sleep';
String get todayStressStatusHrvLower => '· Lower HRV may indicate fatigue, stress, or insufficient sleep';
@override
String get todayStressStatusHrvChangesFast =>
'· HRV changes quickly, making it useful for short-term body-state changes.';
String get todayStressStatusHrvChangesFast => '· HRV changes quickly, making it useful for short-term body-state changes.';
@override
String get todayStressStatusAppWatchDifferenceTitle =>
'How are stress statuses on the phone app and Apple Watch different?';
String get todayStressStatusAppWatchDifferenceTitle => 'How are stress statuses on the phone app and Apple Watch different?';
@override
String get todayStressStatusAppWatchDifferenceApp =>
'The phone app home page shows the day\'s overall stress status, combining HRV, resting heart rate, and overall trends.';
String get todayStressStatusAppWatchDifferenceApp => 'The phone app home page shows the day\'s overall stress status, combining HRV, resting heart rate, and overall trends.';
@override
String get todayStressStatusAppWatchDifferenceWatch =>
'Apple Watch shows the most recent real-time stress status, which is better for quickly checking your current body changes.';
String get todayStressStatusAppWatchDifferenceWatch => 'Apple Watch shows the most recent real-time stress status, which is better for quickly checking your current body changes.';
@override
String get todayStressStatusWaitingDataTitle =>
'Why does Waiting for data appear?';
String get todayStressStatusWaitingDataTitle => 'Why does Waiting for data appear?';
@override
String get todayStressStatusWaitingDataDescription1 =>
'Waiting for data means the current amount of collected data is not enough to generate a reliable stress assessment.';
String get todayStressStatusWaitingDataDescription1 => 'Waiting for data means the current amount of collected data is not enough to generate a reliable stress assessment.';
@override
String get todayStressStatusWaitingDataDescription2 =>
'Please keep wearing your Apple Watch and wait for the system to collect data automatically.';
String get todayStressStatusWaitingDataDescription2 => 'Please keep wearing your Apple Watch and wait for the system to collect data automatically.';
@override
String get todayStressStatusWaitingDataReasonsIntro =>
'Possible reasons include:';
String get todayStressStatusWaitingDataReasonsIntro => 'Possible reasons include:';
@override
String get todayStressStatusWaitingDataReason1 => '1. Not enough HRV samples';
@override
String get todayStressStatusWaitingDataReason2 =>
'2. Missing resting heart rate data';
String get todayStressStatusWaitingDataReason2 => '2. Missing resting heart rate data';
@override
String get todayStressStatusWaitingDataReason3 =>
'3. Apple Watch has not been worn long enough';
String get todayStressStatusWaitingDataReason3 => '3. Apple Watch has not been worn long enough';
@override
String get todayStressStatusWaitingDataReason4 =>
'4. Apple Health permissions are not enabled';
String get todayStressStatusWaitingDataReason4 => '4. Apple Health permissions are not enabled';
@override
String get todayHrvPrincipleHowMeasureTitle =>
'How does DoubleFeel measure stress status?';
String get todayHrvPrincipleHowMeasureTitle => 'How does DoubleFeel measure stress status?';
@override
String get todayHrvPrincipleHowMeasureDescription1 =>
'When you wear Apple Watch normally, the system automatically collects your heart rate data and syncs it to Apple Health.';
String get todayHrvPrincipleHowMeasureDescription1 => 'When you wear Apple Watch normally, the system automatically collects your heart rate data and syncs it to Apple Health.';
@override
String get todayHrvPrincipleHowMeasureDescription2 =>
'DoubleFeel calculates HRV (heart rate variability) indicators based on this data to assess your body stress and recovery state.';
String get todayHrvPrincipleHowMeasureDescription2 => 'DoubleFeel calculates HRV (heart rate variability) indicators based on this data to assess your body stress and recovery state.';
@override
String get todayHrvPrincipleHowMeasureDescription3 =>
'HRV is sensitive to stress, fatigue, sleep, emotions, and recovery, so it helps us notice body-state changes earlier.';
String get todayHrvPrincipleHowMeasureDescription3 => 'HRV is sensitive to stress, fatigue, sleep, emotions, and recovery, so it helps us notice body-state changes earlier.';
@override
String get todayHrvPrincipleHowMeasureDescription4 =>
'To make results more accurate, DoubleFeel compares your current HRV state with your own 30-day average instead of comparing it directly with other people.';
String get todayHrvPrincipleHowMeasureDescription4 => 'To make results more accurate, DoubleFeel compares your current HRV state with your own 30-day average instead of comparing it directly with other people.';
@override
String get todayRealtimeStressWhatTitle => 'What is real-time stress?';
@override
String get todayRealtimeStressWhatDescription1 =>
'Real-time stress is a body stress indicator dynamically generated by DoubleFeel based on your current HRV, heart rate state, and changes in your personal history.';
String get todayRealtimeStressWhatDescription1 => 'Real-time stress is a body stress indicator dynamically generated by DoubleFeel based on your current HRV, heart rate state, and changes in your personal history.';
@override
String get todayRealtimeStressWhatDescription2 =>
'A higher stress value means your body state is deviating more from your usual baseline and may reflect fatigue, insufficient recovery, or high stress.';
String get todayRealtimeStressWhatDescription2 => 'A higher stress value means your body state is deviating more from your usual baseline and may reflect fatigue, insufficient recovery, or high stress.';
@override
String get todayRealtimeStressWhatDescription3 =>
'It helps you notice body changes faster and adjust rest, exercise, and daily rhythm in time.';
String get todayRealtimeStressWhatDescription3 => 'It helps you notice body changes faster and adjust rest, exercise, and daily rhythm in time.';
@override
String get todayRealtimeStressDivisionTitle =>
'How is real-time stress divided?';
String get todayRealtimeStressDivisionTitle => 'How is real-time stress divided?';
@override
String get todayRealtimeStressDivisionIntro =>
'Real-time stress is shown as a percentage:';
String get todayRealtimeStressDivisionIntro => 'Real-time stress is shown as a percentage:';
@override
String get todayRealtimeStressExcellentRange => 'Excellent: 1%-20%';
... ... @@ -609,103 +537,79 @@ class AppLocalizationsEn extends AppLocalizations {
String get todayRealtimeStressOverloadRange => 'Stress overload: 81%-100%';
@override
String get todayRealtimeStressExcellentDescription =>
'Your recovery state is good and you are generally relaxed.';
String get todayRealtimeStressExcellentDescription => 'Your recovery state is good and you are generally relaxed.';
@override
String get todayRealtimeStressNormalDescription =>
'Your body is within the normal fluctuation range.';
String get todayRealtimeStressNormalDescription => 'Your body is within the normal fluctuation range.';
@override
String get todayRealtimeStressCautionDescription =>
'Your body may be accumulating stress and needs proper rest and recovery.';
String get todayRealtimeStressCautionDescription => 'Your body may be accumulating stress and needs proper rest and recovery.';
@override
String get todayRealtimeStressOverloadDescription =>
'Your body stress is clearly high. Reduce load and pay attention to sleep and recovery.';
String get todayRealtimeStressOverloadDescription => 'Your body stress is clearly high. Reduce load and pay attention to sleep and recovery.';
@override
String get todayRealtimeStressDivisionBaseline =>
'These ranges are adjusted dynamically based on your personal baseline and should not be directly compared between users.';
String get todayRealtimeStressDivisionBaseline => 'These ranges are adjusted dynamically based on your personal baseline and should not be directly compared between users.';
@override
String get todayRealtimeStressDivisionAwake =>
'Real-time stress mainly reflects body stress changes while awake.';
String get todayRealtimeStressDivisionAwake => 'Real-time stress mainly reflects body stress changes while awake.';
@override
String get todayRealtimeStressLowBetterTitle =>
'Is lower real-time stress always better?';
String get todayRealtimeStressLowBetterTitle => 'Is lower real-time stress always better?';
@override
String get todayRealtimeStressLowBetterNo => 'Not necessarily.';
@override
String get todayRealtimeStressLowBetterType =>
'Body stress can be normal or abnormal.';
String get todayRealtimeStressLowBetterType => 'Body stress can be normal or abnormal.';
@override
String get todayRealtimeStressLowBetterExample =>
'For example, real-time stress rising briefly during or after exercise is a normal recovery response. It can also rise temporarily during focused work or emotional excitement, which are normal body adjustments.';
String get todayRealtimeStressLowBetterExample => 'For example, real-time stress rising briefly during or after exercise is a normal recovery response. It can also rise temporarily during focused work or emotional excitement, which are normal body adjustments.';
@override
String get todayRealtimeStressLowBetterHighStress =>
'But if stress remains high while resting, sitting for a long time, or after poor sleep, it may indicate physical fatigue, mental stress, insufficient sleep recovery, incomplete exercise recovery, too much caffeine, alcohol, stimulants, or possible discomfort.';
String get todayRealtimeStressLowBetterHighStress => 'But if stress remains high while resting, sitting for a long time, or after poor sleep, it may indicate physical fatigue, mental stress, insufficient sleep recovery, incomplete exercise recovery, too much caffeine, alcohol, stimulants, or possible discomfort.';
@override
String get todayRealtimeStressLowBetterTrend =>
'DoubleFeel focuses more on your long-term trend than on a single fluctuation.';
String get todayRealtimeStressLowBetterTrend => 'DoubleFeel focuses more on your long-term trend than on a single fluctuation.';
@override
String get todayRealtimeStressScenarioTitle =>
'When should HRV and real-time stress be used?';
String get todayRealtimeStressScenarioTitle => 'When should HRV and real-time stress be used?';
@override
String get todayRealtimeStressScenarioHrvDefault =>
'With Apple Watch default settings, HRV updates every 2-5 hours.';
String get todayRealtimeStressScenarioHrvDefault => 'With Apple Watch default settings, HRV updates every 2-5 hours.';
@override
String get todayRealtimeStressScenarioRegionLimit =>
'In some regions, Apple Watch breathing features may be limited, which can affect HRV update frequency. Turning on breathing features may also consume more battery.';
String get todayRealtimeStressScenarioRegionLimit => 'In some regions, Apple Watch breathing features may be limited, which can affect HRV update frequency. Turning on breathing features may also consume more battery.';
@override
String get todayRealtimeStressScenarioIntro =>
'To address the long interval between HRV updates, DoubleFeel designed real-time stress:';
String get todayRealtimeStressScenarioIntro => 'To address the long interval between HRV updates, DoubleFeel designed real-time stress:';
@override
String get todayRealtimeStressScenarioUpdateEvery6Min =>
'· Real-time stress updates every 6 minutes';
String get todayRealtimeStressScenarioUpdateEvery6Min => '· Real-time stress updates every 6 minutes';
@override
String get todayRealtimeStressScenarioTimely =>
'· It can reflect body-state changes more promptly';
String get todayRealtimeStressScenarioTimely => '· It can reflect body-state changes more promptly';
@override
String get todayRealtimeStressScenarioConsistentTrend =>
'· In most cases, the real-time stress trend is consistent with the HRV trend';
String get todayRealtimeStressScenarioConsistentTrend => '· In most cases, the real-time stress trend is consistent with the HRV trend';
@override
String get todayRealtimeStressScenarioSummary =>
'This lets users see long-term HRV trends while also using real-time stress as a short-term body-state reference.';
String get todayRealtimeStressScenarioSummary => 'This lets users see long-term HRV trends while also using real-time stress as a short-term body-state reference.';
@override
String get todayFaqNoDataTitle =>
'What if the app or watch face has no data?';
String get todayFaqNoDataTitle => 'What if the app or watch face has no data?';
@override
String get todayFaqNoDataDescription1 =>
'1. Confirm that Apple Watch is on watchOS 10.0 or above and iPhone is on iOS 14 or above. You can check system versions in About.';
String get todayFaqNoDataDescription1 => '1. Confirm that Apple Watch is on watchOS 10.0 or above and iPhone is on iOS 14 or above. You can check system versions in About.';
@override
String get todayFaqNoDataDescription2 =>
'2. Confirm all permissions are enabled: iPhone Health > Sharing > Apps > DoubleFeel > Turn On All Permissions.';
String get todayFaqNoDataDescription2 => '2. Confirm all permissions are enabled: iPhone Health > Sharing > Apps > DoubleFeel > Turn On All Permissions.';
@override
String get todayFaqNoDataDescription3 =>
'3. Confirm the device is not in Low Power Mode, low battery, or worn too loosely, as these can affect data collection.';
String get todayFaqNoDataDescription3 => '3. Confirm the device is not in Low Power Mode, low battery, or worn too loosely, as these can affect data collection.';
@override
String get todayFaqContactPrefix =>
'If everything above is correct, you can ';
String get todayFaqContactPrefix => 'If everything above is correct, you can ';
@override
String get todayFaqContactAction => 'contact us';
... ... @@ -714,90 +618,70 @@ class AppLocalizationsEn extends AppLocalizations {
String get todayFaqContactSuffix => '.';
@override
String get todayFaqWatchNoNotificationTitle =>
'Watch cannot receive status notifications?';
String get todayFaqWatchNoNotificationTitle => 'Watch cannot receive status notifications?';
@override
String get todayFaqWatchNoNotificationDescription1 =>
'Apple Watch and iPhone notifications have priority rules: when your iPhone is unlocked and the screen is on, notifications only appear on the phone and will not appear on the watch.';
String get todayFaqWatchNoNotificationDescription1 => 'Apple Watch and iPhone notifications have priority rules: when your iPhone is unlocked and the screen is on, notifications only appear on the phone and will not appear on the watch.';
@override
String get todayFaqWatchNoNotificationDescription2 =>
'If stress data displays and updates normally but your watch does not receive notifications, try the following:';
String get todayFaqWatchNoNotificationDescription2 => 'If stress data displays and updates normally but your watch does not receive notifications, try the following:';
@override
String get todayFaqWatchNoNotificationCheckPhoneNotification =>
'1. Check whether iPhone notifications are enabled (Settings > DoubleFeel > Notifications).';
String get todayFaqWatchNoNotificationCheckPhoneNotification => '1. Check whether iPhone notifications are enabled (Settings > DoubleFeel > Notifications).';
@override
String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh =>
'2. Check whether iPhone Background App Refresh is enabled (Settings > DoubleFeel > Background App Refresh).';
String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => '2. Check whether iPhone Background App Refresh is enabled (Settings > DoubleFeel > Background App Refresh).';
@override
String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh =>
'3. Check whether Apple Watch Background App Refresh is enabled (Settings > General > Background App Refresh, and make sure DoubleFeel is enabled).';
String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => '3. Check whether Apple Watch Background App Refresh is enabled (Settings > General > Background App Refresh, and make sure DoubleFeel is enabled).';
@override
String get todayFaqWatchNoNotificationCheckModes =>
'4. Make sure Low Power, Focus, Do Not Disturb, Theater, Sleep, and similar modes are off.';
String get todayFaqWatchNoNotificationCheckModes => '4. Make sure Low Power, Focus, Do Not Disturb, Theater, Sleep, and similar modes are off.';
@override
String get todayFaqWatchNoNotificationReinstall =>
'5. Reinstall DoubleFeel and restart Apple Watch and iPhone.';
String get todayFaqWatchNoNotificationReinstall => '5. Reinstall DoubleFeel and restart Apple Watch and iPhone.';
@override
String get todayFaqWatchFaceDelayTitle =>
'Watch face data not updating or delayed?';
String get todayFaqWatchFaceDelayTitle => 'Watch face data not updating or delayed?';
@override
String get todayFaqWatchFaceDelayDescription1 =>
'Due to Apple system limits, all watch faces, third-party or official, may have delays from a few minutes to half an hour. Developers cannot control the refresh frequency.';
String get todayFaqWatchFaceDelayDescription1 => 'Due to Apple system limits, all watch faces, third-party or official, may have delays from a few minutes to half an hour. Developers cannot control the refresh frequency.';
@override
String get todayFaqWatchFaceDelayIfOverOneHour =>
'If the phone data refreshes but the watch face still has not updated after more than 1 hour:';
String get todayFaqWatchFaceDelayIfOverOneHour => 'If the phone data refreshes but the watch face still has not updated after more than 1 hour:';
@override
String get todayFaqWatchFaceDelayOpenWatchApp =>
'Manually open DoubleFeel on Apple Watch and wait about 1 minute.';
String get todayFaqWatchFaceDelayOpenWatchApp => 'Manually open DoubleFeel on Apple Watch and wait about 1 minute.';
@override
String get todayFaqWatchFaceDelayIfStill => 'If it still does not update:';
@override
String get todayFaqWatchFaceDelayRestartApp =>
'Close the DoubleFeel background process and restart it.';
String get todayFaqWatchFaceDelayRestartApp => 'Close the DoubleFeel background process and restart it.';
@override
String get todayFaqWatchFaceDelayCheckIntro =>
'If it still does not work, check:';
String get todayFaqWatchFaceDelayCheckIntro => 'If it still does not work, check:';
@override
String get todayFaqWatchFaceDelayCheckData =>
'· Whether both phone and watch apps can show HRV data normally.';
String get todayFaqWatchFaceDelayCheckData => '· Whether both phone and watch apps can show HRV data normally.';
@override
String get todayFaqWatchFaceDelayCheckPhoneHealth =>
'· Make sure all permissions are enabled on iPhone: iOS Settings > Privacy & Security > Health > DoubleFeel.';
String get todayFaqWatchFaceDelayCheckPhoneHealth => '· Make sure all permissions are enabled on iPhone: iOS Settings > Privacy & Security > Health > DoubleFeel.';
@override
String get todayFaqWatchFaceDelayCheckWatchHealth =>
'· Make sure all permissions are enabled on Apple Watch: Settings > Health > Data Sources & Access > DoubleFeel.';
String get todayFaqWatchFaceDelayCheckWatchHealth => '· Make sure all permissions are enabled on Apple Watch: Settings > Health > Data Sources & Access > DoubleFeel.';
@override
String get todayFaqWatchFaceDelayCheckBackgroundRefresh =>
'· Confirm DoubleFeel is enabled in Apple Watch > Settings > General > Background App Refresh.';
String get todayFaqWatchFaceDelayCheckBackgroundRefresh => '· Confirm DoubleFeel is enabled in Apple Watch > Settings > General > Background App Refresh.';
@override
String get todayFaqWatchFaceDelayRestartWatch =>
'· If it still does not refresh automatically, restart Apple Watch. Long runtimes or high background usage may cause watch face updates to pause.';
String get todayFaqWatchFaceDelayRestartWatch => '· If it still does not refresh automatically, restart Apple Watch. Long runtimes or high background usage may cause watch face updates to pause.';
@override
String get todayFaqWatchFaceBlackScreenTitle => 'Watch face turns black?';
@override
String get todayFaqWatchFaceBlackScreenDescription =>
'If the custom interactive watch face turns black after being added and only shows time and date, long-press the watch face, tap Edit, swipe left to Complications, choose DoubleFeel, and add each component again as needed.';
String get todayFaqWatchFaceBlackScreenDescription => 'If the custom interactive watch face turns black after being added and only shows time and date, long-press the watch face, tap Edit, swipe left to Complications, choose DoubleFeel, and add each component again as needed.';
@override
String get today => 'Today';
... ... @@ -815,19 +699,16 @@ class AppLocalizationsEn extends AppLocalizations {
String get allPlans => 'All Plans';
@override
String get clickToAddTheHrvThemedWatchFace =>
'Click to add the HRV-themed watch face';
String get clickToAddTheHrvThemedWatchFace => 'Click to add the HRV-themed watch face';
@override
String get stayOnTopOfYourHealthFluctuations =>
'Stay on top of your health fluctuations';
String get stayOnTopOfYourHealthFluctuations => 'Stay on top of your health fluctuations';
@override
String get addACloseContact => 'Add a close contact';
@override
String get oneMorePersonLookingOutForYourHealth =>
'One more person looking out for your health';
String get oneMorePersonLookingOutForYourHealth => 'One more person looking out for your health';
@override
String get addAFriend => 'Add a friend';
... ... @@ -884,8 +765,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get questionsAndFeedback => 'Questions and Feedback';
@override
String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress =>
'If you would like us to reply, please provide your email address';
String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => 'If you would like us to reply, please provide your email address';
@override
String get uploadProof => 'Upload Proof';
... ... @@ -894,8 +774,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get frequentlyAskedQuestions => 'Frequently Asked Questions';
@override
String get areYouSureYouWantToDeleteYourAccount =>
'Are you sure you want to delete your account?';
String get areYouSureYouWantToDeleteYourAccount => 'Are you sure you want to delete your account?';
@override
String get accountSettings => 'Account Settings';
... ...
// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
... ... @@ -72,8 +70,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get onboardingIntroTitle => 'DoubleFeel 是专为 Apple Watch 打造的健康陪伴app';
@override
String get onboardingIntroBody =>
'我们希望可以帮助你\n<em>关注自己的身心变化,也让爱你的人</em>及时发现你的<em>疲惫与需要</em>';
String get onboardingIntroBody => '我们希望可以帮助你\n<em>关注自己的身心变化,也让爱你的人</em>及时发现你的<em>疲惫与需要</em>';
@override
String get onboardingStateQuestion => '请问以下哪些描述,经常发生在你身上?';
... ... @@ -163,8 +160,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get onboardingHrvSubtitle => '它能帮助我们衡量整体的压力和健康状态';
@override
String get onboardingHrvDescription =>
'心率变异性(HRV, Heart Rate Variability)即心跳之间间隔时间的微小变化,反映了自主神经系统活动和身体对压力的反应能力';
String get onboardingHrvDescription => '心率变异性(HRV, Heart Rate Variability)即心跳之间间隔时间的微小变化,反映了自主神经系统活动和身体对压力的反应能力';
@override
String get onboardingTellMeMore => '展开说说';
... ... @@ -188,12 +184,10 @@ class AppLocalizationsZh extends AppLocalizations {
String get onboardingHealthPermissionTitle => '开启健康授权提醒、统计你的压力';
@override
String get onboardingHealthPermissionBody =>
'DoubleFeel需要连接健康穿戴设备数据,以提醒、统计压力时刻、提供建议。';
String get onboardingHealthPermissionBody => 'DoubleFeel需要连接健康穿戴设备数据,以提醒、统计压力时刻、提供建议。';
@override
String get onboardingHealthPermissionPrivacy =>
'请放心,你的健康数据仅储存在本地,我们不上传任何相关数据。';
String get onboardingHealthPermissionPrivacy => '请放心,你的健康数据仅储存在本地,我们不上传任何相关数据。';
@override
String get onboardingNotificationTitle => '开启通知';
... ... @@ -202,8 +196,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get onboardingNotificationSubtitle => '及时了解身体每一次异动';
@override
String get onboardingNotificationBody =>
'AppleWatch数据更新后会及时提醒你,帮助你及时行动,改善压力状态';
String get onboardingNotificationBody => 'AppleWatch数据更新后会及时提醒你,帮助你及时行动,改善压力状态';
@override
String get onboardingMemberTitle => '获得年度会员优惠';
... ... @@ -227,9 +220,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get healthCompanionIsNowAvailable => '健康陪伴已开启';
@override
String
get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired =>
'你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。';
String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired => '你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。';
@override
String get bindPartnerTitle => '添加亲密联系人\n多一个人关注你的健康';
... ... @@ -342,8 +333,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayHealthDataAuthTitle => '无法获取心率健康数据';
@override
String get todayHealthDataAuthDescription =>
'DoubleFeel 需要授权访问你的健康数据,才能提供压力提醒、实时压力统计和健康建议;否则应用功能可能无法正常使用。请放心,你的健康数据仅存储在本地,不会上传到任何服务器。';
String get todayHealthDataAuthDescription => 'DoubleFeel 需要授权访问你的健康数据,才能提供压力提醒、实时压力统计和健康建议;否则应用功能可能无法正常使用。请放心,你的健康数据仅存储在本地,不会上传到任何服务器。';
@override
String get todayHealthDataAuthAction => '授权访问健康数据';
... ... @@ -370,8 +360,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayFaqLinkWatchNoStatusNotification => '手表为什么无法收到状态通知?';
@override
String get todayFaqLinkWatchNoStatusAndInteractionNotification =>
'手表为什么无法收到状态和互动通知?';
String get todayFaqLinkWatchNoStatusAndInteractionNotification => '手表为什么无法收到状态和互动通知?';
@override
String get todayFaqLinkWatchFaceDataDelay => '手表表盘数据不更新或者有延迟?';
... ... @@ -404,27 +393,22 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayStressStatusInsufficientData => '数据不足';
@override
String get todayStressStatusOverloadDescription =>
'当前 HRV 明显低于你的长期平均水平,可能意味着身体疲劳、压力过高或恢复不足。建议及时休息。';
String get todayStressStatusOverloadDescription => '当前 HRV 明显低于你的长期平均水平,可能意味着身体疲劳、压力过高或恢复不足。建议及时休息。';
@override
String get todayStressStatusCautionDescription =>
'当前 HRV 低于正常范围,身体可能正在积累压力,需要注意作息与恢复。';
String get todayStressStatusCautionDescription => '当前 HRV 低于正常范围,身体可能正在积累压力,需要注意作息与恢复。';
@override
String get todayStressStatusNormalDescription => '当前身体状态处于你的正常波动范围内。';
@override
String get todayStressStatusExcellentDescription =>
'当前 HRV 高于近期平均水平,代表身体恢复与整体状态较好。';
String get todayStressStatusExcellentDescription => '当前 HRV 高于近期平均水平,代表身体恢复与整体状态较好。';
@override
String get todayStressStatusInsufficientDataDescription =>
'当前可用数据不足,暂时无法准确判断压力状态。';
String get todayStressStatusInsufficientDataDescription => '当前可用数据不足,暂时无法准确判断压力状态。';
@override
String get todayHrvMeasurementIntro =>
'AppleWatch默认每2-5小时测量一次HRV,如果你希望立即手动进行测量,可以参考以下方法:';
String get todayHrvMeasurementIntro => 'AppleWatch默认每2-5小时测量一次HRV,如果你希望立即手动进行测量,可以参考以下方法:';
@override
String get todayHrvMeasurementStep1 => '1、戴紧AppleWatch,坐下来,保持心境平和';
... ... @@ -442,8 +426,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayHrvMeasurementStep5 => '5、等待一分钟左右,StressWatch会收到你的数据并展示';
@override
String get todayHrvMeasurementHint =>
'提示:数据源来自AppleWatch,在测量之后可能存在延迟或是数据未能同步的情况。如若出现上述情况,请重新测量并等待数据读取。';
String get todayHrvMeasurementHint => '提示:数据源来自AppleWatch,在测量之后可能存在延迟或是数据未能同步的情况。如若出现上述情况,请重新测量并等待数据读取。';
@override
String get todayHrvMeasurementWarning => '注意:需打开健康里的权限,同时关闭省电模式。';
... ... @@ -452,12 +435,10 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayStressStatusWhatTitle => '什么是综合压力状态?';
@override
String get todayStressStatusWhatDescription1 =>
'DoubleFeel 会结合你过去 30 天的 HRV(心率变异性)、静息心率以及当天的身体状态变化,综合评估你的整体压力水平。';
String get todayStressStatusWhatDescription1 => 'DoubleFeel 会结合你过去 30 天的 HRV(心率变异性)、静息心率以及当天的身体状态变化,综合评估你的整体压力水平。';
@override
String get todayStressStatusWhatDescription2 =>
'由于 HRV 会随着情绪、运动、睡眠和疲劳不断波动,单次数据参考意义有限,因此我们更建议关注一整天的综合压力状态,让结果更稳定、更有参考价值。综合压力不仅能帮助你了解自己的身体状态,也能让亲密联系人更及时地关注你的变化。';
String get todayStressStatusWhatDescription2 => '由于 HRV 会随着情绪、运动、睡眠和疲劳不断波动,单次数据参考意义有限,因此我们更建议关注一整天的综合压力状态,让结果更稳定、更有参考价值。综合压力不仅能帮助你了解自己的身体状态,也能让亲密联系人更及时地关注你的变化。';
@override
String get todayStressStatusWhyHrvTitle => '为什么要参考 HRV(心率变异性)?';
... ... @@ -478,27 +459,22 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayStressStatusHrvChangesFast => '· HRV 变化较快,更适合观察短时间内的身体状态变化。';
@override
String get todayStressStatusAppWatchDifferenceTitle =>
'手机 App 与 Apple Watch 显示的压力状态有什么区别?';
String get todayStressStatusAppWatchDifferenceTitle => '手机 App 与 Apple Watch 显示的压力状态有什么区别?';
@override
String get todayStressStatusAppWatchDifferenceApp =>
'手机 App 首页显示的是当天的综合压力状态,会综合分析 HRV、静息心率与整体趋势。';
String get todayStressStatusAppWatchDifferenceApp => '手机 App 首页显示的是当天的综合压力状态,会综合分析 HRV、静息心率与整体趋势。';
@override
String get todayStressStatusAppWatchDifferenceWatch =>
'Apple Watch 显示的是最近一次的实时压力状态,更适合快速查看当前身体变化。';
String get todayStressStatusAppWatchDifferenceWatch => 'Apple Watch 显示的是最近一次的实时压力状态,更适合快速查看当前身体变化。';
@override
String get todayStressStatusWaitingDataTitle => '为什么会出现“等待数据”?';
@override
String get todayStressStatusWaitingDataDescription1 =>
'“等待数据”代表当前采集到的数据量不足,暂时无法生成可靠的压力评估。';
String get todayStressStatusWaitingDataDescription1 => '“等待数据”代表当前采集到的数据量不足,暂时无法生成可靠的压力评估。';
@override
String get todayStressStatusWaitingDataDescription2 =>
'请继续佩戴 Apple Watch,等待系统自动采集数据。';
String get todayStressStatusWaitingDataDescription2 => '请继续佩戴 Apple Watch,等待系统自动采集数据。';
@override
String get todayStressStatusWaitingDataReasonsIntro => '可能原因包括:';
... ... @@ -519,35 +495,28 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayHrvPrincipleHowMeasureTitle => 'DoubleFeel 如何测量压力状态?';
@override
String get todayHrvPrincipleHowMeasureDescription1 =>
'当你正常佩戴 Apple Watch 时,系统会自动采集你的心率数据,并同步至 Apple Health。';
String get todayHrvPrincipleHowMeasureDescription1 => '当你正常佩戴 Apple Watch 时,系统会自动采集你的心率数据,并同步至 Apple Health。';
@override
String get todayHrvPrincipleHowMeasureDescription2 =>
'DoubleFeel 会基于这些数据计算 HRV(心率变异性)相关指标,用于评估你的身体压力与恢复状态。';
String get todayHrvPrincipleHowMeasureDescription2 => 'DoubleFeel 会基于这些数据计算 HRV(心率变异性)相关指标,用于评估你的身体压力与恢复状态。';
@override
String get todayHrvPrincipleHowMeasureDescription3 =>
'HRV 对压力、疲劳、睡眠、情绪与身体恢复都非常敏感,因此它能够帮助我们更早发现身体状态变化。';
String get todayHrvPrincipleHowMeasureDescription3 => 'HRV 对压力、疲劳、睡眠、情绪与身体恢复都非常敏感,因此它能够帮助我们更早发现身体状态变化。';
@override
String get todayHrvPrincipleHowMeasureDescription4 =>
'为了让结果更准确,DoubleFeel 会将你当前的 HRV 状态与过去 30 天的个人平均水平进行对比,而不是直接与其他人比较。';
String get todayHrvPrincipleHowMeasureDescription4 => '为了让结果更准确,DoubleFeel 会将你当前的 HRV 状态与过去 30 天的个人平均水平进行对比,而不是直接与其他人比较。';
@override
String get todayRealtimeStressWhatTitle => '什么是实时压力?';
@override
String get todayRealtimeStressWhatDescription1 =>
'实时压力是 DoubleFeel 根据你当前的 HRV、心率状态与个人历史数据变化,动态生成的身体压力指标。';
String get todayRealtimeStressWhatDescription1 => '实时压力是 DoubleFeel 根据你当前的 HRV、心率状态与个人历史数据变化,动态生成的身体压力指标。';
@override
String get todayRealtimeStressWhatDescription2 =>
'压力值越高,代表你的身体状态相比平时偏离越明显,可能正处于疲劳、恢复不足或高压力状态。';
String get todayRealtimeStressWhatDescription2 => '压力值越高,代表你的身体状态相比平时偏离越明显,可能正处于疲劳、恢复不足或高压力状态。';
@override
String get todayRealtimeStressWhatDescription3 =>
'它能够帮助你更快发现身体变化,并及时调整休息、运动与生活节奏。';
String get todayRealtimeStressWhatDescription3 => '它能够帮助你更快发现身体变化,并及时调整休息、运动与生活节奏。';
@override
String get todayRealtimeStressDivisionTitle => '实时压力如何划分?';
... ... @@ -577,12 +546,10 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayRealtimeStressCautionDescription => '身体可能正在积累压力,需要适当休息与恢复。';
@override
String get todayRealtimeStressOverloadDescription =>
'身体压力明显偏高,建议减少负荷、注意睡眠与恢复。';
String get todayRealtimeStressOverloadDescription => '身体压力明显偏高,建议减少负荷、注意睡眠与恢复。';
@override
String get todayRealtimeStressDivisionBaseline =>
'以上区间会结合你的个人基线动态调整,不同用户之间并不直接比较。';
String get todayRealtimeStressDivisionBaseline => '以上区间会结合你的个人基线动态调整,不同用户之间并不直接比较。';
@override
String get todayRealtimeStressDivisionAwake => '此外,实时压力主要反映清醒状态下的身体压力变化。';
... ... @@ -597,31 +564,25 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayRealtimeStressLowBetterType => '身体压力分为“正常压力”与“异常压力”。';
@override
String get todayRealtimeStressLowBetterExample =>
'例如:运动期间或运动后,实时压力短时间升高属于正常恢复反应;工作专注、情绪兴奋时,压力也可能暂时升高,这些都属于正常的身体调节。';
String get todayRealtimeStressLowBetterExample => '例如:运动期间或运动后,实时压力短时间升高属于正常恢复反应;工作专注、情绪兴奋时,压力也可能暂时升高,这些都属于正常的身体调节。';
@override
String get todayRealtimeStressLowBetterHighStress =>
'但如果在静息、久坐或睡眠不足的情况下,压力长期偏高,则可能意味着身体疲劳、心理压力较大、睡眠恢复不足、运动恢复不充分、摄入过多咖啡因、酒精或刺激物、身体可能处于不适状态。';
String get todayRealtimeStressLowBetterHighStress => '但如果在静息、久坐或睡眠不足的情况下,压力长期偏高,则可能意味着身体疲劳、心理压力较大、睡眠恢复不足、运动恢复不充分、摄入过多咖啡因、酒精或刺激物、身体可能处于不适状态。';
@override
String get todayRealtimeStressLowBetterTrend =>
'DoubleFeel 更关注的是你的长期变化趋势,而不是单次波动。';
String get todayRealtimeStressLowBetterTrend => 'DoubleFeel 更关注的是你的长期变化趋势,而不是单次波动。';
@override
String get todayRealtimeStressScenarioTitle => 'HRV 与实时压力适用场景?';
@override
String get todayRealtimeStressScenarioHrvDefault =>
'在 Apple Watch 的默认设置下,HRV 每 2~5 小时更新一次。';
String get todayRealtimeStressScenarioHrvDefault => '在 Apple Watch 的默认设置下,HRV 每 2~5 小时更新一次。';
@override
String get todayRealtimeStressScenarioRegionLimit =>
'在部分地区,由于 Apple Watch 的呼吸功能受限,HRV 的更新频率可能会受到影响,并且开启呼吸功能后也会消耗更多电量。';
String get todayRealtimeStressScenarioRegionLimit => '在部分地区,由于 Apple Watch 的呼吸功能受限,HRV 的更新频率可能会受到影响,并且开启呼吸功能后也会消耗更多电量。';
@override
String get todayRealtimeStressScenarioIntro =>
'为了解决 HRV 更新间隔较长的问题,DoubleFeel 设计了实时压力功能:';
String get todayRealtimeStressScenarioIntro => '为了解决 HRV 更新间隔较长的问题,DoubleFeel 设计了实时压力功能:';
@override
String get todayRealtimeStressScenarioUpdateEvery6Min => '· 实时压力每 6 分钟更新一次';
... ... @@ -630,27 +591,22 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayRealtimeStressScenarioTimely => '· 可以更及时地反映身体状态变化';
@override
String get todayRealtimeStressScenarioConsistentTrend =>
'· 在大多数情况下,实时压力趋势与 HRV 趋势是一致的';
String get todayRealtimeStressScenarioConsistentTrend => '· 在大多数情况下,实时压力趋势与 HRV 趋势是一致的';
@override
String get todayRealtimeStressScenarioSummary =>
'这样用户既能获得 HRV 的长期趋势,也能通过实时压力获得短时身体状态的参考。';
String get todayRealtimeStressScenarioSummary => '这样用户既能获得 HRV 的长期趋势,也能通过实时压力获得短时身体状态的参考。';
@override
String get todayFaqNoDataTitle => 'APP或表盘有没有数据怎么办?';
@override
String get todayFaqNoDataDescription1 =>
'1. 确认苹果手表系统在10.0以上,手机系统在14以上,系统版本可在「关于本机」内查看。';
String get todayFaqNoDataDescription1 => '1. 确认苹果手表系统在10.0以上,手机系统在14以上,系统版本可在「关于本机」内查看。';
@override
String get todayFaqNoDataDescription2 =>
'2. 确认是否开启所有权限:手机「健康」-「共享」-「app」-「DoubleFeel」-「打开所有权限」。';
String get todayFaqNoDataDescription2 => '2. 确认是否开启所有权限:手机「健康」-「共享」-「app」-「DoubleFeel」-「打开所有权限」。';
@override
String get todayFaqNoDataDescription3 =>
'3. 确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。';
String get todayFaqNoDataDescription3 => '3. 确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。';
@override
String get todayFaqContactPrefix => '如以上均检查无问题,可以';
... ... @@ -665,46 +621,37 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayFaqWatchNoNotificationTitle => '手表无法收到状态通知?';
@override
String get todayFaqWatchNoNotificationDescription1 =>
'苹果手表和手机的通知展示有优先级:当手机已解锁并亮屏时,通知只会在手机端展示,不会在手表上出现。';
String get todayFaqWatchNoNotificationDescription1 => '苹果手表和手机的通知展示有优先级:当手机已解锁并亮屏时,通知只会在手机端展示,不会在手表上出现。';
@override
String get todayFaqWatchNoNotificationDescription2 =>
'若压力数据可正常显示和自动更新,但手表未收到通知,可尝试以下操作:';
String get todayFaqWatchNoNotificationDescription2 => '若压力数据可正常显示和自动更新,但手表未收到通知,可尝试以下操作:';
@override
String get todayFaqWatchNoNotificationCheckPhoneNotification =>
'1. 检查手机是否打开通知(设置-DoubleFeel-通知)。';
String get todayFaqWatchNoNotificationCheckPhoneNotification => '1. 检查手机是否打开通知(设置-DoubleFeel-通知)。';
@override
String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh =>
'2. 检查手机是否打开后台App刷新(设置-DoubleFeel-后台App刷新)。';
String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => '2. 检查手机是否打开后台App刷新(设置-DoubleFeel-后台App刷新)。';
@override
String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh =>
'3. 检查手表是否打开后台App刷新(设置-通用-后台App刷新,并确保DoubleFeel开启)。';
String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => '3. 检查手表是否打开后台App刷新(设置-通用-后台App刷新,并确保DoubleFeel开启)。';
@override
String get todayFaqWatchNoNotificationCheckModes =>
'4. 确保未处于低电量/专注/勿扰/剧院/睡眠等模式。';
String get todayFaqWatchNoNotificationCheckModes => '4. 确保未处于低电量/专注/勿扰/剧院/睡眠等模式。';
@override
String get todayFaqWatchNoNotificationReinstall =>
'5. 重装DoubleFeel 并重启AppleWatch与iPhone。';
String get todayFaqWatchNoNotificationReinstall => '5. 重装DoubleFeel 并重启AppleWatch与iPhone。';
@override
String get todayFaqWatchFaceDelayTitle => '手表表盘数据不更新或有延迟?';
@override
String get todayFaqWatchFaceDelayDescription1 =>
'由于苹果系统限制,所有手表表盘(第三方或官方)都会存在几分钟至半小时的延迟,开发者无法控制刷新频率。';
String get todayFaqWatchFaceDelayDescription1 => '由于苹果系统限制,所有手表表盘(第三方或官方)都会存在几分钟至半小时的延迟,开发者无法控制刷新频率。';
@override
String get todayFaqWatchFaceDelayIfOverOneHour => '若手机数据刷新后超过1小时表盘仍未更新:';
@override
String get todayFaqWatchFaceDelayOpenWatchApp =>
'请在手表上手动打开DoubleFeel,等待约1分钟。';
String get todayFaqWatchFaceDelayOpenWatchApp => '请在手表上手动打开DoubleFeel,等待约1分钟。';
@override
String get todayFaqWatchFaceDelayIfStill => '若仍未更新:';
... ... @@ -719,27 +666,22 @@ class AppLocalizationsZh extends AppLocalizations {
String get todayFaqWatchFaceDelayCheckData => '· 手机和手表app是否可正常看到HRV数据。';
@override
String get todayFaqWatchFaceDelayCheckPhoneHealth =>
'· 确保手机端「iOS设置-隐私与安全性-健康-DoubleFeel」全部授权。';
String get todayFaqWatchFaceDelayCheckPhoneHealth => '· 确保手机端「iOS设置-隐私与安全性-健康-DoubleFeel」全部授权。';
@override
String get todayFaqWatchFaceDelayCheckWatchHealth =>
'· 确保手表端「设置-健康-数据来源、App和服务-DoubleFeel」全部授权。';
String get todayFaqWatchFaceDelayCheckWatchHealth => '· 确保手表端「设置-健康-数据来源、App和服务-DoubleFeel」全部授权。';
@override
String get todayFaqWatchFaceDelayCheckBackgroundRefresh =>
'· 确认AppleWatch-设置-通用-后台App刷新中DoubleFeel已开启。';
String get todayFaqWatchFaceDelayCheckBackgroundRefresh => '· 确认AppleWatch-设置-通用-后台App刷新中DoubleFeel已开启。';
@override
String get todayFaqWatchFaceDelayRestartWatch =>
'· 若仍未自动刷新,请重启手表。长时间运行或后台占用过高可能导致表盘暂停更新。';
String get todayFaqWatchFaceDelayRestartWatch => '· 若仍未自动刷新,请重启手表。长时间运行或后台占用过高可能导致表盘暂停更新。';
@override
String get todayFaqWatchFaceBlackScreenTitle => '手表表盘出现黑屏?';
@override
String get todayFaqWatchFaceBlackScreenDescription =>
'若添加专属互动表盘后出现黑屏(仅显示时间和日期),可长按表盘,点击「编辑」,左滑至「复杂功能」,选择 DoubleFeel,然后按需选择各组件重新添加。';
String get todayFaqWatchFaceBlackScreenDescription => '若添加专属互动表盘后出现黑屏(仅显示时间和日期),可长按表盘,点击「编辑」,左滑至「复杂功能」,选择 DoubleFeel,然后按需选择各组件重新添加。';
@override
String get today => '今天';
... ... @@ -823,8 +765,7 @@ class AppLocalizationsZh extends AppLocalizations {
String get questionsAndFeedback => '问题和反馈';
@override
String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress =>
'如果需要我们回复,请填写联系邮箱';
String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => '如果需要我们回复,请填写联系邮箱';
@override
String get uploadProof => '上传凭证';
... ...
... ... @@ -133,10 +133,10 @@ packages:
dependency: transitive
description:
name: characters
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "1.3.0"
checked_yaml:
dependency: transitive
description:
... ... @@ -149,10 +149,10 @@ packages:
dependency: transitive
description:
name: clock
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
source: hosted
version: "1.1.2"
version: "1.1.1"
code_builder:
dependency: transitive
description:
... ... @@ -165,10 +165,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
url: "https://pub.dev"
source: hosted
version: "1.19.1"
version: "1.19.0"
convert:
dependency: transitive
description:
... ... @@ -237,10 +237,10 @@ packages:
dependency: transitive
description:
name: fake_async
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
source: hosted
version: "1.3.3"
version: "1.3.1"
ffi:
dependency: transitive
description:
... ... @@ -426,7 +426,7 @@ packages:
dependency: transitive
description:
path: image_cropper_for_web
ref: "65c2c99891882ea59732959a672f3d5993a837bb"
ref: "br_v9.1.0_ohos"
resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb"
url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git"
source: git
... ... @@ -435,7 +435,7 @@ packages:
dependency: transitive
description:
path: image_cropper_platform_interface
ref: "65c2c99891882ea59732959a672f3d5993a837bb"
ref: "br_v9.1.0_ohos"
resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb"
url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git"
source: git
... ... @@ -517,10 +517,10 @@ packages:
dependency: "direct main"
description:
name: intl
sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
url: "https://pub.dev"
source: hosted
version: "0.20.2"
version: "0.19.0"
io:
dependency: transitive
description:
... ... @@ -549,26 +549,26 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
url: "https://pub.dev"
source: hosted
version: "11.0.2"
version: "10.0.7"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
url: "https://pub.dev"
source: hosted
version: "3.0.10"
version: "3.0.8"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
version: "3.0.1"
lints:
dependency: transitive
description:
... ... @@ -597,10 +597,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.17"
version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
... ... @@ -613,10 +613,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
version: "1.17.0"
version: "1.15.0"
mime:
dependency: transitive
description:
... ... @@ -645,10 +645,10 @@ packages:
dependency: transitive
description:
name: path
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.9.0"
path_provider:
dependency: transitive
description:
... ... @@ -966,18 +966,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
url: "https://pub.dev"
source: hosted
version: "1.12.1"
version: "1.12.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.4"
version: "2.1.2"
stream_transform:
dependency: transitive
description:
... ... @@ -1006,10 +1006,10 @@ packages:
dependency: "direct main"
description:
name: table_calendar
sha256: "0c0c6219878b363a2d5f40c7afb159d845f253d061dc3c822aa0d5fe0f721982"
sha256: b2896b7c86adf3a4d9c911d860120fe3dbe03c85db43b22fd61f14ee78cdbb63
url: "https://pub.dev"
source: hosted
version: "3.2.0"
version: "3.1.3"
term_glyph:
dependency: transitive
description:
... ... @@ -1022,10 +1022,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
url: "https://pub.dev"
source: hosted
version: "0.7.7"
version: "0.7.3"
timing:
dependency: transitive
description:
... ... @@ -1054,10 +1054,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.1.4"
vm_service:
dependency: transitive
description:
... ... @@ -1111,8 +1111,8 @@ packages:
dependency: transitive
description:
path: "packages/webview_flutter/webview_flutter_android"
ref: de942e79c9057b32ad31106508bd87c0d60aef83
resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83
ref: "br_webview_flutter-v4.13.0_ohos"
resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
source: git
version: "4.7.0"
... ... @@ -1120,8 +1120,8 @@ packages:
dependency: transitive
description:
path: "packages/webview_flutter/webview_flutter_ohos"
ref: de942e79c9057b32ad31106508bd87c0d60aef83
resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83
ref: "br_webview_flutter-v4.13.0_ohos"
resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
source: git
version: "4.7.0"
... ... @@ -1129,8 +1129,8 @@ packages:
dependency: transitive
description:
path: "packages/webview_flutter/webview_flutter_platform_interface"
ref: de942e79c9057b32ad31106508bd87c0d60aef83
resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83
ref: "br_webview_flutter-v4.13.0_ohos"
resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
source: git
version: "2.13.1"
... ... @@ -1138,8 +1138,8 @@ packages:
dependency: transitive
description:
path: "packages/webview_flutter/webview_flutter_wkwebview"
ref: de942e79c9057b32ad31106508bd87c0d60aef83
resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83
ref: "br_webview_flutter-v4.13.0_ohos"
resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
source: git
version: "3.22.0"
... ... @@ -1160,5 +1160,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.8.0-0 <4.0.0"
dart: ">=3.6.2 <4.0.0"
flutter: ">=3.27.0"
... ...