Commit e1d8b4de6ee42f721d4423c16e6683bd11bce8a3
1 parent
76128ab2
feat(ui):补充原生侧的user-agent和apple sign in
Showing
17 changed files
with
778 additions
and
463 deletions
| @@ -35,6 +35,36 @@ private object PlatformApiPigeonUtils { | @@ -35,6 +35,36 @@ private object PlatformApiPigeonUtils { | ||
| 35 | ) | 35 | ) |
| 36 | } | 36 | } |
| 37 | } | 37 | } |
| 38 | + fun deepEquals(a: Any?, b: Any?): Boolean { | ||
| 39 | + if (a is ByteArray && b is ByteArray) { | ||
| 40 | + return a.contentEquals(b) | ||
| 41 | + } | ||
| 42 | + if (a is IntArray && b is IntArray) { | ||
| 43 | + return a.contentEquals(b) | ||
| 44 | + } | ||
| 45 | + if (a is LongArray && b is LongArray) { | ||
| 46 | + return a.contentEquals(b) | ||
| 47 | + } | ||
| 48 | + if (a is DoubleArray && b is DoubleArray) { | ||
| 49 | + return a.contentEquals(b) | ||
| 50 | + } | ||
| 51 | + if (a is Array<*> && b is Array<*>) { | ||
| 52 | + return a.size == b.size && | ||
| 53 | + a.indices.all{ deepEquals(a[it], b[it]) } | ||
| 54 | + } | ||
| 55 | + if (a is List<*> && b is List<*>) { | ||
| 56 | + return a.size == b.size && | ||
| 57 | + a.indices.all{ deepEquals(a[it], b[it]) } | ||
| 58 | + } | ||
| 59 | + if (a is Map<*, *> && b is Map<*, *>) { | ||
| 60 | + return a.size == b.size && a.all { | ||
| 61 | + (b as Map<Any?, Any?>).containsKey(it.key) && | ||
| 62 | + deepEquals(it.value, b[it.key]) | ||
| 63 | + } | ||
| 64 | + } | ||
| 65 | + return a == b | ||
| 66 | + } | ||
| 67 | + | ||
| 38 | } | 68 | } |
| 39 | 69 | ||
| 40 | /** | 70 | /** |
| @@ -48,15 +78,66 @@ class FlutterError ( | @@ -48,15 +78,66 @@ class FlutterError ( | ||
| 48 | override val message: String? = null, | 78 | override val message: String? = null, |
| 49 | val details: Any? = null | 79 | val details: Any? = null |
| 50 | ) : Throwable() | 80 | ) : Throwable() |
| 81 | + | ||
| 82 | +/** Generated class from Pigeon that represents data sent in messages. */ | ||
| 83 | +data class AppleSignInModel ( | ||
| 84 | + val userId: String, | ||
| 85 | + val email: String? = null, | ||
| 86 | + val nickname: String? = null, | ||
| 87 | + val identityToken: String? = null | ||
| 88 | +) | ||
| 89 | + { | ||
| 90 | + companion object { | ||
| 91 | + fun fromList(pigeonVar_list: List<Any?>): AppleSignInModel { | ||
| 92 | + val userId = pigeonVar_list[0] as String | ||
| 93 | + val email = pigeonVar_list[1] as String? | ||
| 94 | + val nickname = pigeonVar_list[2] as String? | ||
| 95 | + val identityToken = pigeonVar_list[3] as String? | ||
| 96 | + return AppleSignInModel(userId, email, nickname, identityToken) | ||
| 97 | + } | ||
| 98 | + } | ||
| 99 | + fun toList(): List<Any?> { | ||
| 100 | + return listOf( | ||
| 101 | + userId, | ||
| 102 | + email, | ||
| 103 | + nickname, | ||
| 104 | + identityToken, | ||
| 105 | + ) | ||
| 106 | + } | ||
| 107 | + override fun equals(other: Any?): Boolean { | ||
| 108 | + if (other !is AppleSignInModel) { | ||
| 109 | + return false | ||
| 110 | + } | ||
| 111 | + if (this === other) { | ||
| 112 | + return true | ||
| 113 | + } | ||
| 114 | + return PlatformApiPigeonUtils.deepEquals(toList(), other.toList()) } | ||
| 115 | + | ||
| 116 | + override fun hashCode(): Int = toList().hashCode() | ||
| 117 | +} | ||
| 51 | private open class PlatformApiPigeonCodec : StandardMessageCodec() { | 118 | private open class PlatformApiPigeonCodec : StandardMessageCodec() { |
| 52 | override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { | 119 | override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { |
| 53 | - return super.readValueOfType(type, buffer) | 120 | + return when (type) { |
| 121 | + 129.toByte() -> { | ||
| 122 | + return (readValue(buffer) as? List<Any?>)?.let { | ||
| 123 | + AppleSignInModel.fromList(it) | ||
| 124 | + } | ||
| 125 | + } | ||
| 126 | + else -> super.readValueOfType(type, buffer) | ||
| 127 | + } | ||
| 54 | } | 128 | } |
| 55 | override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { | 129 | override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { |
| 56 | - super.writeValue(stream, value) | 130 | + when (value) { |
| 131 | + is AppleSignInModel -> { | ||
| 132 | + stream.write(129) | ||
| 133 | + writeValue(stream, value.toList()) | ||
| 134 | + } | ||
| 135 | + else -> super.writeValue(stream, value) | ||
| 136 | + } | ||
| 57 | } | 137 | } |
| 58 | } | 138 | } |
| 59 | 139 | ||
| 140 | + | ||
| 60 | /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ | 141 | /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ |
| 61 | interface PlatformHostApi { | 142 | interface PlatformHostApi { |
| 62 | /** | 143 | /** |
| @@ -64,6 +145,7 @@ interface PlatformHostApi { | @@ -64,6 +145,7 @@ interface PlatformHostApi { | ||
| 64 | * `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` | 145 | * `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` |
| 65 | */ | 146 | */ |
| 66 | fun getFullUserAgent(): String | 147 | fun getFullUserAgent(): String |
| 148 | + fun requestAppleSignIn(callback: (Result<AppleSignInModel?>) -> Unit) | ||
| 67 | 149 | ||
| 68 | companion object { | 150 | companion object { |
| 69 | /** The codec used by PlatformHostApi. */ | 151 | /** The codec used by PlatformHostApi. */ |
| @@ -89,6 +171,24 @@ interface PlatformHostApi { | @@ -89,6 +171,24 @@ interface PlatformHostApi { | ||
| 89 | channel.setMessageHandler(null) | 171 | channel.setMessageHandler(null) |
| 90 | } | 172 | } |
| 91 | } | 173 | } |
| 174 | + run { | ||
| 175 | + val channel = BasicMessageChannel<Any?>(binaryMessenger, "dev.flutter.pigeon.doublefeel_flutter.PlatformHostApi.requestAppleSignIn$separatedMessageChannelSuffix", codec) | ||
| 176 | + if (api != null) { | ||
| 177 | + channel.setMessageHandler { _, reply -> | ||
| 178 | + api.requestAppleSignIn{ result: Result<AppleSignInModel?> -> | ||
| 179 | + val error = result.exceptionOrNull() | ||
| 180 | + if (error != null) { | ||
| 181 | + reply.reply(PlatformApiPigeonUtils.wrapError(error)) | ||
| 182 | + } else { | ||
| 183 | + val data = result.getOrNull() | ||
| 184 | + reply.reply(PlatformApiPigeonUtils.wrapResult(data)) | ||
| 185 | + } | ||
| 186 | + } | ||
| 187 | + } | ||
| 188 | + } else { | ||
| 189 | + channel.setMessageHandler(null) | ||
| 190 | + } | ||
| 191 | + } | ||
| 92 | } | 192 | } |
| 93 | } | 193 | } |
| 94 | } | 194 | } |
| @@ -31,6 +31,7 @@ target 'Runner' do | @@ -31,6 +31,7 @@ target 'Runner' do | ||
| 31 | 31 | ||
| 32 | pod 'SDWebImage' | 32 | pod 'SDWebImage' |
| 33 | pod 'ThinkingSDK' | 33 | pod 'ThinkingSDK' |
| 34 | + pod 'DeviceGuru' | ||
| 34 | 35 | ||
| 35 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | 36 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) |
| 36 | 37 |
| 1 | PODS: | 1 | PODS: |
| 2 | + - DeviceGuru (10.0.11): | ||
| 3 | + - DeviceGuru/DeviceGuru (= 10.0.11) | ||
| 4 | + - DeviceGuru/DeviceGuru (10.0.11): | ||
| 5 | + - DeviceGuru/Resources | ||
| 6 | + - DeviceGuru/Resources (10.0.11) | ||
| 2 | - Flutter (1.0.0) | 7 | - Flutter (1.0.0) |
| 3 | - fluttertoast (0.0.2): | 8 | - fluttertoast (0.0.2): |
| 4 | - Flutter | 9 | - Flutter |
| @@ -48,6 +53,7 @@ PODS: | @@ -48,6 +53,7 @@ PODS: | ||
| 48 | - FlutterMacOS | 53 | - FlutterMacOS |
| 49 | 54 | ||
| 50 | DEPENDENCIES: | 55 | DEPENDENCIES: |
| 56 | + - DeviceGuru | ||
| 51 | - Flutter (from `Flutter`) | 57 | - Flutter (from `Flutter`) |
| 52 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) | 58 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) |
| 53 | - image_cropper (from `.symlinks/plugins/image_cropper/ios`) | 59 | - image_cropper (from `.symlinks/plugins/image_cropper/ios`) |
| @@ -64,6 +70,7 @@ DEPENDENCIES: | @@ -64,6 +70,7 @@ DEPENDENCIES: | ||
| 64 | 70 | ||
| 65 | SPEC REPOS: | 71 | SPEC REPOS: |
| 66 | trunk: | 72 | trunk: |
| 73 | + - DeviceGuru | ||
| 67 | - SDWebImage | 74 | - SDWebImage |
| 68 | - SDWebImageSwiftUI | 75 | - SDWebImageSwiftUI |
| 69 | - ThinkingDataAnalyticsExtension | 76 | - ThinkingDataAnalyticsExtension |
| @@ -92,7 +99,8 @@ EXTERNAL SOURCES: | @@ -92,7 +99,8 @@ EXTERNAL SOURCES: | ||
| 92 | :path: ".symlinks/plugins/webview_flutter_wkwebview/darwin" | 99 | :path: ".symlinks/plugins/webview_flutter_wkwebview/darwin" |
| 93 | 100 | ||
| 94 | SPEC CHECKSUMS: | 101 | SPEC CHECKSUMS: |
| 95 | - Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 | 102 | + DeviceGuru: f0f2bd81953d82777689f22025bca418e0c51d64 |
| 103 | + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 | ||
| 96 | fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1 | 104 | fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1 |
| 97 | image_cropper: c4326ea50132b1e1564499e5d32a84f01fb03537 | 105 | image_cropper: c4326ea50132b1e1564499e5d32a84f01fb03537 |
| 98 | image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a | 106 | image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a |
| @@ -108,6 +116,6 @@ SPEC CHECKSUMS: | @@ -108,6 +116,6 @@ SPEC CHECKSUMS: | ||
| 108 | TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654 | 116 | TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654 |
| 109 | webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2 | 117 | webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2 |
| 110 | 118 | ||
| 111 | -PODFILE CHECKSUM: c331311b0ccb42e8d5cf37701560080ce4a73ef8 | 119 | +PODFILE CHECKSUM: 2fe1ab1ea8359a411d88196bffe408db7cb1c02a |
| 112 | 120 | ||
| 113 | COCOAPODS: 1.16.2 | 121 | COCOAPODS: 1.16.2 |
| @@ -21,6 +21,7 @@ class AppDelegate: NSObject, UIApplicationDelegate { | @@ -21,6 +21,7 @@ class AppDelegate: NSObject, UIApplicationDelegate { | ||
| 21 | _ application: UIApplication, | 21 | _ application: UIApplication, |
| 22 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | 22 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? |
| 23 | ) -> Bool { | 23 | ) -> Bool { |
| 24 | + UserAgent.share.genUA() | ||
| 24 | 25 | ||
| 25 | UIApplication.shared.registerForRemoteNotifications() | 26 | UIApplication.shared.registerForRemoteNotifications() |
| 26 | UNUserNotificationCenter.current().setBadgeCount(0) | 27 | UNUserNotificationCenter.current().setBadgeCount(0) |
ios/Runner/AppleSignInCoordinator.swift
0 → 100644
| 1 | +// | ||
| 2 | +// AppleSignInCoordinator.swift | ||
| 3 | +// Runner | ||
| 4 | +// | ||
| 5 | +// Created by 权海 on 2026/6/15. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +import Foundation | ||
| 9 | +import AuthenticationServices | ||
| 10 | + | ||
| 11 | +enum PlatformHostApiError: LocalizedError { | ||
| 12 | + case deallocated | ||
| 13 | + case invalidAppleCredential | ||
| 14 | + case missingPresentationAnchor | ||
| 15 | + | ||
| 16 | + var errorDescription: String? { | ||
| 17 | + switch self { | ||
| 18 | + case .deallocated: | ||
| 19 | + return "PlatformHostApiImpl was released before Apple sign-in started." | ||
| 20 | + case .invalidAppleCredential: | ||
| 21 | + return "Apple sign-in did not return an Apple ID credential." | ||
| 22 | + case .missingPresentationAnchor: | ||
| 23 | + return "Unable to find a window for Apple sign-in presentation." | ||
| 24 | + } | ||
| 25 | + } | ||
| 26 | +} | ||
| 27 | + | ||
| 28 | +final class AppleSignInCoordinator: NSObject, ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding { | ||
| 29 | + private let presentationAnchor: ASPresentationAnchor | ||
| 30 | + private let completion: (Result<AppleSignInModel?, Error>) -> Void | ||
| 31 | + | ||
| 32 | + static func currentPresentationAnchor() -> ASPresentationAnchor? { | ||
| 33 | + if let keyWindow = UIApplication.shared.connectedScenes | ||
| 34 | + .compactMap({ $0 as? UIWindowScene }) | ||
| 35 | + .flatMap(\.windows) | ||
| 36 | + .first(where: \.isKeyWindow) { | ||
| 37 | + return keyWindow | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + return nil | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + init(presentationAnchor: ASPresentationAnchor, completion: @escaping (Result<AppleSignInModel?, Error>) -> Void) { | ||
| 44 | + self.presentationAnchor = presentationAnchor | ||
| 45 | + self.completion = completion | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { | ||
| 49 | + guard let credential = authorization.credential as? ASAuthorizationAppleIDCredential else { | ||
| 50 | + completion(.failure(PlatformHostApiError.invalidAppleCredential)) | ||
| 51 | + return | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + let nickname = credential.fullName.flatMap { | ||
| 55 | + let fullName = PersonNameComponentsFormatter.localizedString(from: $0, style: .medium) | ||
| 56 | + return fullName.isEmpty ? nil : fullName | ||
| 57 | + } | ||
| 58 | + let identityToken = credential.identityToken.flatMap { String(data: $0, encoding: .utf8) } | ||
| 59 | + | ||
| 60 | + completion(.success(AppleSignInModel( | ||
| 61 | + userId: credential.user, | ||
| 62 | + email: credential.email, | ||
| 63 | + nickname: nickname, | ||
| 64 | + identityToken: identityToken | ||
| 65 | + ))) | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { | ||
| 69 | + let nsError = error as NSError | ||
| 70 | + if nsError.domain == ASAuthorizationError.errorDomain, | ||
| 71 | + ASAuthorizationError.Code(rawValue: nsError.code) == .canceled { | ||
| 72 | + completion(.success(nil)) | ||
| 73 | + return | ||
| 74 | + } | ||
| 75 | + completion(.failure(error)) | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor { | ||
| 79 | + presentationAnchor | ||
| 80 | + } | ||
| 81 | +} |
| @@ -48,11 +48,127 @@ private func nilOrValue<T>(_ value: Any?) -> T? { | @@ -48,11 +48,127 @@ private func nilOrValue<T>(_ value: Any?) -> T? { | ||
| 48 | return value as! T? | 48 | return value as! T? |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | +func deepEqualsPlatformApi(_ lhs: Any?, _ rhs: Any?) -> Bool { | ||
| 52 | + let cleanLhs = nilOrValue(lhs) as Any? | ||
| 53 | + let cleanRhs = nilOrValue(rhs) as Any? | ||
| 54 | + switch (cleanLhs, cleanRhs) { | ||
| 55 | + case (nil, nil): | ||
| 56 | + return true | ||
| 57 | + | ||
| 58 | + case (nil, _), (_, nil): | ||
| 59 | + return false | ||
| 60 | + | ||
| 61 | + case is (Void, Void): | ||
| 62 | + return true | ||
| 63 | + | ||
| 64 | + case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): | ||
| 65 | + return cleanLhsHashable == cleanRhsHashable | ||
| 66 | + | ||
| 67 | + case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): | ||
| 68 | + guard cleanLhsArray.count == cleanRhsArray.count else { return false } | ||
| 69 | + for (index, element) in cleanLhsArray.enumerated() { | ||
| 70 | + if !deepEqualsPlatformApi(element, cleanRhsArray[index]) { | ||
| 71 | + return false | ||
| 72 | + } | ||
| 73 | + } | ||
| 74 | + return true | ||
| 75 | + | ||
| 76 | + case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): | ||
| 77 | + guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } | ||
| 78 | + for (key, cleanLhsValue) in cleanLhsDictionary { | ||
| 79 | + guard cleanRhsDictionary.index(forKey: key) != nil else { return false } | ||
| 80 | + if !deepEqualsPlatformApi(cleanLhsValue, cleanRhsDictionary[key]!) { | ||
| 81 | + return false | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + return true | ||
| 85 | + | ||
| 86 | + default: | ||
| 87 | + // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. | ||
| 88 | + return false | ||
| 89 | + } | ||
| 90 | +} | ||
| 91 | + | ||
| 92 | +func deepHashPlatformApi(value: Any?, hasher: inout Hasher) { | ||
| 93 | + if let valueList = value as? [AnyHashable] { | ||
| 94 | + for item in valueList { deepHashPlatformApi(value: item, hasher: &hasher) } | ||
| 95 | + return | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + if let valueDict = value as? [AnyHashable: AnyHashable] { | ||
| 99 | + for key in valueDict.keys { | ||
| 100 | + hasher.combine(key) | ||
| 101 | + deepHashPlatformApi(value: valueDict[key]!, hasher: &hasher) | ||
| 102 | + } | ||
| 103 | + return | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + if let hashableValue = value as? AnyHashable { | ||
| 107 | + hasher.combine(hashableValue.hashValue) | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + return hasher.combine(String(describing: value)) | ||
| 111 | +} | ||
| 112 | + | ||
| 113 | + | ||
| 114 | + | ||
| 115 | +/// Generated class from Pigeon that represents data sent in messages. | ||
| 116 | +struct AppleSignInModel: Hashable { | ||
| 117 | + var userId: String | ||
| 118 | + var email: String? = nil | ||
| 119 | + var nickname: String? = nil | ||
| 120 | + var identityToken: String? = nil | ||
| 121 | + | ||
| 122 | + | ||
| 123 | + // swift-format-ignore: AlwaysUseLowerCamelCase | ||
| 124 | + static func fromList(_ pigeonVar_list: [Any?]) -> AppleSignInModel? { | ||
| 125 | + let userId = pigeonVar_list[0] as! String | ||
| 126 | + let email: String? = nilOrValue(pigeonVar_list[1]) | ||
| 127 | + let nickname: String? = nilOrValue(pigeonVar_list[2]) | ||
| 128 | + let identityToken: String? = nilOrValue(pigeonVar_list[3]) | ||
| 129 | + | ||
| 130 | + return AppleSignInModel( | ||
| 131 | + userId: userId, | ||
| 132 | + email: email, | ||
| 133 | + nickname: nickname, | ||
| 134 | + identityToken: identityToken | ||
| 135 | + ) | ||
| 136 | + } | ||
| 137 | + func toList() -> [Any?] { | ||
| 138 | + return [ | ||
| 139 | + userId, | ||
| 140 | + email, | ||
| 141 | + nickname, | ||
| 142 | + identityToken, | ||
| 143 | + ] | ||
| 144 | + } | ||
| 145 | + static func == (lhs: AppleSignInModel, rhs: AppleSignInModel) -> Bool { | ||
| 146 | + return deepEqualsPlatformApi(lhs.toList(), rhs.toList()) } | ||
| 147 | + func hash(into hasher: inout Hasher) { | ||
| 148 | + deepHashPlatformApi(value: toList(), hasher: &hasher) | ||
| 149 | + } | ||
| 150 | +} | ||
| 51 | 151 | ||
| 52 | private class PlatformApiPigeonCodecReader: FlutterStandardReader { | 152 | private class PlatformApiPigeonCodecReader: FlutterStandardReader { |
| 153 | + override func readValue(ofType type: UInt8) -> Any? { | ||
| 154 | + switch type { | ||
| 155 | + case 129: | ||
| 156 | + return AppleSignInModel.fromList(self.readValue() as! [Any?]) | ||
| 157 | + default: | ||
| 158 | + return super.readValue(ofType: type) | ||
| 159 | + } | ||
| 160 | + } | ||
| 53 | } | 161 | } |
| 54 | 162 | ||
| 55 | private class PlatformApiPigeonCodecWriter: FlutterStandardWriter { | 163 | private class PlatformApiPigeonCodecWriter: FlutterStandardWriter { |
| 164 | + override func writeValue(_ value: Any) { | ||
| 165 | + if let value = value as? AppleSignInModel { | ||
| 166 | + super.writeByte(129) | ||
| 167 | + super.writeValue(value.toList()) | ||
| 168 | + } else { | ||
| 169 | + super.writeValue(value) | ||
| 170 | + } | ||
| 171 | + } | ||
| 56 | } | 172 | } |
| 57 | 173 | ||
| 58 | private class PlatformApiPigeonCodecReaderWriter: FlutterStandardReaderWriter { | 174 | private class PlatformApiPigeonCodecReaderWriter: FlutterStandardReaderWriter { |
| @@ -69,11 +185,13 @@ class PlatformApiPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { | @@ -69,11 +185,13 @@ class PlatformApiPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { | ||
| 69 | static let shared = PlatformApiPigeonCodec(readerWriter: PlatformApiPigeonCodecReaderWriter()) | 185 | static let shared = PlatformApiPigeonCodec(readerWriter: PlatformApiPigeonCodecReaderWriter()) |
| 70 | } | 186 | } |
| 71 | 187 | ||
| 188 | + | ||
| 72 | /// Generated protocol from Pigeon that represents a handler of messages from Flutter. | 189 | /// Generated protocol from Pigeon that represents a handler of messages from Flutter. |
| 73 | protocol PlatformHostApi { | 190 | protocol PlatformHostApi { |
| 74 | /// 返回完整的 User-Agent 字符串,由 native 侧组装: | 191 | /// 返回完整的 User-Agent 字符串,由 native 侧组装: |
| 75 | /// `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` | 192 | /// `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` |
| 76 | func getFullUserAgent() throws -> String | 193 | func getFullUserAgent() throws -> String |
| 194 | + func requestAppleSignIn(completion: @escaping (Result<AppleSignInModel?, Error>) -> Void) | ||
| 77 | } | 195 | } |
| 78 | 196 | ||
| 79 | /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. | 197 | /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. |
| @@ -97,5 +215,20 @@ class PlatformHostApiSetup { | @@ -97,5 +215,20 @@ class PlatformHostApiSetup { | ||
| 97 | } else { | 215 | } else { |
| 98 | getFullUserAgentChannel.setMessageHandler(nil) | 216 | getFullUserAgentChannel.setMessageHandler(nil) |
| 99 | } | 217 | } |
| 218 | + let requestAppleSignInChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.doublefeel_flutter.PlatformHostApi.requestAppleSignIn\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) | ||
| 219 | + if let api = api { | ||
| 220 | + requestAppleSignInChannel.setMessageHandler { _, reply in | ||
| 221 | + api.requestAppleSignIn { result in | ||
| 222 | + switch result { | ||
| 223 | + case .success(let res): | ||
| 224 | + reply(wrapResult(res)) | ||
| 225 | + case .failure(let error): | ||
| 226 | + reply(wrapError(error)) | ||
| 227 | + } | ||
| 228 | + } | ||
| 229 | + } | ||
| 230 | + } else { | ||
| 231 | + requestAppleSignInChannel.setMessageHandler(nil) | ||
| 232 | + } | ||
| 100 | } | 233 | } |
| 101 | } | 234 | } |
| 1 | import Foundation | 1 | import Foundation |
| 2 | +import AuthenticationServices | ||
| 2 | import UIKit | 3 | import UIKit |
| 3 | import WebKit | 4 | import WebKit |
| 4 | 5 | ||
| 6 | + | ||
| 5 | /** | 7 | /** |
| 6 | * PlatformApi iOS implementation. | 8 | * PlatformApi iOS implementation. |
| 7 | * | 9 | * |
| @@ -9,44 +11,39 @@ import WebKit | @@ -9,44 +11,39 @@ import WebKit | ||
| 9 | * `{systemWebViewUA} doublefeel/{versionCode}({versionName})(Apple##Apple##{model}; iOS{osVersion}; {height}x{width})(huawei)` | 11 | * `{systemWebViewUA} doublefeel/{versionCode}({versionName})(Apple##Apple##{model}; iOS{osVersion}; {height}x{width})(huawei)` |
| 10 | */ | 12 | */ |
| 11 | final class PlatformHostApiImpl: PlatformHostApi { | 13 | final class PlatformHostApiImpl: PlatformHostApi { |
| 12 | - | ||
| 13 | - // WKWebView 必须在主线程创建,且需保持引用防止释放 | ||
| 14 | - private static let webView: WKWebView = { | ||
| 15 | - let wv = WKWebView(frame: .zero) | ||
| 16 | - return wv | ||
| 17 | - }() | ||
| 18 | - | 14 | + private var appleSignInCoordinator: AppleSignInCoordinator? |
| 15 | + | ||
| 16 | + func requestAppleSignIn(completion: @escaping (Result<AppleSignInModel?, any Error>) -> Void) { | ||
| 17 | + DispatchQueue.main.async { [weak self] in | ||
| 18 | + guard let self else { | ||
| 19 | + completion(.failure(PlatformHostApiError.deallocated)) | ||
| 20 | + return | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + let provider = ASAuthorizationAppleIDProvider() | ||
| 24 | + let request = provider.createRequest() | ||
| 25 | + request.requestedScopes = [.fullName, .email] | ||
| 26 | + | ||
| 27 | + guard let presentationAnchor = AppleSignInCoordinator.currentPresentationAnchor() else { | ||
| 28 | + completion(.failure(PlatformHostApiError.missingPresentationAnchor)) | ||
| 29 | + return | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + let coordinator = AppleSignInCoordinator(presentationAnchor: presentationAnchor) { [weak self] result in | ||
| 33 | + self?.appleSignInCoordinator = nil | ||
| 34 | + completion(result) | ||
| 35 | + } | ||
| 36 | + appleSignInCoordinator = coordinator | ||
| 37 | + | ||
| 38 | + let controller = ASAuthorizationController(authorizationRequests: [request]) | ||
| 39 | + controller.delegate = coordinator | ||
| 40 | + controller.presentationContextProvider = coordinator | ||
| 41 | + controller.performRequests() | ||
| 42 | + } | ||
| 43 | + } | ||
| 44 | + | ||
| 19 | func getFullUserAgent() throws -> String { | 45 | func getFullUserAgent() throws -> String { |
| 20 | - // 1. 系统 WebView UA(同步读取,WKWebView 已在主线程初始化) | ||
| 21 | - let systemUa = PlatformHostApiImpl.webView.value(forKey: "userAgent") as? String ?? "" | ||
| 22 | - | ||
| 23 | - // 2. 版本信息(对应 Android versionCode / versionName) | ||
| 24 | - let info = Bundle.main.infoDictionary | ||
| 25 | - let versionName = info?["CFBundleShortVersionString"] as? String ?? "" | ||
| 26 | - let versionCode = info?["CFBundleVersion"] as? String ?? "0" | ||
| 27 | - | ||
| 28 | - // 3. 设备信息 | ||
| 29 | - // iOS 无 manufacturer/brand 概念,统一用 "Apple" | ||
| 30 | - let manufacturer = "Apple" | ||
| 31 | - let brand = "Apple" | ||
| 32 | - let model = UIDevice.current.model // "iPhone" / "iPad" | ||
| 33 | - let osVersion = UIDevice.current.systemVersion.replacingOccurrences(of: ".", with: "") | ||
| 34 | - | ||
| 35 | - // 4. 屏幕物理分辨率:长边为 height,短边为 width | ||
| 36 | - let bounds = UIScreen.main.bounds | ||
| 37 | - let scale = UIScreen.main.scale | ||
| 38 | - let pw = bounds.width * scale | ||
| 39 | - let ph = bounds.height * scale | ||
| 40 | - let screenWidth = Int(min(pw, ph)) | ||
| 41 | - let screenHeight = Int(max(pw, ph)) | ||
| 42 | - | ||
| 43 | - // 5. 组装 customAgent(与 Android DeviceInfoUtils.userAgent 格式一致) | ||
| 44 | - let customAgent = "doublefeel/\(versionCode)(\(versionName))" | ||
| 45 | - + "(\(manufacturer)##\(brand)##\(model); iOS\(osVersion); \(screenHeight)x\(screenWidth))" | ||
| 46 | - + "(apple)" | ||
| 47 | - | ||
| 48 | - let full = "\(systemUa.trimmingCharacters(in: .whitespaces)) \(customAgent)" | ||
| 49 | - .trimmingCharacters(in: .whitespaces) | ||
| 50 | - return full | 46 | + return UserAgent.share.finalUA |
| 51 | } | 47 | } |
| 52 | } | 48 | } |
| 49 | + |
| @@ -4,6 +4,10 @@ | @@ -4,6 +4,10 @@ | ||
| 4 | <dict> | 4 | <dict> |
| 5 | <key>aps-environment</key> | 5 | <key>aps-environment</key> |
| 6 | <string>development</string> | 6 | <string>development</string> |
| 7 | + <key>com.apple.developer.applesignin</key> | ||
| 8 | + <array> | ||
| 9 | + <string>Default</string> | ||
| 10 | + </array> | ||
| 7 | <key>com.apple.developer.healthkit</key> | 11 | <key>com.apple.developer.healthkit</key> |
| 8 | <true/> | 12 | <true/> |
| 9 | <key>com.apple.developer.healthkit.background-delivery</key> | 13 | <key>com.apple.developer.healthkit.background-delivery</key> |
ios/Runner/UserAgent.swift
0 → 100644
| 1 | +// | ||
| 2 | +// UserAgent.swift | ||
| 3 | +// hippo | ||
| 4 | +// | ||
| 5 | +// Created by shihao on 2025/7/10. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +import Foundation | ||
| 9 | +import WebKit | ||
| 10 | +import DeviceGuru | ||
| 11 | + | ||
| 12 | +extension UIApplication { | ||
| 13 | + var currentWindowScene: UIWindowScene? { | ||
| 14 | + connectedScenes | ||
| 15 | + .compactMap { $0 as? UIWindowScene } | ||
| 16 | + .first { $0.activationState != .unattached } | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + var currentScreen: UIScreen? { | ||
| 20 | + currentWindowScene?.screen | ||
| 21 | + } | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +class UserAgent { | ||
| 25 | + static let share = UserAgent() | ||
| 26 | + var unifiedUA: String = "" | ||
| 27 | + var finalUA: String = "" | ||
| 28 | + | ||
| 29 | + private(set) var appVersion: String? | ||
| 30 | + private(set) var buildVersion: String? | ||
| 31 | + | ||
| 32 | + func genUA(){ | ||
| 33 | + let web = WKWebView() | ||
| 34 | + if let ua = web.value(forKey: "userAgent") as? String { | ||
| 35 | + self.unifiedUA = ua | ||
| 36 | + } | ||
| 37 | + self.finalUA = self.unifiedUA + self.customUA() | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + func customUA() -> String { | ||
| 41 | + let version = CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle(), kCFBundleVersionKey) as! NSString | ||
| 42 | + let bundle = Bundle.main.infoDictionary?["CFBundleShortVersionString"] ?? "" | ||
| 43 | + let hardware = DeviceGuruImplementation().hardwareString | ||
| 44 | + let systemVersion = UIDevice.current.systemVersion | ||
| 45 | + let height = UIApplication.shared.currentScreen?.bounds.height ?? 0 | ||
| 46 | + let width = UIApplication.shared.currentScreen?.bounds.width ?? 0 | ||
| 47 | + let ua = " doublefeel/\(version)(\(bundle))(\(hardware); iOS \(systemVersion); \(height)x\(width))" | ||
| 48 | + | ||
| 49 | + appVersion = bundle as? String | ||
| 50 | + buildVersion = version as String | ||
| 51 | + | ||
| 52 | + return ua | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | +} |
| 1 | import 'dart:async'; | 1 | import 'dart:async'; |
| 2 | import 'package:doublefeel_flutter/core/constants/app_const.dart'; | 2 | import 'package:doublefeel_flutter/core/constants/app_const.dart'; |
| 3 | import 'package:doublefeel_flutter/l10n/gen/app_localizations.dart'; | 3 | import 'package:doublefeel_flutter/l10n/gen/app_localizations.dart'; |
| 4 | +import 'package:doublefeel_flutter/pigeon/platform_api.g.dart'; | ||
| 4 | import 'package:flutter/widgets.dart'; | 5 | import 'package:flutter/widgets.dart'; |
| 5 | import 'package:get/get.dart'; | 6 | import 'package:get/get.dart'; |
| 6 | import 'package:doublefeel_flutter/core/util/app_toast.dart'; | 7 | import 'package:doublefeel_flutter/core/util/app_toast.dart'; |
| @@ -49,12 +50,16 @@ class LoginController extends GetxController { | @@ -49,12 +50,16 @@ class LoginController extends GetxController { | ||
| 49 | Get.toNamed(AppRoutes.phoneLogin); | 50 | Get.toNamed(AppRoutes.phoneLogin); |
| 50 | } | 51 | } |
| 51 | 52 | ||
| 52 | - void onAppleLoginPressed() { | 53 | + void onAppleLoginPressed() async { |
| 53 | if (!termsChecked.value) { | 54 | if (!termsChecked.value) { |
| 54 | AppToast.show(AppLocalizations.of(Get.context!)!.loginAgreeToTermsToast); | 55 | AppToast.show(AppLocalizations.of(Get.context!)!.loginAgreeToTermsToast); |
| 55 | return; | 56 | return; |
| 56 | } | 57 | } |
| 57 | - //todo: implement apple login | 58 | + final result = await PlatformHostApi().requestAppleSignIn(); |
| 59 | + if (result == null) { | ||
| 60 | + return; | ||
| 61 | + } | ||
| 62 | + | ||
| 58 | } | 63 | } |
| 59 | 64 | ||
| 60 | void onDebugPressed() { | 65 | void onDebugPressed() { |
| @@ -62,8 +62,7 @@ import 'app_localizations_zh.dart'; | @@ -62,8 +62,7 @@ import 'app_localizations_zh.dart'; | ||
| 62 | /// be consistent with the languages listed in the AppLocalizations.supportedLocales | 62 | /// be consistent with the languages listed in the AppLocalizations.supportedLocales |
| 63 | /// property. | 63 | /// property. |
| 64 | abstract class AppLocalizations { | 64 | abstract class AppLocalizations { |
| 65 | - AppLocalizations(String locale) | ||
| 66 | - : localeName = intl.Intl.canonicalizedLocale(locale.toString()); | 65 | + AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString()); |
| 67 | 66 | ||
| 68 | final String localeName; | 67 | final String localeName; |
| 69 | 68 | ||
| @@ -71,8 +70,7 @@ abstract class AppLocalizations { | @@ -71,8 +70,7 @@ abstract class AppLocalizations { | ||
| 71 | return Localizations.of<AppLocalizations>(context, AppLocalizations); | 70 | return Localizations.of<AppLocalizations>(context, AppLocalizations); |
| 72 | } | 71 | } |
| 73 | 72 | ||
| 74 | - static const LocalizationsDelegate<AppLocalizations> delegate = | ||
| 75 | - _AppLocalizationsDelegate(); | 73 | + static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate(); |
| 76 | 74 | ||
| 77 | /// A list of this localizations delegate along with the default localizations | 75 | /// A list of this localizations delegate along with the default localizations |
| 78 | /// delegates. | 76 | /// delegates. |
| @@ -84,8 +82,7 @@ abstract class AppLocalizations { | @@ -84,8 +82,7 @@ abstract class AppLocalizations { | ||
| 84 | /// Additional delegates can be added by appending to this list in | 82 | /// Additional delegates can be added by appending to this list in |
| 85 | /// MaterialApp. This list does not have to be used at all if a custom list | 83 | /// MaterialApp. This list does not have to be used at all if a custom list |
| 86 | /// of delegates is preferred or required. | 84 | /// of delegates is preferred or required. |
| 87 | - static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = | ||
| 88 | - <LocalizationsDelegate<dynamic>>[ | 85 | + static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[ |
| 89 | delegate, | 86 | delegate, |
| 90 | GlobalMaterialLocalizations.delegate, | 87 | GlobalMaterialLocalizations.delegate, |
| 91 | GlobalCupertinoLocalizations.delegate, | 88 | GlobalCupertinoLocalizations.delegate, |
| @@ -528,8 +525,7 @@ abstract class AppLocalizations { | @@ -528,8 +525,7 @@ abstract class AppLocalizations { | ||
| 528 | /// | 525 | /// |
| 529 | /// In zh, this message translates to: | 526 | /// In zh, this message translates to: |
| 530 | /// **'你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。'** | 527 | /// **'你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。'** |
| 531 | - String | ||
| 532 | - get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired; | 528 | + String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired; |
| 533 | 529 | ||
| 534 | /// No description provided for @bindPartnerTitle. | 530 | /// No description provided for @bindPartnerTitle. |
| 535 | /// | 531 | /// |
| @@ -1738,8 +1734,7 @@ abstract class AppLocalizations { | @@ -1738,8 +1734,7 @@ abstract class AppLocalizations { | ||
| 1738 | String get dailyActions; | 1734 | String get dailyActions; |
| 1739 | } | 1735 | } |
| 1740 | 1736 | ||
| 1741 | -class _AppLocalizationsDelegate | ||
| 1742 | - extends LocalizationsDelegate<AppLocalizations> { | 1737 | +class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> { |
| 1743 | const _AppLocalizationsDelegate(); | 1738 | const _AppLocalizationsDelegate(); |
| 1744 | 1739 | ||
| 1745 | @override | 1740 | @override |
| @@ -1748,25 +1743,25 @@ class _AppLocalizationsDelegate | @@ -1748,25 +1743,25 @@ class _AppLocalizationsDelegate | ||
| 1748 | } | 1743 | } |
| 1749 | 1744 | ||
| 1750 | @override | 1745 | @override |
| 1751 | - bool isSupported(Locale locale) => | ||
| 1752 | - <String>['en', 'zh'].contains(locale.languageCode); | 1746 | + bool isSupported(Locale locale) => <String>['en', 'zh'].contains(locale.languageCode); |
| 1753 | 1747 | ||
| 1754 | @override | 1748 | @override |
| 1755 | bool shouldReload(_AppLocalizationsDelegate old) => false; | 1749 | bool shouldReload(_AppLocalizationsDelegate old) => false; |
| 1756 | } | 1750 | } |
| 1757 | 1751 | ||
| 1758 | AppLocalizations lookupAppLocalizations(Locale locale) { | 1752 | AppLocalizations lookupAppLocalizations(Locale locale) { |
| 1753 | + | ||
| 1754 | + | ||
| 1759 | // Lookup logic when only language code is specified. | 1755 | // Lookup logic when only language code is specified. |
| 1760 | switch (locale.languageCode) { | 1756 | switch (locale.languageCode) { |
| 1761 | - case 'en': | ||
| 1762 | - return AppLocalizationsEn(); | ||
| 1763 | - case 'zh': | ||
| 1764 | - return AppLocalizationsZh(); | 1757 | + case 'en': return AppLocalizationsEn(); |
| 1758 | + case 'zh': return AppLocalizationsZh(); | ||
| 1765 | } | 1759 | } |
| 1766 | 1760 | ||
| 1767 | throw FlutterError( | 1761 | throw FlutterError( |
| 1768 | - 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' | ||
| 1769 | - 'an issue with the localizations generation tool. Please file an issue ' | ||
| 1770 | - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' | ||
| 1771 | - 'that was used.'); | 1762 | + 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' |
| 1763 | + 'an issue with the localizations generation tool. Please file an issue ' | ||
| 1764 | + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' | ||
| 1765 | + 'that was used.' | ||
| 1766 | + ); | ||
| 1772 | } | 1767 | } |
| 1 | -// ignore: unused_import | ||
| 2 | -import 'package:intl/intl.dart' as intl; | ||
| 3 | import 'app_localizations.dart'; | 1 | import 'app_localizations.dart'; |
| 4 | 2 | ||
| 5 | // ignore_for_file: type=lint | 3 | // ignore_for_file: type=lint |
| @@ -69,12 +67,10 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -69,12 +67,10 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 69 | String get settings => 'Settings'; | 67 | String get settings => 'Settings'; |
| 70 | 68 | ||
| 71 | @override | 69 | @override |
| 72 | - String get onboardingIntroTitle => | ||
| 73 | - 'DoubleFeel is a health companion app built for Apple Watch'; | 70 | + String get onboardingIntroTitle => 'DoubleFeel is a health companion app built for Apple Watch'; |
| 74 | 71 | ||
| 75 | @override | 72 | @override |
| 76 | - String get onboardingIntroBody => | ||
| 77 | - '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>'; | 73 | + 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>'; |
| 78 | 74 | ||
| 79 | @override | 75 | @override |
| 80 | String get onboardingStateQuestion => 'Which of these often happens to you?'; | 76 | String get onboardingStateQuestion => 'Which of these often happens to you?'; |
| @@ -86,19 +82,16 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -86,19 +82,16 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 86 | String get onboardingStateTired => 'I get tired easily'; | 82 | String get onboardingStateTired => 'I get tired easily'; |
| 87 | 83 | ||
| 88 | @override | 84 | @override |
| 89 | - String get onboardingStatePoorRest => | ||
| 90 | - 'I wake up but still do not feel rested'; | 85 | + String get onboardingStatePoorRest => 'I wake up but still do not feel rested'; |
| 91 | 86 | ||
| 92 | @override | 87 | @override |
| 93 | - String get onboardingStateNeedStimulants => | ||
| 94 | - 'I rely on cigarettes, alcohol, coffee, or other stimulants to stay alert'; | 88 | + String get onboardingStateNeedStimulants => 'I rely on cigarettes, alcohol, coffee, or other stimulants to stay alert'; |
| 95 | 89 | ||
| 96 | @override | 90 | @override |
| 97 | String get onboardingStateNone => 'None of the above'; | 91 | String get onboardingStateNone => 'None of the above'; |
| 98 | 92 | ||
| 99 | @override | 93 | @override |
| 100 | - String get onboardingStressGoalQuestion => | ||
| 101 | - 'What do you want to learn by understanding stress?'; | 94 | + String get onboardingStressGoalQuestion => 'What do you want to learn by understanding stress?'; |
| 102 | 95 | ||
| 103 | @override | 96 | @override |
| 104 | String get onboardingStressGoalSource => 'Understand where stress comes from'; | 97 | String get onboardingStressGoalSource => 'Understand where stress comes from'; |
| @@ -107,8 +100,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -107,8 +100,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 107 | String get onboardingStressGoalReminder => 'Get reminded when stress appears'; | 100 | String get onboardingStressGoalReminder => 'Get reminded when stress appears'; |
| 108 | 101 | ||
| 109 | @override | 102 | @override |
| 110 | - String get onboardingStressGoalLovedOnes => | ||
| 111 | - 'Let people who care about me know my stress state'; | 103 | + String get onboardingStressGoalLovedOnes => 'Let people who care about me know my stress state'; |
| 112 | 104 | ||
| 113 | @override | 105 | @override |
| 114 | String get onboardingStressGoalRelax => 'Understand stress and feel lighter'; | 106 | String get onboardingStressGoalRelax => 'Understand stress and feel lighter'; |
| @@ -117,8 +109,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -117,8 +109,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 117 | String get onboardingStressGoalBodyTalk => 'Communicate better with my body'; | 109 | String get onboardingStressGoalBodyTalk => 'Communicate better with my body'; |
| 118 | 110 | ||
| 119 | @override | 111 | @override |
| 120 | - String get onboardingReliefQuestion => | ||
| 121 | - 'Which methods do you think can ease stress?'; | 112 | + String get onboardingReliefQuestion => 'Which methods do you think can ease stress?'; |
| 122 | 113 | ||
| 123 | @override | 114 | @override |
| 124 | String get onboardingReliefSleep => 'Regular sleep'; | 115 | String get onboardingReliefSleep => 'Regular sleep'; |
| @@ -142,8 +133,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -142,8 +133,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 142 | String get onboardingKeyDataTitle => 'Did you know?'; | 133 | String get onboardingKeyDataTitle => 'Did you know?'; |
| 143 | 134 | ||
| 144 | @override | 135 | @override |
| 145 | - String get onboardingKeyDataSubtitle => | ||
| 146 | - 'Everyone has a magical and important body metric that can help us:'; | 136 | + String get onboardingKeyDataSubtitle => 'Everyone has a magical and important body metric that can help us:'; |
| 147 | 137 | ||
| 148 | @override | 138 | @override |
| 149 | String get onboardingKeyDataStress => 'Monitor stress'; | 139 | String get onboardingKeyDataStress => 'Monitor stress'; |
| @@ -158,8 +148,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -158,8 +148,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 158 | String get onboardingKeyDataHabits => 'Build healthy habits'; | 148 | String get onboardingKeyDataHabits => 'Build healthy habits'; |
| 159 | 149 | ||
| 160 | @override | 150 | @override |
| 161 | - String get onboardingKeyDataLovedOnes => | ||
| 162 | - 'Help important people care about your state in time'; | 151 | + String get onboardingKeyDataLovedOnes => 'Help important people care about your state in time'; |
| 163 | 152 | ||
| 164 | @override | 153 | @override |
| 165 | String get onboardingTellMeWhatItIs => 'Tell me what it is!'; | 154 | String get onboardingTellMeWhatItIs => 'Tell me what it is!'; |
| @@ -168,19 +157,16 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -168,19 +157,16 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 168 | String get onboardingHrvTitle => 'It is HRV, heart rate variability'; | 157 | String get onboardingHrvTitle => 'It is HRV, heart rate variability'; |
| 169 | 158 | ||
| 170 | @override | 159 | @override |
| 171 | - String get onboardingHrvSubtitle => | ||
| 172 | - 'It helps us measure overall stress and health'; | 160 | + String get onboardingHrvSubtitle => 'It helps us measure overall stress and health'; |
| 173 | 161 | ||
| 174 | @override | 162 | @override |
| 175 | - String get onboardingHrvDescription => | ||
| 176 | - '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.'; | 163 | + 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.'; |
| 177 | 164 | ||
| 178 | @override | 165 | @override |
| 179 | String get onboardingTellMeMore => 'Tell me more'; | 166 | String get onboardingTellMeMore => 'Tell me more'; |
| 180 | 167 | ||
| 181 | @override | 168 | @override |
| 182 | - String get onboardingResearchTitle => | ||
| 183 | - 'Many studies show that HRV changes are closely related to how our body and mind feel'; | 169 | + String get onboardingResearchTitle => 'Many studies show that HRV changes are closely related to how our body and mind feel'; |
| 184 | 170 | ||
| 185 | @override | 171 | @override |
| 186 | String get onboardingResearchFatigue => 'Physical fatigue'; | 172 | String get onboardingResearchFatigue => 'Physical fatigue'; |
| @@ -198,30 +184,25 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -198,30 +184,25 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 198 | String get onboardingHealthPermissionTitle => 'Allow health data access'; | 184 | String get onboardingHealthPermissionTitle => 'Allow health data access'; |
| 199 | 185 | ||
| 200 | @override | 186 | @override |
| 201 | - String get onboardingHealthPermissionBody => | ||
| 202 | - 'DoubleFeel needs connected wearable health data to send reminders, count stress moments, and provide suggestions.'; | 187 | + String get onboardingHealthPermissionBody => 'DoubleFeel needs connected wearable health data to send reminders, count stress moments, and provide suggestions.'; |
| 203 | 188 | ||
| 204 | @override | 189 | @override |
| 205 | - String get onboardingHealthPermissionPrivacy => | ||
| 206 | - 'Your health data is stored locally. We do not upload any related data.'; | 190 | + String get onboardingHealthPermissionPrivacy => 'Your health data is stored locally. We do not upload any related data.'; |
| 207 | 191 | ||
| 208 | @override | 192 | @override |
| 209 | String get onboardingNotificationTitle => 'Turn on notifications'; | 193 | String get onboardingNotificationTitle => 'Turn on notifications'; |
| 210 | 194 | ||
| 211 | @override | 195 | @override |
| 212 | - String get onboardingNotificationSubtitle => | ||
| 213 | - 'Learn about every body change in time'; | 196 | + String get onboardingNotificationSubtitle => 'Learn about every body change in time'; |
| 214 | 197 | ||
| 215 | @override | 198 | @override |
| 216 | - String get onboardingNotificationBody => | ||
| 217 | - 'After Apple Watch data updates, we can remind you in time and help you act to improve your stress state.'; | 199 | + String get onboardingNotificationBody => 'After Apple Watch data updates, we can remind you in time and help you act to improve your stress state.'; |
| 218 | 200 | ||
| 219 | @override | 201 | @override |
| 220 | String get onboardingMemberTitle => 'Get an annual membership offer'; | 202 | String get onboardingMemberTitle => 'Get an annual membership offer'; |
| 221 | 203 | ||
| 222 | @override | 204 | @override |
| 223 | - String get onboardingMemberBody => | ||
| 224 | - 'Start your pressure alert and health companion journey, so love and care are always present.'; | 205 | + String get onboardingMemberBody => 'Start your pressure alert and health companion journey, so love and care are always present.'; |
| 225 | 206 | ||
| 226 | @override | 207 | @override |
| 227 | String get onboardingMemberOriginalPrice => 'Original ¥72.00/year'; | 208 | String get onboardingMemberOriginalPrice => 'Original ¥72.00/year'; |
| @@ -236,16 +217,13 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -236,16 +217,13 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 236 | String get onboardingMemberAllOptions => 'View all purchase options'; | 217 | String get onboardingMemberAllOptions => 'View all purchase options'; |
| 237 | 218 | ||
| 238 | @override | 219 | @override |
| 239 | - String get healthCompanionIsNowAvailable => | ||
| 240 | - 'Health Companion is now available'; | 220 | + String get healthCompanionIsNowAvailable => 'Health Companion is now available'; |
| 241 | 221 | ||
| 242 | @override | 222 | @override |
| 243 | - String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired => | ||
| 244 | - '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.'; | 223 | + 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.'; |
| 245 | 224 | ||
| 246 | @override | 225 | @override |
| 247 | - String get bindPartnerTitle => | ||
| 248 | - 'Add a Close Contact\nOne more person to care about your health'; | 226 | + String get bindPartnerTitle => 'Add a Close Contact\nOne more person to care about your health'; |
| 249 | 227 | ||
| 250 | @override | 228 | @override |
| 251 | String get bindPartnerMyId => 'My ID'; | 229 | String get bindPartnerMyId => 'My ID'; |
| @@ -284,8 +262,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -284,8 +262,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 284 | String get onboardingResearchGoodSleep => 'Good Sleep'; | 262 | String get onboardingResearchGoodSleep => 'Good Sleep'; |
| 285 | 263 | ||
| 286 | @override | 264 | @override |
| 287 | - String get loginSlogan => | ||
| 288 | - 'Start your pressure alert and health companion journey\nso love and care are always present'; | 265 | + String get loginSlogan => 'Start your pressure alert and health companion journey\nso love and care are always present'; |
| 289 | 266 | ||
| 290 | @override | 267 | @override |
| 291 | String get loginWithPhone => 'Sign in with Phone'; | 268 | String get loginWithPhone => 'Sign in with Phone'; |
| @@ -335,15 +312,13 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -335,15 +312,13 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 335 | String get phoneLoginCodeHint => 'Enter verification code'; | 312 | String get phoneLoginCodeHint => 'Enter verification code'; |
| 336 | 313 | ||
| 337 | @override | 314 | @override |
| 338 | - String get phoneLoginAutoRegisterHint => | ||
| 339 | - 'Unregistered numbers will be registered automatically'; | 315 | + String get phoneLoginAutoRegisterHint => 'Unregistered numbers will be registered automatically'; |
| 340 | 316 | ||
| 341 | @override | 317 | @override |
| 342 | String get phoneLoginLoggingIn => 'Signing in...'; | 318 | String get phoneLoginLoggingIn => 'Signing in...'; |
| 343 | 319 | ||
| 344 | @override | 320 | @override |
| 345 | - String get loginAgreeToTermsToast => | ||
| 346 | - 'Please read and agree to the Terms of Service and Privacy Policy first'; | 321 | + String get loginAgreeToTermsToast => 'Please read and agree to the Terms of Service and Privacy Policy first'; |
| 347 | 322 | ||
| 348 | @override | 323 | @override |
| 349 | String get phoneLoginInvalidPhone => 'Invalid phone number'; | 324 | String get phoneLoginInvalidPhone => 'Invalid phone number'; |
| @@ -355,12 +330,10 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -355,12 +330,10 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 355 | String get phoneLoginInvalidCode => 'Invalid verification code'; | 330 | String get phoneLoginInvalidCode => 'Invalid verification code'; |
| 356 | 331 | ||
| 357 | @override | 332 | @override |
| 358 | - String get todayHealthDataAuthTitle => | ||
| 359 | - 'Unable to access heart rate health data'; | 333 | + String get todayHealthDataAuthTitle => 'Unable to access heart rate health data'; |
| 360 | 334 | ||
| 361 | @override | 335 | @override |
| 362 | - String get todayHealthDataAuthDescription => | ||
| 363 | - '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.'; | 336 | + 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.'; |
| 364 | 337 | ||
| 365 | @override | 338 | @override |
| 366 | String get todayHealthDataAuthAction => 'Authorize health data access'; | 339 | String get todayHealthDataAuthAction => 'Authorize health data access'; |
| @@ -381,24 +354,19 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -381,24 +354,19 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 381 | String get todayFaqLinkNoData => 'What if the app or watch face has no data?'; | 354 | String get todayFaqLinkNoData => 'What if the app or watch face has no data?'; |
| 382 | 355 | ||
| 383 | @override | 356 | @override |
| 384 | - String get todayFaqLinkHrvRealtimeUpdate => | ||
| 385 | - 'How can HRV data update in real time?'; | 357 | + String get todayFaqLinkHrvRealtimeUpdate => 'How can HRV data update in real time?'; |
| 386 | 358 | ||
| 387 | @override | 359 | @override |
| 388 | - String get todayFaqLinkWatchNoStatusNotification => | ||
| 389 | - 'Why can\'t my watch receive status notifications?'; | 360 | + String get todayFaqLinkWatchNoStatusNotification => 'Why can\'t my watch receive status notifications?'; |
| 390 | 361 | ||
| 391 | @override | 362 | @override |
| 392 | - String get todayFaqLinkWatchNoStatusAndInteractionNotification => | ||
| 393 | - 'Why can\'t my watch receive status and interaction notifications?'; | 363 | + String get todayFaqLinkWatchNoStatusAndInteractionNotification => 'Why can\'t my watch receive status and interaction notifications?'; |
| 394 | 364 | ||
| 395 | @override | 365 | @override |
| 396 | - String get todayFaqLinkWatchFaceDataDelay => | ||
| 397 | - 'Why is watch face data delayed or not updating?'; | 366 | + String get todayFaqLinkWatchFaceDataDelay => 'Why is watch face data delayed or not updating?'; |
| 398 | 367 | ||
| 399 | @override | 368 | @override |
| 400 | - String get todayFaqLinkWatchFaceBlackScreen => | ||
| 401 | - 'Why does the watch face turn black?'; | 369 | + String get todayFaqLinkWatchFaceBlackScreen => 'Why does the watch face turn black?'; |
| 402 | 370 | ||
| 403 | @override | 371 | @override |
| 404 | String get todayStressStatusTitle => 'Overall stress status'; | 372 | String get todayStressStatusTitle => 'Overall stress status'; |
| @@ -425,176 +393,136 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -425,176 +393,136 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 425 | String get todayStressStatusInsufficientData => 'Insufficient data'; | 393 | String get todayStressStatusInsufficientData => 'Insufficient data'; |
| 426 | 394 | ||
| 427 | @override | 395 | @override |
| 428 | - String get todayStressStatusOverloadDescription => | ||
| 429 | - 'Your current HRV is much lower than your long-term average, which may indicate fatigue, high stress, or insufficient recovery. Rest is recommended.'; | 396 | + 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.'; |
| 430 | 397 | ||
| 431 | @override | 398 | @override |
| 432 | - String get todayStressStatusCautionDescription => | ||
| 433 | - 'Your current HRV is below the normal range, and your body may be accumulating stress. Pay attention to rest and recovery.'; | 399 | + String get todayStressStatusCautionDescription => 'Your current HRV is below the normal range, and your body may be accumulating stress. Pay attention to rest and recovery.'; |
| 434 | 400 | ||
| 435 | @override | 401 | @override |
| 436 | - String get todayStressStatusNormalDescription => | ||
| 437 | - 'Your current body state is within your normal fluctuation range.'; | 402 | + String get todayStressStatusNormalDescription => 'Your current body state is within your normal fluctuation range.'; |
| 438 | 403 | ||
| 439 | @override | 404 | @override |
| 440 | - String get todayStressStatusExcellentDescription => | ||
| 441 | - 'Your current HRV is higher than your recent average, indicating better recovery and overall state.'; | 405 | + String get todayStressStatusExcellentDescription => 'Your current HRV is higher than your recent average, indicating better recovery and overall state.'; |
| 442 | 406 | ||
| 443 | @override | 407 | @override |
| 444 | - String get todayStressStatusInsufficientDataDescription => | ||
| 445 | - 'There is not enough available data to accurately assess your stress state yet.'; | 408 | + String get todayStressStatusInsufficientDataDescription => 'There is not enough available data to accurately assess your stress state yet.'; |
| 446 | 409 | ||
| 447 | @override | 410 | @override |
| 448 | - String get todayHrvMeasurementIntro => | ||
| 449 | - 'Apple Watch measures HRV every 2-5 hours by default. If you want to measure it manually right now, follow these steps:'; | 411 | + 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:'; |
| 450 | 412 | ||
| 451 | @override | 413 | @override |
| 452 | - String get todayHrvMeasurementStep1 => | ||
| 453 | - '1. Wear your Apple Watch snugly, sit down, and stay calm'; | 414 | + String get todayHrvMeasurementStep1 => '1. Wear your Apple Watch snugly, sit down, and stay calm'; |
| 454 | 415 | ||
| 455 | @override | 416 | @override |
| 456 | - String get todayHrvMeasurementStep2 => | ||
| 457 | - '2. Open Mindfulness on Apple Watch and start Breathe'; | 417 | + String get todayHrvMeasurementStep2 => '2. Open Mindfulness on Apple Watch and start Breathe'; |
| 458 | 418 | ||
| 459 | @override | 419 | @override |
| 460 | - String get todayHrvMeasurementStep3 => | ||
| 461 | - '3. Keep breathing steadily and wait 1-3 minutes'; | 420 | + String get todayHrvMeasurementStep3 => '3. Keep breathing steadily and wait 1-3 minutes'; |
| 462 | 421 | ||
| 463 | @override | 422 | @override |
| 464 | - String get todayHrvMeasurementStep4 => | ||
| 465 | - '4. After breathing is complete, lock and unlock your iPhone once'; | 423 | + String get todayHrvMeasurementStep4 => '4. After breathing is complete, lock and unlock your iPhone once'; |
| 466 | 424 | ||
| 467 | @override | 425 | @override |
| 468 | - String get todayHrvMeasurementStep5 => | ||
| 469 | - '5. Wait about one minute. StressWatch will receive and display your data'; | 426 | + String get todayHrvMeasurementStep5 => '5. Wait about one minute. StressWatch will receive and display your data'; |
| 470 | 427 | ||
| 471 | @override | 428 | @override |
| 472 | - String get todayHrvMeasurementHint => | ||
| 473 | - '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.'; | 429 | + 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.'; |
| 474 | 430 | ||
| 475 | @override | 431 | @override |
| 476 | - String get todayHrvMeasurementWarning => | ||
| 477 | - 'Note: Health permissions must be enabled, and Low Power Mode must be turned off.'; | 432 | + String get todayHrvMeasurementWarning => 'Note: Health permissions must be enabled, and Low Power Mode must be turned off.'; |
| 478 | 433 | ||
| 479 | @override | 434 | @override |
| 480 | String get todayStressStatusWhatTitle => 'What is overall stress status?'; | 435 | String get todayStressStatusWhatTitle => 'What is overall stress status?'; |
| 481 | 436 | ||
| 482 | @override | 437 | @override |
| 483 | - String get todayStressStatusWhatDescription1 => | ||
| 484 | - '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.'; | 438 | + 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.'; |
| 485 | 439 | ||
| 486 | @override | 440 | @override |
| 487 | - String get todayStressStatusWhatDescription2 => | ||
| 488 | - '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.'; | 441 | + 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.'; |
| 489 | 442 | ||
| 490 | @override | 443 | @override |
| 491 | - String get todayStressStatusWhyHrvTitle => | ||
| 492 | - 'Why use HRV (heart rate variability)?'; | 444 | + String get todayStressStatusWhyHrvTitle => 'Why use HRV (heart rate variability)?'; |
| 493 | 445 | ||
| 494 | @override | 446 | @override |
| 495 | - String get todayStressStatusWhyHrvDescription => | ||
| 496 | - 'HRV is an important metric for measuring body stress and recovery capacity.'; | 447 | + String get todayStressStatusWhyHrvDescription => 'HRV is an important metric for measuring body stress and recovery capacity.'; |
| 497 | 448 | ||
| 498 | @override | 449 | @override |
| 499 | String get todayStressStatusUsually => 'In general:'; | 450 | String get todayStressStatusUsually => 'In general:'; |
| 500 | 451 | ||
| 501 | @override | 452 | @override |
| 502 | - String get todayStressStatusHrvHigher => | ||
| 503 | - '· Higher HRV usually means better recovery'; | 453 | + String get todayStressStatusHrvHigher => '· Higher HRV usually means better recovery'; |
| 504 | 454 | ||
| 505 | @override | 455 | @override |
| 506 | - String get todayStressStatusHrvLower => | ||
| 507 | - '· Lower HRV may indicate fatigue, stress, or insufficient sleep'; | 456 | + String get todayStressStatusHrvLower => '· Lower HRV may indicate fatigue, stress, or insufficient sleep'; |
| 508 | 457 | ||
| 509 | @override | 458 | @override |
| 510 | - String get todayStressStatusHrvChangesFast => | ||
| 511 | - '· HRV changes quickly, making it useful for short-term body-state changes.'; | 459 | + String get todayStressStatusHrvChangesFast => '· HRV changes quickly, making it useful for short-term body-state changes.'; |
| 512 | 460 | ||
| 513 | @override | 461 | @override |
| 514 | - String get todayStressStatusAppWatchDifferenceTitle => | ||
| 515 | - 'How are stress statuses on the phone app and Apple Watch different?'; | 462 | + String get todayStressStatusAppWatchDifferenceTitle => 'How are stress statuses on the phone app and Apple Watch different?'; |
| 516 | 463 | ||
| 517 | @override | 464 | @override |
| 518 | - String get todayStressStatusAppWatchDifferenceApp => | ||
| 519 | - 'The phone app home page shows the day\'s overall stress status, combining HRV, resting heart rate, and overall trends.'; | 465 | + String get todayStressStatusAppWatchDifferenceApp => 'The phone app home page shows the day\'s overall stress status, combining HRV, resting heart rate, and overall trends.'; |
| 520 | 466 | ||
| 521 | @override | 467 | @override |
| 522 | - String get todayStressStatusAppWatchDifferenceWatch => | ||
| 523 | - 'Apple Watch shows the most recent real-time stress status, which is better for quickly checking your current body changes.'; | 468 | + String get todayStressStatusAppWatchDifferenceWatch => 'Apple Watch shows the most recent real-time stress status, which is better for quickly checking your current body changes.'; |
| 524 | 469 | ||
| 525 | @override | 470 | @override |
| 526 | - String get todayStressStatusWaitingDataTitle => | ||
| 527 | - 'Why does Waiting for data appear?'; | 471 | + String get todayStressStatusWaitingDataTitle => 'Why does Waiting for data appear?'; |
| 528 | 472 | ||
| 529 | @override | 473 | @override |
| 530 | - String get todayStressStatusWaitingDataDescription1 => | ||
| 531 | - 'Waiting for data means the current amount of collected data is not enough to generate a reliable stress assessment.'; | 474 | + String get todayStressStatusWaitingDataDescription1 => 'Waiting for data means the current amount of collected data is not enough to generate a reliable stress assessment.'; |
| 532 | 475 | ||
| 533 | @override | 476 | @override |
| 534 | - String get todayStressStatusWaitingDataDescription2 => | ||
| 535 | - 'Please keep wearing your Apple Watch and wait for the system to collect data automatically.'; | 477 | + String get todayStressStatusWaitingDataDescription2 => 'Please keep wearing your Apple Watch and wait for the system to collect data automatically.'; |
| 536 | 478 | ||
| 537 | @override | 479 | @override |
| 538 | - String get todayStressStatusWaitingDataReasonsIntro => | ||
| 539 | - 'Possible reasons include:'; | 480 | + String get todayStressStatusWaitingDataReasonsIntro => 'Possible reasons include:'; |
| 540 | 481 | ||
| 541 | @override | 482 | @override |
| 542 | String get todayStressStatusWaitingDataReason1 => '1. Not enough HRV samples'; | 483 | String get todayStressStatusWaitingDataReason1 => '1. Not enough HRV samples'; |
| 543 | 484 | ||
| 544 | @override | 485 | @override |
| 545 | - String get todayStressStatusWaitingDataReason2 => | ||
| 546 | - '2. Missing resting heart rate data'; | 486 | + String get todayStressStatusWaitingDataReason2 => '2. Missing resting heart rate data'; |
| 547 | 487 | ||
| 548 | @override | 488 | @override |
| 549 | - String get todayStressStatusWaitingDataReason3 => | ||
| 550 | - '3. Apple Watch has not been worn long enough'; | 489 | + String get todayStressStatusWaitingDataReason3 => '3. Apple Watch has not been worn long enough'; |
| 551 | 490 | ||
| 552 | @override | 491 | @override |
| 553 | - String get todayStressStatusWaitingDataReason4 => | ||
| 554 | - '4. Apple Health permissions are not enabled'; | 492 | + String get todayStressStatusWaitingDataReason4 => '4. Apple Health permissions are not enabled'; |
| 555 | 493 | ||
| 556 | @override | 494 | @override |
| 557 | - String get todayHrvPrincipleHowMeasureTitle => | ||
| 558 | - 'How does DoubleFeel measure stress status?'; | 495 | + String get todayHrvPrincipleHowMeasureTitle => 'How does DoubleFeel measure stress status?'; |
| 559 | 496 | ||
| 560 | @override | 497 | @override |
| 561 | - String get todayHrvPrincipleHowMeasureDescription1 => | ||
| 562 | - 'When you wear Apple Watch normally, the system automatically collects your heart rate data and syncs it to Apple Health.'; | 498 | + String get todayHrvPrincipleHowMeasureDescription1 => 'When you wear Apple Watch normally, the system automatically collects your heart rate data and syncs it to Apple Health.'; |
| 563 | 499 | ||
| 564 | @override | 500 | @override |
| 565 | - String get todayHrvPrincipleHowMeasureDescription2 => | ||
| 566 | - 'DoubleFeel calculates HRV (heart rate variability) indicators based on this data to assess your body stress and recovery state.'; | 501 | + String get todayHrvPrincipleHowMeasureDescription2 => 'DoubleFeel calculates HRV (heart rate variability) indicators based on this data to assess your body stress and recovery state.'; |
| 567 | 502 | ||
| 568 | @override | 503 | @override |
| 569 | - String get todayHrvPrincipleHowMeasureDescription3 => | ||
| 570 | - 'HRV is sensitive to stress, fatigue, sleep, emotions, and recovery, so it helps us notice body-state changes earlier.'; | 504 | + String get todayHrvPrincipleHowMeasureDescription3 => 'HRV is sensitive to stress, fatigue, sleep, emotions, and recovery, so it helps us notice body-state changes earlier.'; |
| 571 | 505 | ||
| 572 | @override | 506 | @override |
| 573 | - String get todayHrvPrincipleHowMeasureDescription4 => | ||
| 574 | - '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.'; | 507 | + 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.'; |
| 575 | 508 | ||
| 576 | @override | 509 | @override |
| 577 | String get todayRealtimeStressWhatTitle => 'What is real-time stress?'; | 510 | String get todayRealtimeStressWhatTitle => 'What is real-time stress?'; |
| 578 | 511 | ||
| 579 | @override | 512 | @override |
| 580 | - String get todayRealtimeStressWhatDescription1 => | ||
| 581 | - '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.'; | 513 | + 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.'; |
| 582 | 514 | ||
| 583 | @override | 515 | @override |
| 584 | - String get todayRealtimeStressWhatDescription2 => | ||
| 585 | - 'A higher stress value means your body state is deviating more from your usual baseline and may reflect fatigue, insufficient recovery, or high stress.'; | 516 | + 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.'; |
| 586 | 517 | ||
| 587 | @override | 518 | @override |
| 588 | - String get todayRealtimeStressWhatDescription3 => | ||
| 589 | - 'It helps you notice body changes faster and adjust rest, exercise, and daily rhythm in time.'; | 519 | + String get todayRealtimeStressWhatDescription3 => 'It helps you notice body changes faster and adjust rest, exercise, and daily rhythm in time.'; |
| 590 | 520 | ||
| 591 | @override | 521 | @override |
| 592 | - String get todayRealtimeStressDivisionTitle => | ||
| 593 | - 'How is real-time stress divided?'; | 522 | + String get todayRealtimeStressDivisionTitle => 'How is real-time stress divided?'; |
| 594 | 523 | ||
| 595 | @override | 524 | @override |
| 596 | - String get todayRealtimeStressDivisionIntro => | ||
| 597 | - 'Real-time stress is shown as a percentage:'; | 525 | + String get todayRealtimeStressDivisionIntro => 'Real-time stress is shown as a percentage:'; |
| 598 | 526 | ||
| 599 | @override | 527 | @override |
| 600 | String get todayRealtimeStressExcellentRange => 'Excellent: 1%-20%'; | 528 | String get todayRealtimeStressExcellentRange => 'Excellent: 1%-20%'; |
| @@ -609,103 +537,79 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -609,103 +537,79 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 609 | String get todayRealtimeStressOverloadRange => 'Stress overload: 81%-100%'; | 537 | String get todayRealtimeStressOverloadRange => 'Stress overload: 81%-100%'; |
| 610 | 538 | ||
| 611 | @override | 539 | @override |
| 612 | - String get todayRealtimeStressExcellentDescription => | ||
| 613 | - 'Your recovery state is good and you are generally relaxed.'; | 540 | + String get todayRealtimeStressExcellentDescription => 'Your recovery state is good and you are generally relaxed.'; |
| 614 | 541 | ||
| 615 | @override | 542 | @override |
| 616 | - String get todayRealtimeStressNormalDescription => | ||
| 617 | - 'Your body is within the normal fluctuation range.'; | 543 | + String get todayRealtimeStressNormalDescription => 'Your body is within the normal fluctuation range.'; |
| 618 | 544 | ||
| 619 | @override | 545 | @override |
| 620 | - String get todayRealtimeStressCautionDescription => | ||
| 621 | - 'Your body may be accumulating stress and needs proper rest and recovery.'; | 546 | + String get todayRealtimeStressCautionDescription => 'Your body may be accumulating stress and needs proper rest and recovery.'; |
| 622 | 547 | ||
| 623 | @override | 548 | @override |
| 624 | - String get todayRealtimeStressOverloadDescription => | ||
| 625 | - 'Your body stress is clearly high. Reduce load and pay attention to sleep and recovery.'; | 549 | + String get todayRealtimeStressOverloadDescription => 'Your body stress is clearly high. Reduce load and pay attention to sleep and recovery.'; |
| 626 | 550 | ||
| 627 | @override | 551 | @override |
| 628 | - String get todayRealtimeStressDivisionBaseline => | ||
| 629 | - 'These ranges are adjusted dynamically based on your personal baseline and should not be directly compared between users.'; | 552 | + String get todayRealtimeStressDivisionBaseline => 'These ranges are adjusted dynamically based on your personal baseline and should not be directly compared between users.'; |
| 630 | 553 | ||
| 631 | @override | 554 | @override |
| 632 | - String get todayRealtimeStressDivisionAwake => | ||
| 633 | - 'Real-time stress mainly reflects body stress changes while awake.'; | 555 | + String get todayRealtimeStressDivisionAwake => 'Real-time stress mainly reflects body stress changes while awake.'; |
| 634 | 556 | ||
| 635 | @override | 557 | @override |
| 636 | - String get todayRealtimeStressLowBetterTitle => | ||
| 637 | - 'Is lower real-time stress always better?'; | 558 | + String get todayRealtimeStressLowBetterTitle => 'Is lower real-time stress always better?'; |
| 638 | 559 | ||
| 639 | @override | 560 | @override |
| 640 | String get todayRealtimeStressLowBetterNo => 'Not necessarily.'; | 561 | String get todayRealtimeStressLowBetterNo => 'Not necessarily.'; |
| 641 | 562 | ||
| 642 | @override | 563 | @override |
| 643 | - String get todayRealtimeStressLowBetterType => | ||
| 644 | - 'Body stress can be normal or abnormal.'; | 564 | + String get todayRealtimeStressLowBetterType => 'Body stress can be normal or abnormal.'; |
| 645 | 565 | ||
| 646 | @override | 566 | @override |
| 647 | - String get todayRealtimeStressLowBetterExample => | ||
| 648 | - '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.'; | 567 | + 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.'; |
| 649 | 568 | ||
| 650 | @override | 569 | @override |
| 651 | - String get todayRealtimeStressLowBetterHighStress => | ||
| 652 | - '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.'; | 570 | + 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.'; |
| 653 | 571 | ||
| 654 | @override | 572 | @override |
| 655 | - String get todayRealtimeStressLowBetterTrend => | ||
| 656 | - 'DoubleFeel focuses more on your long-term trend than on a single fluctuation.'; | 573 | + String get todayRealtimeStressLowBetterTrend => 'DoubleFeel focuses more on your long-term trend than on a single fluctuation.'; |
| 657 | 574 | ||
| 658 | @override | 575 | @override |
| 659 | - String get todayRealtimeStressScenarioTitle => | ||
| 660 | - 'When should HRV and real-time stress be used?'; | 576 | + String get todayRealtimeStressScenarioTitle => 'When should HRV and real-time stress be used?'; |
| 661 | 577 | ||
| 662 | @override | 578 | @override |
| 663 | - String get todayRealtimeStressScenarioHrvDefault => | ||
| 664 | - 'With Apple Watch default settings, HRV updates every 2-5 hours.'; | 579 | + String get todayRealtimeStressScenarioHrvDefault => 'With Apple Watch default settings, HRV updates every 2-5 hours.'; |
| 665 | 580 | ||
| 666 | @override | 581 | @override |
| 667 | - String get todayRealtimeStressScenarioRegionLimit => | ||
| 668 | - '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.'; | 582 | + 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.'; |
| 669 | 583 | ||
| 670 | @override | 584 | @override |
| 671 | - String get todayRealtimeStressScenarioIntro => | ||
| 672 | - 'To address the long interval between HRV updates, DoubleFeel designed real-time stress:'; | 585 | + String get todayRealtimeStressScenarioIntro => 'To address the long interval between HRV updates, DoubleFeel designed real-time stress:'; |
| 673 | 586 | ||
| 674 | @override | 587 | @override |
| 675 | - String get todayRealtimeStressScenarioUpdateEvery6Min => | ||
| 676 | - '· Real-time stress updates every 6 minutes'; | 588 | + String get todayRealtimeStressScenarioUpdateEvery6Min => '· Real-time stress updates every 6 minutes'; |
| 677 | 589 | ||
| 678 | @override | 590 | @override |
| 679 | - String get todayRealtimeStressScenarioTimely => | ||
| 680 | - '· It can reflect body-state changes more promptly'; | 591 | + String get todayRealtimeStressScenarioTimely => '· It can reflect body-state changes more promptly'; |
| 681 | 592 | ||
| 682 | @override | 593 | @override |
| 683 | - String get todayRealtimeStressScenarioConsistentTrend => | ||
| 684 | - '· In most cases, the real-time stress trend is consistent with the HRV trend'; | 594 | + String get todayRealtimeStressScenarioConsistentTrend => '· In most cases, the real-time stress trend is consistent with the HRV trend'; |
| 685 | 595 | ||
| 686 | @override | 596 | @override |
| 687 | - String get todayRealtimeStressScenarioSummary => | ||
| 688 | - 'This lets users see long-term HRV trends while also using real-time stress as a short-term body-state reference.'; | 597 | + String get todayRealtimeStressScenarioSummary => 'This lets users see long-term HRV trends while also using real-time stress as a short-term body-state reference.'; |
| 689 | 598 | ||
| 690 | @override | 599 | @override |
| 691 | - String get todayFaqNoDataTitle => | ||
| 692 | - 'What if the app or watch face has no data?'; | 600 | + String get todayFaqNoDataTitle => 'What if the app or watch face has no data?'; |
| 693 | 601 | ||
| 694 | @override | 602 | @override |
| 695 | - String get todayFaqNoDataDescription1 => | ||
| 696 | - '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.'; | 603 | + 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.'; |
| 697 | 604 | ||
| 698 | @override | 605 | @override |
| 699 | - String get todayFaqNoDataDescription2 => | ||
| 700 | - '2. Confirm all permissions are enabled: iPhone Health > Sharing > Apps > DoubleFeel > Turn On All Permissions.'; | 606 | + String get todayFaqNoDataDescription2 => '2. Confirm all permissions are enabled: iPhone Health > Sharing > Apps > DoubleFeel > Turn On All Permissions.'; |
| 701 | 607 | ||
| 702 | @override | 608 | @override |
| 703 | - String get todayFaqNoDataDescription3 => | ||
| 704 | - '3. Confirm the device is not in Low Power Mode, low battery, or worn too loosely, as these can affect data collection.'; | 609 | + 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.'; |
| 705 | 610 | ||
| 706 | @override | 611 | @override |
| 707 | - String get todayFaqContactPrefix => | ||
| 708 | - 'If everything above is correct, you can '; | 612 | + String get todayFaqContactPrefix => 'If everything above is correct, you can '; |
| 709 | 613 | ||
| 710 | @override | 614 | @override |
| 711 | String get todayFaqContactAction => 'contact us'; | 615 | String get todayFaqContactAction => 'contact us'; |
| @@ -714,90 +618,70 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -714,90 +618,70 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 714 | String get todayFaqContactSuffix => '.'; | 618 | String get todayFaqContactSuffix => '.'; |
| 715 | 619 | ||
| 716 | @override | 620 | @override |
| 717 | - String get todayFaqWatchNoNotificationTitle => | ||
| 718 | - 'Watch cannot receive status notifications?'; | 621 | + String get todayFaqWatchNoNotificationTitle => 'Watch cannot receive status notifications?'; |
| 719 | 622 | ||
| 720 | @override | 623 | @override |
| 721 | - String get todayFaqWatchNoNotificationDescription1 => | ||
| 722 | - '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.'; | 624 | + 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.'; |
| 723 | 625 | ||
| 724 | @override | 626 | @override |
| 725 | - String get todayFaqWatchNoNotificationDescription2 => | ||
| 726 | - 'If stress data displays and updates normally but your watch does not receive notifications, try the following:'; | 627 | + String get todayFaqWatchNoNotificationDescription2 => 'If stress data displays and updates normally but your watch does not receive notifications, try the following:'; |
| 727 | 628 | ||
| 728 | @override | 629 | @override |
| 729 | - String get todayFaqWatchNoNotificationCheckPhoneNotification => | ||
| 730 | - '1. Check whether iPhone notifications are enabled (Settings > DoubleFeel > Notifications).'; | 630 | + String get todayFaqWatchNoNotificationCheckPhoneNotification => '1. Check whether iPhone notifications are enabled (Settings > DoubleFeel > Notifications).'; |
| 731 | 631 | ||
| 732 | @override | 632 | @override |
| 733 | - String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => | ||
| 734 | - '2. Check whether iPhone Background App Refresh is enabled (Settings > DoubleFeel > Background App Refresh).'; | 633 | + String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => '2. Check whether iPhone Background App Refresh is enabled (Settings > DoubleFeel > Background App Refresh).'; |
| 735 | 634 | ||
| 736 | @override | 635 | @override |
| 737 | - String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => | ||
| 738 | - '3. Check whether Apple Watch Background App Refresh is enabled (Settings > General > Background App Refresh, and make sure DoubleFeel is enabled).'; | 636 | + String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => '3. Check whether Apple Watch Background App Refresh is enabled (Settings > General > Background App Refresh, and make sure DoubleFeel is enabled).'; |
| 739 | 637 | ||
| 740 | @override | 638 | @override |
| 741 | - String get todayFaqWatchNoNotificationCheckModes => | ||
| 742 | - '4. Make sure Low Power, Focus, Do Not Disturb, Theater, Sleep, and similar modes are off.'; | 639 | + String get todayFaqWatchNoNotificationCheckModes => '4. Make sure Low Power, Focus, Do Not Disturb, Theater, Sleep, and similar modes are off.'; |
| 743 | 640 | ||
| 744 | @override | 641 | @override |
| 745 | - String get todayFaqWatchNoNotificationReinstall => | ||
| 746 | - '5. Reinstall DoubleFeel and restart Apple Watch and iPhone.'; | 642 | + String get todayFaqWatchNoNotificationReinstall => '5. Reinstall DoubleFeel and restart Apple Watch and iPhone.'; |
| 747 | 643 | ||
| 748 | @override | 644 | @override |
| 749 | - String get todayFaqWatchFaceDelayTitle => | ||
| 750 | - 'Watch face data not updating or delayed?'; | 645 | + String get todayFaqWatchFaceDelayTitle => 'Watch face data not updating or delayed?'; |
| 751 | 646 | ||
| 752 | @override | 647 | @override |
| 753 | - String get todayFaqWatchFaceDelayDescription1 => | ||
| 754 | - '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.'; | 648 | + 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.'; |
| 755 | 649 | ||
| 756 | @override | 650 | @override |
| 757 | - String get todayFaqWatchFaceDelayIfOverOneHour => | ||
| 758 | - 'If the phone data refreshes but the watch face still has not updated after more than 1 hour:'; | 651 | + String get todayFaqWatchFaceDelayIfOverOneHour => 'If the phone data refreshes but the watch face still has not updated after more than 1 hour:'; |
| 759 | 652 | ||
| 760 | @override | 653 | @override |
| 761 | - String get todayFaqWatchFaceDelayOpenWatchApp => | ||
| 762 | - 'Manually open DoubleFeel on Apple Watch and wait about 1 minute.'; | 654 | + String get todayFaqWatchFaceDelayOpenWatchApp => 'Manually open DoubleFeel on Apple Watch and wait about 1 minute.'; |
| 763 | 655 | ||
| 764 | @override | 656 | @override |
| 765 | String get todayFaqWatchFaceDelayIfStill => 'If it still does not update:'; | 657 | String get todayFaqWatchFaceDelayIfStill => 'If it still does not update:'; |
| 766 | 658 | ||
| 767 | @override | 659 | @override |
| 768 | - String get todayFaqWatchFaceDelayRestartApp => | ||
| 769 | - 'Close the DoubleFeel background process and restart it.'; | 660 | + String get todayFaqWatchFaceDelayRestartApp => 'Close the DoubleFeel background process and restart it.'; |
| 770 | 661 | ||
| 771 | @override | 662 | @override |
| 772 | - String get todayFaqWatchFaceDelayCheckIntro => | ||
| 773 | - 'If it still does not work, check:'; | 663 | + String get todayFaqWatchFaceDelayCheckIntro => 'If it still does not work, check:'; |
| 774 | 664 | ||
| 775 | @override | 665 | @override |
| 776 | - String get todayFaqWatchFaceDelayCheckData => | ||
| 777 | - '· Whether both phone and watch apps can show HRV data normally.'; | 666 | + String get todayFaqWatchFaceDelayCheckData => '· Whether both phone and watch apps can show HRV data normally.'; |
| 778 | 667 | ||
| 779 | @override | 668 | @override |
| 780 | - String get todayFaqWatchFaceDelayCheckPhoneHealth => | ||
| 781 | - '· Make sure all permissions are enabled on iPhone: iOS Settings > Privacy & Security > Health > DoubleFeel.'; | 669 | + String get todayFaqWatchFaceDelayCheckPhoneHealth => '· Make sure all permissions are enabled on iPhone: iOS Settings > Privacy & Security > Health > DoubleFeel.'; |
| 782 | 670 | ||
| 783 | @override | 671 | @override |
| 784 | - String get todayFaqWatchFaceDelayCheckWatchHealth => | ||
| 785 | - '· Make sure all permissions are enabled on Apple Watch: Settings > Health > Data Sources & Access > DoubleFeel.'; | 672 | + String get todayFaqWatchFaceDelayCheckWatchHealth => '· Make sure all permissions are enabled on Apple Watch: Settings > Health > Data Sources & Access > DoubleFeel.'; |
| 786 | 673 | ||
| 787 | @override | 674 | @override |
| 788 | - String get todayFaqWatchFaceDelayCheckBackgroundRefresh => | ||
| 789 | - '· Confirm DoubleFeel is enabled in Apple Watch > Settings > General > Background App Refresh.'; | 675 | + String get todayFaqWatchFaceDelayCheckBackgroundRefresh => '· Confirm DoubleFeel is enabled in Apple Watch > Settings > General > Background App Refresh.'; |
| 790 | 676 | ||
| 791 | @override | 677 | @override |
| 792 | - String get todayFaqWatchFaceDelayRestartWatch => | ||
| 793 | - '· If it still does not refresh automatically, restart Apple Watch. Long runtimes or high background usage may cause watch face updates to pause.'; | 678 | + 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.'; |
| 794 | 679 | ||
| 795 | @override | 680 | @override |
| 796 | String get todayFaqWatchFaceBlackScreenTitle => 'Watch face turns black?'; | 681 | String get todayFaqWatchFaceBlackScreenTitle => 'Watch face turns black?'; |
| 797 | 682 | ||
| 798 | @override | 683 | @override |
| 799 | - String get todayFaqWatchFaceBlackScreenDescription => | ||
| 800 | - '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.'; | 684 | + 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.'; |
| 801 | 685 | ||
| 802 | @override | 686 | @override |
| 803 | String get today => 'Today'; | 687 | String get today => 'Today'; |
| @@ -815,19 +699,16 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -815,19 +699,16 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 815 | String get allPlans => 'All Plans'; | 699 | String get allPlans => 'All Plans'; |
| 816 | 700 | ||
| 817 | @override | 701 | @override |
| 818 | - String get clickToAddTheHrvThemedWatchFace => | ||
| 819 | - 'Click to add the HRV-themed watch face'; | 702 | + String get clickToAddTheHrvThemedWatchFace => 'Click to add the HRV-themed watch face'; |
| 820 | 703 | ||
| 821 | @override | 704 | @override |
| 822 | - String get stayOnTopOfYourHealthFluctuations => | ||
| 823 | - 'Stay on top of your health fluctuations'; | 705 | + String get stayOnTopOfYourHealthFluctuations => 'Stay on top of your health fluctuations'; |
| 824 | 706 | ||
| 825 | @override | 707 | @override |
| 826 | String get addACloseContact => 'Add a close contact'; | 708 | String get addACloseContact => 'Add a close contact'; |
| 827 | 709 | ||
| 828 | @override | 710 | @override |
| 829 | - String get oneMorePersonLookingOutForYourHealth => | ||
| 830 | - 'One more person looking out for your health'; | 711 | + String get oneMorePersonLookingOutForYourHealth => 'One more person looking out for your health'; |
| 831 | 712 | ||
| 832 | @override | 713 | @override |
| 833 | String get addAFriend => 'Add a friend'; | 714 | String get addAFriend => 'Add a friend'; |
| @@ -884,8 +765,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -884,8 +765,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 884 | String get questionsAndFeedback => 'Questions and Feedback'; | 765 | String get questionsAndFeedback => 'Questions and Feedback'; |
| 885 | 766 | ||
| 886 | @override | 767 | @override |
| 887 | - String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => | ||
| 888 | - 'If you would like us to reply, please provide your email address'; | 768 | + String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => 'If you would like us to reply, please provide your email address'; |
| 889 | 769 | ||
| 890 | @override | 770 | @override |
| 891 | String get uploadProof => 'Upload Proof'; | 771 | String get uploadProof => 'Upload Proof'; |
| @@ -894,8 +774,7 @@ class AppLocalizationsEn extends AppLocalizations { | @@ -894,8 +774,7 @@ class AppLocalizationsEn extends AppLocalizations { | ||
| 894 | String get frequentlyAskedQuestions => 'Frequently Asked Questions'; | 774 | String get frequentlyAskedQuestions => 'Frequently Asked Questions'; |
| 895 | 775 | ||
| 896 | @override | 776 | @override |
| 897 | - String get areYouSureYouWantToDeleteYourAccount => | ||
| 898 | - 'Are you sure you want to delete your account?'; | 777 | + String get areYouSureYouWantToDeleteYourAccount => 'Are you sure you want to delete your account?'; |
| 899 | 778 | ||
| 900 | @override | 779 | @override |
| 901 | String get accountSettings => 'Account Settings'; | 780 | String get accountSettings => 'Account Settings'; |
| 1 | -// ignore: unused_import | ||
| 2 | -import 'package:intl/intl.dart' as intl; | ||
| 3 | import 'app_localizations.dart'; | 1 | import 'app_localizations.dart'; |
| 4 | 2 | ||
| 5 | // ignore_for_file: type=lint | 3 | // ignore_for_file: type=lint |
| @@ -72,8 +70,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -72,8 +70,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 72 | String get onboardingIntroTitle => 'DoubleFeel 是专为 Apple Watch 打造的健康陪伴app'; | 70 | String get onboardingIntroTitle => 'DoubleFeel 是专为 Apple Watch 打造的健康陪伴app'; |
| 73 | 71 | ||
| 74 | @override | 72 | @override |
| 75 | - String get onboardingIntroBody => | ||
| 76 | - '我们希望可以帮助你\n<em>关注自己的身心变化,也让爱你的人</em>及时发现你的<em>疲惫与需要</em>'; | 73 | + String get onboardingIntroBody => '我们希望可以帮助你\n<em>关注自己的身心变化,也让爱你的人</em>及时发现你的<em>疲惫与需要</em>'; |
| 77 | 74 | ||
| 78 | @override | 75 | @override |
| 79 | String get onboardingStateQuestion => '请问以下哪些描述,经常发生在你身上?'; | 76 | String get onboardingStateQuestion => '请问以下哪些描述,经常发生在你身上?'; |
| @@ -163,8 +160,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -163,8 +160,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 163 | String get onboardingHrvSubtitle => '它能帮助我们衡量整体的压力和健康状态'; | 160 | String get onboardingHrvSubtitle => '它能帮助我们衡量整体的压力和健康状态'; |
| 164 | 161 | ||
| 165 | @override | 162 | @override |
| 166 | - String get onboardingHrvDescription => | ||
| 167 | - '心率变异性(HRV, Heart Rate Variability)即心跳之间间隔时间的微小变化,反映了自主神经系统活动和身体对压力的反应能力'; | 163 | + String get onboardingHrvDescription => '心率变异性(HRV, Heart Rate Variability)即心跳之间间隔时间的微小变化,反映了自主神经系统活动和身体对压力的反应能力'; |
| 168 | 164 | ||
| 169 | @override | 165 | @override |
| 170 | String get onboardingTellMeMore => '展开说说'; | 166 | String get onboardingTellMeMore => '展开说说'; |
| @@ -188,12 +184,10 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -188,12 +184,10 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 188 | String get onboardingHealthPermissionTitle => '允许访问健康数据'; | 184 | String get onboardingHealthPermissionTitle => '允许访问健康数据'; |
| 189 | 185 | ||
| 190 | @override | 186 | @override |
| 191 | - String get onboardingHealthPermissionBody => | ||
| 192 | - 'DoubleFeel需要连接健康穿戴设备数据,以提醒、统计压力时刻、提供建议。'; | 187 | + String get onboardingHealthPermissionBody => 'DoubleFeel需要连接健康穿戴设备数据,以提醒、统计压力时刻、提供建议。'; |
| 193 | 188 | ||
| 194 | @override | 189 | @override |
| 195 | - String get onboardingHealthPermissionPrivacy => | ||
| 196 | - '请放心,你的健康数据只会存储在本地,我们不上传任何相关数据。'; | 190 | + String get onboardingHealthPermissionPrivacy => '请放心,你的健康数据只会存储在本地,我们不上传任何相关数据。'; |
| 197 | 191 | ||
| 198 | @override | 192 | @override |
| 199 | String get onboardingNotificationTitle => '开启通知'; | 193 | String get onboardingNotificationTitle => '开启通知'; |
| @@ -202,8 +196,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -202,8 +196,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 202 | String get onboardingNotificationSubtitle => '及时了解身体每一次异动'; | 196 | String get onboardingNotificationSubtitle => '及时了解身体每一次异动'; |
| 203 | 197 | ||
| 204 | @override | 198 | @override |
| 205 | - String get onboardingNotificationBody => | ||
| 206 | - 'AppleWatch数据更新后会及时提醒你,帮助你及时行动,改善压力状态'; | 199 | + String get onboardingNotificationBody => 'AppleWatch数据更新后会及时提醒你,帮助你及时行动,改善压力状态'; |
| 207 | 200 | ||
| 208 | @override | 201 | @override |
| 209 | String get onboardingMemberTitle => '获得年度会员优惠'; | 202 | String get onboardingMemberTitle => '获得年度会员优惠'; |
| @@ -227,9 +220,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -227,9 +220,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 227 | String get healthCompanionIsNowAvailable => '健康陪伴已开启'; | 220 | String get healthCompanionIsNowAvailable => '健康陪伴已开启'; |
| 228 | 221 | ||
| 229 | @override | 222 | @override |
| 230 | - String | ||
| 231 | - get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired => | ||
| 232 | - '你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。'; | 223 | + String get youCanNowViewEachOtherSHrvStressLevelsAndSleepPatternsAndReachOutToCheckInWhenTheOtherPersonSeemsTired => '你们现在可以查看彼此的 HRV、压力与睡眠变化,并在对方疲惫时及时送上关心。'; |
| 233 | 224 | ||
| 234 | @override | 225 | @override |
| 235 | String get bindPartnerTitle => '添加亲密联系人\n多一个人关注你的健康'; | 226 | String get bindPartnerTitle => '添加亲密联系人\n多一个人关注你的健康'; |
| @@ -342,8 +333,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -342,8 +333,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 342 | String get todayHealthDataAuthTitle => '无法获取心率健康数据'; | 333 | String get todayHealthDataAuthTitle => '无法获取心率健康数据'; |
| 343 | 334 | ||
| 344 | @override | 335 | @override |
| 345 | - String get todayHealthDataAuthDescription => | ||
| 346 | - 'DoubleFeel 需要授权访问你的健康数据,才能提供压力提醒、实时压力统计和健康建议;否则应用功能可能无法正常使用。请放心,你的健康数据仅存储在本地,不会上传到任何服务器。'; | 336 | + String get todayHealthDataAuthDescription => 'DoubleFeel 需要授权访问你的健康数据,才能提供压力提醒、实时压力统计和健康建议;否则应用功能可能无法正常使用。请放心,你的健康数据仅存储在本地,不会上传到任何服务器。'; |
| 347 | 337 | ||
| 348 | @override | 338 | @override |
| 349 | String get todayHealthDataAuthAction => '授权访问健康数据'; | 339 | String get todayHealthDataAuthAction => '授权访问健康数据'; |
| @@ -370,8 +360,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -370,8 +360,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 370 | String get todayFaqLinkWatchNoStatusNotification => '手表为什么无法收到状态通知?'; | 360 | String get todayFaqLinkWatchNoStatusNotification => '手表为什么无法收到状态通知?'; |
| 371 | 361 | ||
| 372 | @override | 362 | @override |
| 373 | - String get todayFaqLinkWatchNoStatusAndInteractionNotification => | ||
| 374 | - '手表为什么无法收到状态和互动通知?'; | 363 | + String get todayFaqLinkWatchNoStatusAndInteractionNotification => '手表为什么无法收到状态和互动通知?'; |
| 375 | 364 | ||
| 376 | @override | 365 | @override |
| 377 | String get todayFaqLinkWatchFaceDataDelay => '手表表盘数据不更新或者有延迟?'; | 366 | String get todayFaqLinkWatchFaceDataDelay => '手表表盘数据不更新或者有延迟?'; |
| @@ -404,27 +393,22 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -404,27 +393,22 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 404 | String get todayStressStatusInsufficientData => '数据不足'; | 393 | String get todayStressStatusInsufficientData => '数据不足'; |
| 405 | 394 | ||
| 406 | @override | 395 | @override |
| 407 | - String get todayStressStatusOverloadDescription => | ||
| 408 | - '当前 HRV 明显低于你的长期平均水平,可能意味着身体疲劳、压力过高或恢复不足。建议及时休息。'; | 396 | + String get todayStressStatusOverloadDescription => '当前 HRV 明显低于你的长期平均水平,可能意味着身体疲劳、压力过高或恢复不足。建议及时休息。'; |
| 409 | 397 | ||
| 410 | @override | 398 | @override |
| 411 | - String get todayStressStatusCautionDescription => | ||
| 412 | - '当前 HRV 低于正常范围,身体可能正在积累压力,需要注意作息与恢复。'; | 399 | + String get todayStressStatusCautionDescription => '当前 HRV 低于正常范围,身体可能正在积累压力,需要注意作息与恢复。'; |
| 413 | 400 | ||
| 414 | @override | 401 | @override |
| 415 | String get todayStressStatusNormalDescription => '当前身体状态处于你的正常波动范围内。'; | 402 | String get todayStressStatusNormalDescription => '当前身体状态处于你的正常波动范围内。'; |
| 416 | 403 | ||
| 417 | @override | 404 | @override |
| 418 | - String get todayStressStatusExcellentDescription => | ||
| 419 | - '当前 HRV 高于近期平均水平,代表身体恢复与整体状态较好。'; | 405 | + String get todayStressStatusExcellentDescription => '当前 HRV 高于近期平均水平,代表身体恢复与整体状态较好。'; |
| 420 | 406 | ||
| 421 | @override | 407 | @override |
| 422 | - String get todayStressStatusInsufficientDataDescription => | ||
| 423 | - '当前可用数据不足,暂时无法准确判断压力状态。'; | 408 | + String get todayStressStatusInsufficientDataDescription => '当前可用数据不足,暂时无法准确判断压力状态。'; |
| 424 | 409 | ||
| 425 | @override | 410 | @override |
| 426 | - String get todayHrvMeasurementIntro => | ||
| 427 | - 'AppleWatch默认每2-5小时测量一次HRV,如果你希望立即手动进行测量,可以参考以下方法:'; | 411 | + String get todayHrvMeasurementIntro => 'AppleWatch默认每2-5小时测量一次HRV,如果你希望立即手动进行测量,可以参考以下方法:'; |
| 428 | 412 | ||
| 429 | @override | 413 | @override |
| 430 | String get todayHrvMeasurementStep1 => '1、戴紧AppleWatch,坐下来,保持心境平和'; | 414 | String get todayHrvMeasurementStep1 => '1、戴紧AppleWatch,坐下来,保持心境平和'; |
| @@ -442,8 +426,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -442,8 +426,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 442 | String get todayHrvMeasurementStep5 => '5、等待一分钟左右,StressWatch会收到你的数据并展示'; | 426 | String get todayHrvMeasurementStep5 => '5、等待一分钟左右,StressWatch会收到你的数据并展示'; |
| 443 | 427 | ||
| 444 | @override | 428 | @override |
| 445 | - String get todayHrvMeasurementHint => | ||
| 446 | - '提示:数据源来自AppleWatch,在测量之后可能存在延迟或是数据未能同步的情况。如若出现上述情况,请重新测量并等待数据读取。'; | 429 | + String get todayHrvMeasurementHint => '提示:数据源来自AppleWatch,在测量之后可能存在延迟或是数据未能同步的情况。如若出现上述情况,请重新测量并等待数据读取。'; |
| 447 | 430 | ||
| 448 | @override | 431 | @override |
| 449 | String get todayHrvMeasurementWarning => '注意:需打开健康里的权限,同时关闭省电模式。'; | 432 | String get todayHrvMeasurementWarning => '注意:需打开健康里的权限,同时关闭省电模式。'; |
| @@ -452,12 +435,10 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -452,12 +435,10 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 452 | String get todayStressStatusWhatTitle => '什么是综合压力状态?'; | 435 | String get todayStressStatusWhatTitle => '什么是综合压力状态?'; |
| 453 | 436 | ||
| 454 | @override | 437 | @override |
| 455 | - String get todayStressStatusWhatDescription1 => | ||
| 456 | - 'DoubleFeel 会结合你过去 30 天的 HRV(心率变异性)、静息心率以及当天的身体状态变化,综合评估你的整体压力水平。'; | 438 | + String get todayStressStatusWhatDescription1 => 'DoubleFeel 会结合你过去 30 天的 HRV(心率变异性)、静息心率以及当天的身体状态变化,综合评估你的整体压力水平。'; |
| 457 | 439 | ||
| 458 | @override | 440 | @override |
| 459 | - String get todayStressStatusWhatDescription2 => | ||
| 460 | - '由于 HRV 会随着情绪、运动、睡眠和疲劳不断波动,单次数据参考意义有限,因此我们更建议关注一整天的综合压力状态,让结果更稳定、更有参考价值。综合压力不仅能帮助你了解自己的身体状态,也能让亲密联系人更及时地关注你的变化。'; | 441 | + String get todayStressStatusWhatDescription2 => '由于 HRV 会随着情绪、运动、睡眠和疲劳不断波动,单次数据参考意义有限,因此我们更建议关注一整天的综合压力状态,让结果更稳定、更有参考价值。综合压力不仅能帮助你了解自己的身体状态,也能让亲密联系人更及时地关注你的变化。'; |
| 461 | 442 | ||
| 462 | @override | 443 | @override |
| 463 | String get todayStressStatusWhyHrvTitle => '为什么要参考 HRV(心率变异性)?'; | 444 | String get todayStressStatusWhyHrvTitle => '为什么要参考 HRV(心率变异性)?'; |
| @@ -478,27 +459,22 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -478,27 +459,22 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 478 | String get todayStressStatusHrvChangesFast => '· HRV 变化较快,更适合观察短时间内的身体状态变化。'; | 459 | String get todayStressStatusHrvChangesFast => '· HRV 变化较快,更适合观察短时间内的身体状态变化。'; |
| 479 | 460 | ||
| 480 | @override | 461 | @override |
| 481 | - String get todayStressStatusAppWatchDifferenceTitle => | ||
| 482 | - '手机 App 与 Apple Watch 显示的压力状态有什么区别?'; | 462 | + String get todayStressStatusAppWatchDifferenceTitle => '手机 App 与 Apple Watch 显示的压力状态有什么区别?'; |
| 483 | 463 | ||
| 484 | @override | 464 | @override |
| 485 | - String get todayStressStatusAppWatchDifferenceApp => | ||
| 486 | - '手机 App 首页显示的是当天的综合压力状态,会综合分析 HRV、静息心率与整体趋势。'; | 465 | + String get todayStressStatusAppWatchDifferenceApp => '手机 App 首页显示的是当天的综合压力状态,会综合分析 HRV、静息心率与整体趋势。'; |
| 487 | 466 | ||
| 488 | @override | 467 | @override |
| 489 | - String get todayStressStatusAppWatchDifferenceWatch => | ||
| 490 | - 'Apple Watch 显示的是最近一次的实时压力状态,更适合快速查看当前身体变化。'; | 468 | + String get todayStressStatusAppWatchDifferenceWatch => 'Apple Watch 显示的是最近一次的实时压力状态,更适合快速查看当前身体变化。'; |
| 491 | 469 | ||
| 492 | @override | 470 | @override |
| 493 | String get todayStressStatusWaitingDataTitle => '为什么会出现“等待数据”?'; | 471 | String get todayStressStatusWaitingDataTitle => '为什么会出现“等待数据”?'; |
| 494 | 472 | ||
| 495 | @override | 473 | @override |
| 496 | - String get todayStressStatusWaitingDataDescription1 => | ||
| 497 | - '“等待数据”代表当前采集到的数据量不足,暂时无法生成可靠的压力评估。'; | 474 | + String get todayStressStatusWaitingDataDescription1 => '“等待数据”代表当前采集到的数据量不足,暂时无法生成可靠的压力评估。'; |
| 498 | 475 | ||
| 499 | @override | 476 | @override |
| 500 | - String get todayStressStatusWaitingDataDescription2 => | ||
| 501 | - '请继续佩戴 Apple Watch,等待系统自动采集数据。'; | 477 | + String get todayStressStatusWaitingDataDescription2 => '请继续佩戴 Apple Watch,等待系统自动采集数据。'; |
| 502 | 478 | ||
| 503 | @override | 479 | @override |
| 504 | String get todayStressStatusWaitingDataReasonsIntro => '可能原因包括:'; | 480 | String get todayStressStatusWaitingDataReasonsIntro => '可能原因包括:'; |
| @@ -519,35 +495,28 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -519,35 +495,28 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 519 | String get todayHrvPrincipleHowMeasureTitle => 'DoubleFeel 如何测量压力状态?'; | 495 | String get todayHrvPrincipleHowMeasureTitle => 'DoubleFeel 如何测量压力状态?'; |
| 520 | 496 | ||
| 521 | @override | 497 | @override |
| 522 | - String get todayHrvPrincipleHowMeasureDescription1 => | ||
| 523 | - '当你正常佩戴 Apple Watch 时,系统会自动采集你的心率数据,并同步至 Apple Health。'; | 498 | + String get todayHrvPrincipleHowMeasureDescription1 => '当你正常佩戴 Apple Watch 时,系统会自动采集你的心率数据,并同步至 Apple Health。'; |
| 524 | 499 | ||
| 525 | @override | 500 | @override |
| 526 | - String get todayHrvPrincipleHowMeasureDescription2 => | ||
| 527 | - 'DoubleFeel 会基于这些数据计算 HRV(心率变异性)相关指标,用于评估你的身体压力与恢复状态。'; | 501 | + String get todayHrvPrincipleHowMeasureDescription2 => 'DoubleFeel 会基于这些数据计算 HRV(心率变异性)相关指标,用于评估你的身体压力与恢复状态。'; |
| 528 | 502 | ||
| 529 | @override | 503 | @override |
| 530 | - String get todayHrvPrincipleHowMeasureDescription3 => | ||
| 531 | - 'HRV 对压力、疲劳、睡眠、情绪与身体恢复都非常敏感,因此它能够帮助我们更早发现身体状态变化。'; | 504 | + String get todayHrvPrincipleHowMeasureDescription3 => 'HRV 对压力、疲劳、睡眠、情绪与身体恢复都非常敏感,因此它能够帮助我们更早发现身体状态变化。'; |
| 532 | 505 | ||
| 533 | @override | 506 | @override |
| 534 | - String get todayHrvPrincipleHowMeasureDescription4 => | ||
| 535 | - '为了让结果更准确,DoubleFeel 会将你当前的 HRV 状态与过去 30 天的个人平均水平进行对比,而不是直接与其他人比较。'; | 507 | + String get todayHrvPrincipleHowMeasureDescription4 => '为了让结果更准确,DoubleFeel 会将你当前的 HRV 状态与过去 30 天的个人平均水平进行对比,而不是直接与其他人比较。'; |
| 536 | 508 | ||
| 537 | @override | 509 | @override |
| 538 | String get todayRealtimeStressWhatTitle => '什么是实时压力?'; | 510 | String get todayRealtimeStressWhatTitle => '什么是实时压力?'; |
| 539 | 511 | ||
| 540 | @override | 512 | @override |
| 541 | - String get todayRealtimeStressWhatDescription1 => | ||
| 542 | - '实时压力是 DoubleFeel 根据你当前的 HRV、心率状态与个人历史数据变化,动态生成的身体压力指标。'; | 513 | + String get todayRealtimeStressWhatDescription1 => '实时压力是 DoubleFeel 根据你当前的 HRV、心率状态与个人历史数据变化,动态生成的身体压力指标。'; |
| 543 | 514 | ||
| 544 | @override | 515 | @override |
| 545 | - String get todayRealtimeStressWhatDescription2 => | ||
| 546 | - '压力值越高,代表你的身体状态相比平时偏离越明显,可能正处于疲劳、恢复不足或高压力状态。'; | 516 | + String get todayRealtimeStressWhatDescription2 => '压力值越高,代表你的身体状态相比平时偏离越明显,可能正处于疲劳、恢复不足或高压力状态。'; |
| 547 | 517 | ||
| 548 | @override | 518 | @override |
| 549 | - String get todayRealtimeStressWhatDescription3 => | ||
| 550 | - '它能够帮助你更快发现身体变化,并及时调整休息、运动与生活节奏。'; | 519 | + String get todayRealtimeStressWhatDescription3 => '它能够帮助你更快发现身体变化,并及时调整休息、运动与生活节奏。'; |
| 551 | 520 | ||
| 552 | @override | 521 | @override |
| 553 | String get todayRealtimeStressDivisionTitle => '实时压力如何划分?'; | 522 | String get todayRealtimeStressDivisionTitle => '实时压力如何划分?'; |
| @@ -577,12 +546,10 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -577,12 +546,10 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 577 | String get todayRealtimeStressCautionDescription => '身体可能正在积累压力,需要适当休息与恢复。'; | 546 | String get todayRealtimeStressCautionDescription => '身体可能正在积累压力,需要适当休息与恢复。'; |
| 578 | 547 | ||
| 579 | @override | 548 | @override |
| 580 | - String get todayRealtimeStressOverloadDescription => | ||
| 581 | - '身体压力明显偏高,建议减少负荷、注意睡眠与恢复。'; | 549 | + String get todayRealtimeStressOverloadDescription => '身体压力明显偏高,建议减少负荷、注意睡眠与恢复。'; |
| 582 | 550 | ||
| 583 | @override | 551 | @override |
| 584 | - String get todayRealtimeStressDivisionBaseline => | ||
| 585 | - '以上区间会结合你的个人基线动态调整,不同用户之间并不直接比较。'; | 552 | + String get todayRealtimeStressDivisionBaseline => '以上区间会结合你的个人基线动态调整,不同用户之间并不直接比较。'; |
| 586 | 553 | ||
| 587 | @override | 554 | @override |
| 588 | String get todayRealtimeStressDivisionAwake => '此外,实时压力主要反映清醒状态下的身体压力变化。'; | 555 | String get todayRealtimeStressDivisionAwake => '此外,实时压力主要反映清醒状态下的身体压力变化。'; |
| @@ -597,31 +564,25 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -597,31 +564,25 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 597 | String get todayRealtimeStressLowBetterType => '身体压力分为“正常压力”与“异常压力”。'; | 564 | String get todayRealtimeStressLowBetterType => '身体压力分为“正常压力”与“异常压力”。'; |
| 598 | 565 | ||
| 599 | @override | 566 | @override |
| 600 | - String get todayRealtimeStressLowBetterExample => | ||
| 601 | - '例如:运动期间或运动后,实时压力短时间升高属于正常恢复反应;工作专注、情绪兴奋时,压力也可能暂时升高,这些都属于正常的身体调节。'; | 567 | + String get todayRealtimeStressLowBetterExample => '例如:运动期间或运动后,实时压力短时间升高属于正常恢复反应;工作专注、情绪兴奋时,压力也可能暂时升高,这些都属于正常的身体调节。'; |
| 602 | 568 | ||
| 603 | @override | 569 | @override |
| 604 | - String get todayRealtimeStressLowBetterHighStress => | ||
| 605 | - '但如果在静息、久坐或睡眠不足的情况下,压力长期偏高,则可能意味着身体疲劳、心理压力较大、睡眠恢复不足、运动恢复不充分、摄入过多咖啡因、酒精或刺激物、身体可能处于不适状态。'; | 570 | + String get todayRealtimeStressLowBetterHighStress => '但如果在静息、久坐或睡眠不足的情况下,压力长期偏高,则可能意味着身体疲劳、心理压力较大、睡眠恢复不足、运动恢复不充分、摄入过多咖啡因、酒精或刺激物、身体可能处于不适状态。'; |
| 606 | 571 | ||
| 607 | @override | 572 | @override |
| 608 | - String get todayRealtimeStressLowBetterTrend => | ||
| 609 | - 'DoubleFeel 更关注的是你的长期变化趋势,而不是单次波动。'; | 573 | + String get todayRealtimeStressLowBetterTrend => 'DoubleFeel 更关注的是你的长期变化趋势,而不是单次波动。'; |
| 610 | 574 | ||
| 611 | @override | 575 | @override |
| 612 | String get todayRealtimeStressScenarioTitle => 'HRV 与实时压力适用场景?'; | 576 | String get todayRealtimeStressScenarioTitle => 'HRV 与实时压力适用场景?'; |
| 613 | 577 | ||
| 614 | @override | 578 | @override |
| 615 | - String get todayRealtimeStressScenarioHrvDefault => | ||
| 616 | - '在 Apple Watch 的默认设置下,HRV 每 2~5 小时更新一次。'; | 579 | + String get todayRealtimeStressScenarioHrvDefault => '在 Apple Watch 的默认设置下,HRV 每 2~5 小时更新一次。'; |
| 617 | 580 | ||
| 618 | @override | 581 | @override |
| 619 | - String get todayRealtimeStressScenarioRegionLimit => | ||
| 620 | - '在部分地区,由于 Apple Watch 的呼吸功能受限,HRV 的更新频率可能会受到影响,并且开启呼吸功能后也会消耗更多电量。'; | 582 | + String get todayRealtimeStressScenarioRegionLimit => '在部分地区,由于 Apple Watch 的呼吸功能受限,HRV 的更新频率可能会受到影响,并且开启呼吸功能后也会消耗更多电量。'; |
| 621 | 583 | ||
| 622 | @override | 584 | @override |
| 623 | - String get todayRealtimeStressScenarioIntro => | ||
| 624 | - '为了解决 HRV 更新间隔较长的问题,DoubleFeel 设计了实时压力功能:'; | 585 | + String get todayRealtimeStressScenarioIntro => '为了解决 HRV 更新间隔较长的问题,DoubleFeel 设计了实时压力功能:'; |
| 625 | 586 | ||
| 626 | @override | 587 | @override |
| 627 | String get todayRealtimeStressScenarioUpdateEvery6Min => '· 实时压力每 6 分钟更新一次'; | 588 | String get todayRealtimeStressScenarioUpdateEvery6Min => '· 实时压力每 6 分钟更新一次'; |
| @@ -630,27 +591,22 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -630,27 +591,22 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 630 | String get todayRealtimeStressScenarioTimely => '· 可以更及时地反映身体状态变化'; | 591 | String get todayRealtimeStressScenarioTimely => '· 可以更及时地反映身体状态变化'; |
| 631 | 592 | ||
| 632 | @override | 593 | @override |
| 633 | - String get todayRealtimeStressScenarioConsistentTrend => | ||
| 634 | - '· 在大多数情况下,实时压力趋势与 HRV 趋势是一致的'; | 594 | + String get todayRealtimeStressScenarioConsistentTrend => '· 在大多数情况下,实时压力趋势与 HRV 趋势是一致的'; |
| 635 | 595 | ||
| 636 | @override | 596 | @override |
| 637 | - String get todayRealtimeStressScenarioSummary => | ||
| 638 | - '这样用户既能获得 HRV 的长期趋势,也能通过实时压力获得短时身体状态的参考。'; | 597 | + String get todayRealtimeStressScenarioSummary => '这样用户既能获得 HRV 的长期趋势,也能通过实时压力获得短时身体状态的参考。'; |
| 639 | 598 | ||
| 640 | @override | 599 | @override |
| 641 | String get todayFaqNoDataTitle => 'APP或表盘有没有数据怎么办?'; | 600 | String get todayFaqNoDataTitle => 'APP或表盘有没有数据怎么办?'; |
| 642 | 601 | ||
| 643 | @override | 602 | @override |
| 644 | - String get todayFaqNoDataDescription1 => | ||
| 645 | - '1. 确认苹果手表系统在10.0以上,手机系统在14以上,系统版本可在「关于本机」内查看。'; | 603 | + String get todayFaqNoDataDescription1 => '1. 确认苹果手表系统在10.0以上,手机系统在14以上,系统版本可在「关于本机」内查看。'; |
| 646 | 604 | ||
| 647 | @override | 605 | @override |
| 648 | - String get todayFaqNoDataDescription2 => | ||
| 649 | - '2. 确认是否开启所有权限:手机「健康」-「共享」-「app」-「DoubleFeel」-「打开所有权限」。'; | 606 | + String get todayFaqNoDataDescription2 => '2. 确认是否开启所有权限:手机「健康」-「共享」-「app」-「DoubleFeel」-「打开所有权限」。'; |
| 650 | 607 | ||
| 651 | @override | 608 | @override |
| 652 | - String get todayFaqNoDataDescription3 => | ||
| 653 | - '3. 确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。'; | 609 | + String get todayFaqNoDataDescription3 => '3. 确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。'; |
| 654 | 610 | ||
| 655 | @override | 611 | @override |
| 656 | String get todayFaqContactPrefix => '如以上均检查无问题,可以'; | 612 | String get todayFaqContactPrefix => '如以上均检查无问题,可以'; |
| @@ -665,46 +621,37 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -665,46 +621,37 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 665 | String get todayFaqWatchNoNotificationTitle => '手表无法收到状态通知?'; | 621 | String get todayFaqWatchNoNotificationTitle => '手表无法收到状态通知?'; |
| 666 | 622 | ||
| 667 | @override | 623 | @override |
| 668 | - String get todayFaqWatchNoNotificationDescription1 => | ||
| 669 | - '苹果手表和手机的通知展示有优先级:当手机已解锁并亮屏时,通知只会在手机端展示,不会在手表上出现。'; | 624 | + String get todayFaqWatchNoNotificationDescription1 => '苹果手表和手机的通知展示有优先级:当手机已解锁并亮屏时,通知只会在手机端展示,不会在手表上出现。'; |
| 670 | 625 | ||
| 671 | @override | 626 | @override |
| 672 | - String get todayFaqWatchNoNotificationDescription2 => | ||
| 673 | - '若压力数据可正常显示和自动更新,但手表未收到通知,可尝试以下操作:'; | 627 | + String get todayFaqWatchNoNotificationDescription2 => '若压力数据可正常显示和自动更新,但手表未收到通知,可尝试以下操作:'; |
| 674 | 628 | ||
| 675 | @override | 629 | @override |
| 676 | - String get todayFaqWatchNoNotificationCheckPhoneNotification => | ||
| 677 | - '1. 检查手机是否打开通知(设置-DoubleFeel-通知)。'; | 630 | + String get todayFaqWatchNoNotificationCheckPhoneNotification => '1. 检查手机是否打开通知(设置-DoubleFeel-通知)。'; |
| 678 | 631 | ||
| 679 | @override | 632 | @override |
| 680 | - String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => | ||
| 681 | - '2. 检查手机是否打开后台App刷新(设置-DoubleFeel-后台App刷新)。'; | 633 | + String get todayFaqWatchNoNotificationCheckPhoneBackgroundRefresh => '2. 检查手机是否打开后台App刷新(设置-DoubleFeel-后台App刷新)。'; |
| 682 | 634 | ||
| 683 | @override | 635 | @override |
| 684 | - String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => | ||
| 685 | - '3. 检查手表是否打开后台App刷新(设置-通用-后台App刷新,并确保DoubleFeel开启)。'; | 636 | + String get todayFaqWatchNoNotificationCheckWatchBackgroundRefresh => '3. 检查手表是否打开后台App刷新(设置-通用-后台App刷新,并确保DoubleFeel开启)。'; |
| 686 | 637 | ||
| 687 | @override | 638 | @override |
| 688 | - String get todayFaqWatchNoNotificationCheckModes => | ||
| 689 | - '4. 确保未处于低电量/专注/勿扰/剧院/睡眠等模式。'; | 639 | + String get todayFaqWatchNoNotificationCheckModes => '4. 确保未处于低电量/专注/勿扰/剧院/睡眠等模式。'; |
| 690 | 640 | ||
| 691 | @override | 641 | @override |
| 692 | - String get todayFaqWatchNoNotificationReinstall => | ||
| 693 | - '5. 重装DoubleFeel 并重启AppleWatch与iPhone。'; | 642 | + String get todayFaqWatchNoNotificationReinstall => '5. 重装DoubleFeel 并重启AppleWatch与iPhone。'; |
| 694 | 643 | ||
| 695 | @override | 644 | @override |
| 696 | String get todayFaqWatchFaceDelayTitle => '手表表盘数据不更新或有延迟?'; | 645 | String get todayFaqWatchFaceDelayTitle => '手表表盘数据不更新或有延迟?'; |
| 697 | 646 | ||
| 698 | @override | 647 | @override |
| 699 | - String get todayFaqWatchFaceDelayDescription1 => | ||
| 700 | - '由于苹果系统限制,所有手表表盘(第三方或官方)都会存在几分钟至半小时的延迟,开发者无法控制刷新频率。'; | 648 | + String get todayFaqWatchFaceDelayDescription1 => '由于苹果系统限制,所有手表表盘(第三方或官方)都会存在几分钟至半小时的延迟,开发者无法控制刷新频率。'; |
| 701 | 649 | ||
| 702 | @override | 650 | @override |
| 703 | String get todayFaqWatchFaceDelayIfOverOneHour => '若手机数据刷新后超过1小时表盘仍未更新:'; | 651 | String get todayFaqWatchFaceDelayIfOverOneHour => '若手机数据刷新后超过1小时表盘仍未更新:'; |
| 704 | 652 | ||
| 705 | @override | 653 | @override |
| 706 | - String get todayFaqWatchFaceDelayOpenWatchApp => | ||
| 707 | - '请在手表上手动打开DoubleFeel,等待约1分钟。'; | 654 | + String get todayFaqWatchFaceDelayOpenWatchApp => '请在手表上手动打开DoubleFeel,等待约1分钟。'; |
| 708 | 655 | ||
| 709 | @override | 656 | @override |
| 710 | String get todayFaqWatchFaceDelayIfStill => '若仍未更新:'; | 657 | String get todayFaqWatchFaceDelayIfStill => '若仍未更新:'; |
| @@ -719,27 +666,22 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -719,27 +666,22 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 719 | String get todayFaqWatchFaceDelayCheckData => '· 手机和手表app是否可正常看到HRV数据。'; | 666 | String get todayFaqWatchFaceDelayCheckData => '· 手机和手表app是否可正常看到HRV数据。'; |
| 720 | 667 | ||
| 721 | @override | 668 | @override |
| 722 | - String get todayFaqWatchFaceDelayCheckPhoneHealth => | ||
| 723 | - '· 确保手机端「iOS设置-隐私与安全性-健康-DoubleFeel」全部授权。'; | 669 | + String get todayFaqWatchFaceDelayCheckPhoneHealth => '· 确保手机端「iOS设置-隐私与安全性-健康-DoubleFeel」全部授权。'; |
| 724 | 670 | ||
| 725 | @override | 671 | @override |
| 726 | - String get todayFaqWatchFaceDelayCheckWatchHealth => | ||
| 727 | - '· 确保手表端「设置-健康-数据来源、App和服务-DoubleFeel」全部授权。'; | 672 | + String get todayFaqWatchFaceDelayCheckWatchHealth => '· 确保手表端「设置-健康-数据来源、App和服务-DoubleFeel」全部授权。'; |
| 728 | 673 | ||
| 729 | @override | 674 | @override |
| 730 | - String get todayFaqWatchFaceDelayCheckBackgroundRefresh => | ||
| 731 | - '· 确认AppleWatch-设置-通用-后台App刷新中DoubleFeel已开启。'; | 675 | + String get todayFaqWatchFaceDelayCheckBackgroundRefresh => '· 确认AppleWatch-设置-通用-后台App刷新中DoubleFeel已开启。'; |
| 732 | 676 | ||
| 733 | @override | 677 | @override |
| 734 | - String get todayFaqWatchFaceDelayRestartWatch => | ||
| 735 | - '· 若仍未自动刷新,请重启手表。长时间运行或后台占用过高可能导致表盘暂停更新。'; | 678 | + String get todayFaqWatchFaceDelayRestartWatch => '· 若仍未自动刷新,请重启手表。长时间运行或后台占用过高可能导致表盘暂停更新。'; |
| 736 | 679 | ||
| 737 | @override | 680 | @override |
| 738 | String get todayFaqWatchFaceBlackScreenTitle => '手表表盘出现黑屏?'; | 681 | String get todayFaqWatchFaceBlackScreenTitle => '手表表盘出现黑屏?'; |
| 739 | 682 | ||
| 740 | @override | 683 | @override |
| 741 | - String get todayFaqWatchFaceBlackScreenDescription => | ||
| 742 | - '若添加专属互动表盘后出现黑屏(仅显示时间和日期),可长按表盘,点击「编辑」,左滑至「复杂功能」,选择 DoubleFeel,然后按需选择各组件重新添加。'; | 684 | + String get todayFaqWatchFaceBlackScreenDescription => '若添加专属互动表盘后出现黑屏(仅显示时间和日期),可长按表盘,点击「编辑」,左滑至「复杂功能」,选择 DoubleFeel,然后按需选择各组件重新添加。'; |
| 743 | 685 | ||
| 744 | @override | 686 | @override |
| 745 | String get today => '今天'; | 687 | String get today => '今天'; |
| @@ -823,8 +765,7 @@ class AppLocalizationsZh extends AppLocalizations { | @@ -823,8 +765,7 @@ class AppLocalizationsZh extends AppLocalizations { | ||
| 823 | String get questionsAndFeedback => '问题和反馈'; | 765 | String get questionsAndFeedback => '问题和反馈'; |
| 824 | 766 | ||
| 825 | @override | 767 | @override |
| 826 | - String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => | ||
| 827 | - '如果需要我们回复,请填写联系邮箱'; | 768 | + String get ifYouWouldLikeUsToReplyPleaseProvideYourEmailAddress => '如果需要我们回复,请填写联系邮箱'; |
| 828 | 769 | ||
| 829 | @override | 770 | @override |
| 830 | String get uploadProof => '上传凭证'; | 771 | String get uploadProof => '上传凭证'; |
| @@ -15,6 +15,76 @@ PlatformException _createConnectionError(String channelName) { | @@ -15,6 +15,76 @@ PlatformException _createConnectionError(String channelName) { | ||
| 15 | message: 'Unable to establish connection on channel: "$channelName".', | 15 | message: 'Unable to establish connection on channel: "$channelName".', |
| 16 | ); | 16 | ); |
| 17 | } | 17 | } |
| 18 | +bool _deepEquals(Object? a, Object? b) { | ||
| 19 | + if (a is List && b is List) { | ||
| 20 | + return a.length == b.length && | ||
| 21 | + a.indexed | ||
| 22 | + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); | ||
| 23 | + } | ||
| 24 | + if (a is Map && b is Map) { | ||
| 25 | + return a.length == b.length && a.entries.every((MapEntry<Object?, Object?> entry) => | ||
| 26 | + (b as Map<Object?, Object?>).containsKey(entry.key) && | ||
| 27 | + _deepEquals(entry.value, b[entry.key])); | ||
| 28 | + } | ||
| 29 | + return a == b; | ||
| 30 | +} | ||
| 31 | + | ||
| 32 | + | ||
| 33 | +class AppleSignInModel { | ||
| 34 | + AppleSignInModel({ | ||
| 35 | + required this.userId, | ||
| 36 | + this.email, | ||
| 37 | + this.nickname, | ||
| 38 | + this.identityToken, | ||
| 39 | + }); | ||
| 40 | + | ||
| 41 | + String userId; | ||
| 42 | + | ||
| 43 | + String? email; | ||
| 44 | + | ||
| 45 | + String? nickname; | ||
| 46 | + | ||
| 47 | + String? identityToken; | ||
| 48 | + | ||
| 49 | + List<Object?> _toList() { | ||
| 50 | + return <Object?>[ | ||
| 51 | + userId, | ||
| 52 | + email, | ||
| 53 | + nickname, | ||
| 54 | + identityToken, | ||
| 55 | + ]; | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + Object encode() { | ||
| 59 | + return _toList(); } | ||
| 60 | + | ||
| 61 | + static AppleSignInModel decode(Object result) { | ||
| 62 | + result as List<Object?>; | ||
| 63 | + return AppleSignInModel( | ||
| 64 | + userId: result[0]! as String, | ||
| 65 | + email: result[1] as String?, | ||
| 66 | + nickname: result[2] as String?, | ||
| 67 | + identityToken: result[3] as String?, | ||
| 68 | + ); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + @override | ||
| 72 | + // ignore: avoid_equals_and_hash_code_on_mutable_classes | ||
| 73 | + bool operator ==(Object other) { | ||
| 74 | + if (other is! AppleSignInModel || other.runtimeType != runtimeType) { | ||
| 75 | + return false; | ||
| 76 | + } | ||
| 77 | + if (identical(this, other)) { | ||
| 78 | + return true; | ||
| 79 | + } | ||
| 80 | + return _deepEquals(encode(), other.encode()); | ||
| 81 | + } | ||
| 82 | + | ||
| 83 | + @override | ||
| 84 | + // ignore: avoid_equals_and_hash_code_on_mutable_classes | ||
| 85 | + int get hashCode => Object.hashAll(_toList()) | ||
| 86 | +; | ||
| 87 | +} | ||
| 18 | 88 | ||
| 19 | 89 | ||
| 20 | class _PigeonCodec extends StandardMessageCodec { | 90 | class _PigeonCodec extends StandardMessageCodec { |
| @@ -24,6 +94,9 @@ class _PigeonCodec extends StandardMessageCodec { | @@ -24,6 +94,9 @@ class _PigeonCodec extends StandardMessageCodec { | ||
| 24 | if (value is int) { | 94 | if (value is int) { |
| 25 | buffer.putUint8(4); | 95 | buffer.putUint8(4); |
| 26 | buffer.putInt64(value); | 96 | buffer.putInt64(value); |
| 97 | + } else if (value is AppleSignInModel) { | ||
| 98 | + buffer.putUint8(129); | ||
| 99 | + writeValue(buffer, value.encode()); | ||
| 27 | } else { | 100 | } else { |
| 28 | super.writeValue(buffer, value); | 101 | super.writeValue(buffer, value); |
| 29 | } | 102 | } |
| @@ -32,6 +105,8 @@ class _PigeonCodec extends StandardMessageCodec { | @@ -32,6 +105,8 @@ class _PigeonCodec extends StandardMessageCodec { | ||
| 32 | @override | 105 | @override |
| 33 | Object? readValueOfType(int type, ReadBuffer buffer) { | 106 | Object? readValueOfType(int type, ReadBuffer buffer) { |
| 34 | switch (type) { | 107 | switch (type) { |
| 108 | + case 129: | ||
| 109 | + return AppleSignInModel.decode(readValue(buffer)!); | ||
| 35 | default: | 110 | default: |
| 36 | return super.readValueOfType(type, buffer); | 111 | return super.readValueOfType(type, buffer); |
| 37 | } | 112 | } |
| @@ -80,4 +155,27 @@ class PlatformHostApi { | @@ -80,4 +155,27 @@ class PlatformHostApi { | ||
| 80 | return (pigeonVar_replyList[0] as String?)!; | 155 | return (pigeonVar_replyList[0] as String?)!; |
| 81 | } | 156 | } |
| 82 | } | 157 | } |
| 158 | + | ||
| 159 | + Future<AppleSignInModel?> requestAppleSignIn() async { | ||
| 160 | + final String pigeonVar_channelName = 'dev.flutter.pigeon.doublefeel_flutter.PlatformHostApi.requestAppleSignIn$pigeonVar_messageChannelSuffix'; | ||
| 161 | + final BasicMessageChannel<Object?> pigeonVar_channel = BasicMessageChannel<Object?>( | ||
| 162 | + pigeonVar_channelName, | ||
| 163 | + pigeonChannelCodec, | ||
| 164 | + binaryMessenger: pigeonVar_binaryMessenger, | ||
| 165 | + ); | ||
| 166 | + final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(null); | ||
| 167 | + final List<Object?>? pigeonVar_replyList = | ||
| 168 | + await pigeonVar_sendFuture as List<Object?>?; | ||
| 169 | + if (pigeonVar_replyList == null) { | ||
| 170 | + throw _createConnectionError(pigeonVar_channelName); | ||
| 171 | + } else if (pigeonVar_replyList.length > 1) { | ||
| 172 | + throw PlatformException( | ||
| 173 | + code: pigeonVar_replyList[0]! as String, | ||
| 174 | + message: pigeonVar_replyList[1] as String?, | ||
| 175 | + details: pigeonVar_replyList[2], | ||
| 176 | + ); | ||
| 177 | + } else { | ||
| 178 | + return (pigeonVar_replyList[0] as AppleSignInModel?); | ||
| 179 | + } | ||
| 180 | + } | ||
| 83 | } | 181 | } |
| 1 | import 'package:pigeon/pigeon.dart'; | 1 | import 'package:pigeon/pigeon.dart'; |
| 2 | 2 | ||
| 3 | +class AppleSignInModel { | ||
| 4 | + final String userId; | ||
| 5 | + final String? email; | ||
| 6 | + final String? nickname; | ||
| 7 | + final String? identityToken; | ||
| 8 | + | ||
| 9 | + AppleSignInModel({ | ||
| 10 | + required this.userId, | ||
| 11 | + this.email, | ||
| 12 | + this.nickname, | ||
| 13 | + this.identityToken, | ||
| 14 | + }); | ||
| 15 | +} | ||
| 16 | + | ||
| 3 | @ConfigurePigeon( | 17 | @ConfigurePigeon( |
| 4 | PigeonOptions( | 18 | PigeonOptions( |
| 5 | dartOut: 'lib/pigeon/platform_api.g.dart', | 19 | dartOut: 'lib/pigeon/platform_api.g.dart', |
| @@ -21,4 +35,7 @@ abstract class PlatformHostApi { | @@ -21,4 +35,7 @@ abstract class PlatformHostApi { | ||
| 21 | /// 返回完整的 User-Agent 字符串,由 native 侧组装: | 35 | /// 返回完整的 User-Agent 字符串,由 native 侧组装: |
| 22 | /// `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` | 36 | /// `{systemWebViewUA} {appName}/{versionCode}({versionName})({manufacturer}##{brand}##{model}; {OS}{osVersion}; {height}x{width})(huawei)` |
| 23 | String getFullUserAgent(); | 37 | String getFullUserAgent(); |
| 38 | + | ||
| 39 | +@async | ||
| 40 | + AppleSignInModel? requestAppleSignIn(); | ||
| 24 | } | 41 | } |
| @@ -133,10 +133,10 @@ packages: | @@ -133,10 +133,10 @@ packages: | ||
| 133 | dependency: transitive | 133 | dependency: transitive |
| 134 | description: | 134 | description: |
| 135 | name: characters | 135 | name: characters |
| 136 | - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 | 136 | + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" |
| 137 | url: "https://pub.dev" | 137 | url: "https://pub.dev" |
| 138 | source: hosted | 138 | source: hosted |
| 139 | - version: "1.4.0" | 139 | + version: "1.3.0" |
| 140 | checked_yaml: | 140 | checked_yaml: |
| 141 | dependency: transitive | 141 | dependency: transitive |
| 142 | description: | 142 | description: |
| @@ -149,10 +149,10 @@ packages: | @@ -149,10 +149,10 @@ packages: | ||
| 149 | dependency: transitive | 149 | dependency: transitive |
| 150 | description: | 150 | description: |
| 151 | name: clock | 151 | name: clock |
| 152 | - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b | 152 | + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf |
| 153 | url: "https://pub.dev" | 153 | url: "https://pub.dev" |
| 154 | source: hosted | 154 | source: hosted |
| 155 | - version: "1.1.2" | 155 | + version: "1.1.1" |
| 156 | code_builder: | 156 | code_builder: |
| 157 | dependency: transitive | 157 | dependency: transitive |
| 158 | description: | 158 | description: |
| @@ -165,10 +165,10 @@ packages: | @@ -165,10 +165,10 @@ packages: | ||
| 165 | dependency: transitive | 165 | dependency: transitive |
| 166 | description: | 166 | description: |
| 167 | name: collection | 167 | name: collection |
| 168 | - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" | 168 | + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf |
| 169 | url: "https://pub.dev" | 169 | url: "https://pub.dev" |
| 170 | source: hosted | 170 | source: hosted |
| 171 | - version: "1.19.1" | 171 | + version: "1.19.0" |
| 172 | convert: | 172 | convert: |
| 173 | dependency: transitive | 173 | dependency: transitive |
| 174 | description: | 174 | description: |
| @@ -237,10 +237,10 @@ packages: | @@ -237,10 +237,10 @@ packages: | ||
| 237 | dependency: transitive | 237 | dependency: transitive |
| 238 | description: | 238 | description: |
| 239 | name: fake_async | 239 | name: fake_async |
| 240 | - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" | 240 | + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" |
| 241 | url: "https://pub.dev" | 241 | url: "https://pub.dev" |
| 242 | source: hosted | 242 | source: hosted |
| 243 | - version: "1.3.3" | 243 | + version: "1.3.1" |
| 244 | ffi: | 244 | ffi: |
| 245 | dependency: transitive | 245 | dependency: transitive |
| 246 | description: | 246 | description: |
| @@ -426,7 +426,7 @@ packages: | @@ -426,7 +426,7 @@ packages: | ||
| 426 | dependency: transitive | 426 | dependency: transitive |
| 427 | description: | 427 | description: |
| 428 | path: image_cropper_for_web | 428 | path: image_cropper_for_web |
| 429 | - ref: "65c2c99891882ea59732959a672f3d5993a837bb" | 429 | + ref: "br_v9.1.0_ohos" |
| 430 | resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb" | 430 | resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb" |
| 431 | url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git" | 431 | url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git" |
| 432 | source: git | 432 | source: git |
| @@ -435,7 +435,7 @@ packages: | @@ -435,7 +435,7 @@ packages: | ||
| 435 | dependency: transitive | 435 | dependency: transitive |
| 436 | description: | 436 | description: |
| 437 | path: image_cropper_platform_interface | 437 | path: image_cropper_platform_interface |
| 438 | - ref: "65c2c99891882ea59732959a672f3d5993a837bb" | 438 | + ref: "br_v9.1.0_ohos" |
| 439 | resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb" | 439 | resolved-ref: "65c2c99891882ea59732959a672f3d5993a837bb" |
| 440 | url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git" | 440 | url: "https://gitcode.com/openharmony-sig/fluttertpc_image_cropper.git" |
| 441 | source: git | 441 | source: git |
| @@ -517,10 +517,10 @@ packages: | @@ -517,10 +517,10 @@ packages: | ||
| 517 | dependency: "direct main" | 517 | dependency: "direct main" |
| 518 | description: | 518 | description: |
| 519 | name: intl | 519 | name: intl |
| 520 | - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" | 520 | + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf |
| 521 | url: "https://pub.dev" | 521 | url: "https://pub.dev" |
| 522 | source: hosted | 522 | source: hosted |
| 523 | - version: "0.20.2" | 523 | + version: "0.19.0" |
| 524 | io: | 524 | io: |
| 525 | dependency: transitive | 525 | dependency: transitive |
| 526 | description: | 526 | description: |
| @@ -549,26 +549,26 @@ packages: | @@ -549,26 +549,26 @@ packages: | ||
| 549 | dependency: transitive | 549 | dependency: transitive |
| 550 | description: | 550 | description: |
| 551 | name: leak_tracker | 551 | name: leak_tracker |
| 552 | - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" | 552 | + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" |
| 553 | url: "https://pub.dev" | 553 | url: "https://pub.dev" |
| 554 | source: hosted | 554 | source: hosted |
| 555 | - version: "11.0.2" | 555 | + version: "10.0.7" |
| 556 | leak_tracker_flutter_testing: | 556 | leak_tracker_flutter_testing: |
| 557 | dependency: transitive | 557 | dependency: transitive |
| 558 | description: | 558 | description: |
| 559 | name: leak_tracker_flutter_testing | 559 | name: leak_tracker_flutter_testing |
| 560 | - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" | 560 | + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" |
| 561 | url: "https://pub.dev" | 561 | url: "https://pub.dev" |
| 562 | source: hosted | 562 | source: hosted |
| 563 | - version: "3.0.10" | 563 | + version: "3.0.8" |
| 564 | leak_tracker_testing: | 564 | leak_tracker_testing: |
| 565 | dependency: transitive | 565 | dependency: transitive |
| 566 | description: | 566 | description: |
| 567 | name: leak_tracker_testing | 567 | name: leak_tracker_testing |
| 568 | - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" | 568 | + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" |
| 569 | url: "https://pub.dev" | 569 | url: "https://pub.dev" |
| 570 | source: hosted | 570 | source: hosted |
| 571 | - version: "3.0.2" | 571 | + version: "3.0.1" |
| 572 | lints: | 572 | lints: |
| 573 | dependency: transitive | 573 | dependency: transitive |
| 574 | description: | 574 | description: |
| @@ -597,10 +597,10 @@ packages: | @@ -597,10 +597,10 @@ packages: | ||
| 597 | dependency: transitive | 597 | dependency: transitive |
| 598 | description: | 598 | description: |
| 599 | name: matcher | 599 | name: matcher |
| 600 | - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 | 600 | + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb |
| 601 | url: "https://pub.dev" | 601 | url: "https://pub.dev" |
| 602 | source: hosted | 602 | source: hosted |
| 603 | - version: "0.12.17" | 603 | + version: "0.12.16+1" |
| 604 | material_color_utilities: | 604 | material_color_utilities: |
| 605 | dependency: transitive | 605 | dependency: transitive |
| 606 | description: | 606 | description: |
| @@ -613,10 +613,10 @@ packages: | @@ -613,10 +613,10 @@ packages: | ||
| 613 | dependency: transitive | 613 | dependency: transitive |
| 614 | description: | 614 | description: |
| 615 | name: meta | 615 | name: meta |
| 616 | - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" | 616 | + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 |
| 617 | url: "https://pub.dev" | 617 | url: "https://pub.dev" |
| 618 | source: hosted | 618 | source: hosted |
| 619 | - version: "1.17.0" | 619 | + version: "1.15.0" |
| 620 | mime: | 620 | mime: |
| 621 | dependency: transitive | 621 | dependency: transitive |
| 622 | description: | 622 | description: |
| @@ -645,10 +645,10 @@ packages: | @@ -645,10 +645,10 @@ packages: | ||
| 645 | dependency: transitive | 645 | dependency: transitive |
| 646 | description: | 646 | description: |
| 647 | name: path | 647 | name: path |
| 648 | - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" | 648 | + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" |
| 649 | url: "https://pub.dev" | 649 | url: "https://pub.dev" |
| 650 | source: hosted | 650 | source: hosted |
| 651 | - version: "1.9.1" | 651 | + version: "1.9.0" |
| 652 | path_provider: | 652 | path_provider: |
| 653 | dependency: transitive | 653 | dependency: transitive |
| 654 | description: | 654 | description: |
| @@ -966,18 +966,18 @@ packages: | @@ -966,18 +966,18 @@ packages: | ||
| 966 | dependency: transitive | 966 | dependency: transitive |
| 967 | description: | 967 | description: |
| 968 | name: stack_trace | 968 | name: stack_trace |
| 969 | - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" | 969 | + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" |
| 970 | url: "https://pub.dev" | 970 | url: "https://pub.dev" |
| 971 | source: hosted | 971 | source: hosted |
| 972 | - version: "1.12.1" | 972 | + version: "1.12.0" |
| 973 | stream_channel: | 973 | stream_channel: |
| 974 | dependency: transitive | 974 | dependency: transitive |
| 975 | description: | 975 | description: |
| 976 | name: stream_channel | 976 | name: stream_channel |
| 977 | - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" | 977 | + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 |
| 978 | url: "https://pub.dev" | 978 | url: "https://pub.dev" |
| 979 | source: hosted | 979 | source: hosted |
| 980 | - version: "2.1.4" | 980 | + version: "2.1.2" |
| 981 | stream_transform: | 981 | stream_transform: |
| 982 | dependency: transitive | 982 | dependency: transitive |
| 983 | description: | 983 | description: |
| @@ -1006,10 +1006,10 @@ packages: | @@ -1006,10 +1006,10 @@ packages: | ||
| 1006 | dependency: "direct main" | 1006 | dependency: "direct main" |
| 1007 | description: | 1007 | description: |
| 1008 | name: table_calendar | 1008 | name: table_calendar |
| 1009 | - sha256: "0c0c6219878b363a2d5f40c7afb159d845f253d061dc3c822aa0d5fe0f721982" | 1009 | + sha256: b2896b7c86adf3a4d9c911d860120fe3dbe03c85db43b22fd61f14ee78cdbb63 |
| 1010 | url: "https://pub.dev" | 1010 | url: "https://pub.dev" |
| 1011 | source: hosted | 1011 | source: hosted |
| 1012 | - version: "3.2.0" | 1012 | + version: "3.1.3" |
| 1013 | term_glyph: | 1013 | term_glyph: |
| 1014 | dependency: transitive | 1014 | dependency: transitive |
| 1015 | description: | 1015 | description: |
| @@ -1022,10 +1022,10 @@ packages: | @@ -1022,10 +1022,10 @@ packages: | ||
| 1022 | dependency: transitive | 1022 | dependency: transitive |
| 1023 | description: | 1023 | description: |
| 1024 | name: test_api | 1024 | name: test_api |
| 1025 | - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 | 1025 | + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" |
| 1026 | url: "https://pub.dev" | 1026 | url: "https://pub.dev" |
| 1027 | source: hosted | 1027 | source: hosted |
| 1028 | - version: "0.7.7" | 1028 | + version: "0.7.3" |
| 1029 | timing: | 1029 | timing: |
| 1030 | dependency: transitive | 1030 | dependency: transitive |
| 1031 | description: | 1031 | description: |
| @@ -1054,10 +1054,10 @@ packages: | @@ -1054,10 +1054,10 @@ packages: | ||
| 1054 | dependency: transitive | 1054 | dependency: transitive |
| 1055 | description: | 1055 | description: |
| 1056 | name: vector_math | 1056 | name: vector_math |
| 1057 | - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b | 1057 | + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" |
| 1058 | url: "https://pub.dev" | 1058 | url: "https://pub.dev" |
| 1059 | source: hosted | 1059 | source: hosted |
| 1060 | - version: "2.2.0" | 1060 | + version: "2.1.4" |
| 1061 | vm_service: | 1061 | vm_service: |
| 1062 | dependency: transitive | 1062 | dependency: transitive |
| 1063 | description: | 1063 | description: |
| @@ -1111,8 +1111,8 @@ packages: | @@ -1111,8 +1111,8 @@ packages: | ||
| 1111 | dependency: transitive | 1111 | dependency: transitive |
| 1112 | description: | 1112 | description: |
| 1113 | path: "packages/webview_flutter/webview_flutter_android" | 1113 | path: "packages/webview_flutter/webview_flutter_android" |
| 1114 | - ref: de942e79c9057b32ad31106508bd87c0d60aef83 | ||
| 1115 | - resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83 | 1114 | + ref: "br_webview_flutter-v4.13.0_ohos" |
| 1115 | + resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3 | ||
| 1116 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" | 1116 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" |
| 1117 | source: git | 1117 | source: git |
| 1118 | version: "4.7.0" | 1118 | version: "4.7.0" |
| @@ -1120,8 +1120,8 @@ packages: | @@ -1120,8 +1120,8 @@ packages: | ||
| 1120 | dependency: transitive | 1120 | dependency: transitive |
| 1121 | description: | 1121 | description: |
| 1122 | path: "packages/webview_flutter/webview_flutter_ohos" | 1122 | path: "packages/webview_flutter/webview_flutter_ohos" |
| 1123 | - ref: de942e79c9057b32ad31106508bd87c0d60aef83 | ||
| 1124 | - resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83 | 1123 | + ref: "br_webview_flutter-v4.13.0_ohos" |
| 1124 | + resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3 | ||
| 1125 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" | 1125 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" |
| 1126 | source: git | 1126 | source: git |
| 1127 | version: "4.7.0" | 1127 | version: "4.7.0" |
| @@ -1129,8 +1129,8 @@ packages: | @@ -1129,8 +1129,8 @@ packages: | ||
| 1129 | dependency: transitive | 1129 | dependency: transitive |
| 1130 | description: | 1130 | description: |
| 1131 | path: "packages/webview_flutter/webview_flutter_platform_interface" | 1131 | path: "packages/webview_flutter/webview_flutter_platform_interface" |
| 1132 | - ref: de942e79c9057b32ad31106508bd87c0d60aef83 | ||
| 1133 | - resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83 | 1132 | + ref: "br_webview_flutter-v4.13.0_ohos" |
| 1133 | + resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3 | ||
| 1134 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" | 1134 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" |
| 1135 | source: git | 1135 | source: git |
| 1136 | version: "2.13.1" | 1136 | version: "2.13.1" |
| @@ -1138,8 +1138,8 @@ packages: | @@ -1138,8 +1138,8 @@ packages: | ||
| 1138 | dependency: transitive | 1138 | dependency: transitive |
| 1139 | description: | 1139 | description: |
| 1140 | path: "packages/webview_flutter/webview_flutter_wkwebview" | 1140 | path: "packages/webview_flutter/webview_flutter_wkwebview" |
| 1141 | - ref: de942e79c9057b32ad31106508bd87c0d60aef83 | ||
| 1142 | - resolved-ref: de942e79c9057b32ad31106508bd87c0d60aef83 | 1141 | + ref: "br_webview_flutter-v4.13.0_ohos" |
| 1142 | + resolved-ref: ecd3d0b6195945ee0660c324d45f1acbc6198cc3 | ||
| 1143 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" | 1143 | url: "https://gitcode.com/openharmony-tpc/flutter_packages.git" |
| 1144 | source: git | 1144 | source: git |
| 1145 | version: "3.22.0" | 1145 | version: "3.22.0" |
| @@ -1160,5 +1160,5 @@ packages: | @@ -1160,5 +1160,5 @@ packages: | ||
| 1160 | source: hosted | 1160 | source: hosted |
| 1161 | version: "3.1.3" | 1161 | version: "3.1.3" |
| 1162 | sdks: | 1162 | sdks: |
| 1163 | - dart: ">=3.8.0-0 <4.0.0" | 1163 | + dart: ">=3.6.2 <4.0.0" |
| 1164 | flutter: ">=3.27.0" | 1164 | flutter: ">=3.27.0" |
-
Please register or login to post a comment