Commit c90053e8d3b6265843f39593c3f7604c439dbf76

Authored by 常守达
1 parent 571eac67

feat(today):替换权限设置贴图

@@ -21,14 +21,11 @@ class HealthKitHostApiImpl( @@ -21,14 +21,11 @@ class HealthKitHostApiImpl(
21 return HuaweiHealthBridge.cancelHealthAppAuthorization(activity) 21 return HuaweiHealthBridge.cancelHealthAppAuthorization(activity)
22 } 22 }
23 23
24 - override fun performHealthUpload(): HealthUploadResult {  
25 - return HealthUploadResult(  
26 - commonUploadSuccess = false,  
27 - sleepUploadSuccess = false,  
28 - errorMessage = "Native bulk upload runs via Dart HealthKitUploadService; HMS read bridge pending",  
29 - ) 24 + override fun performHealthUpload(callback: (Result<HealthUploadResult>) -> Unit) {
  25 +
30 } 26 }
31 27
  28 +
32 override fun checkHealthAppAuthorization(callback: (Result<HealthAuthorization>) -> Unit) { 29 override fun checkHealthAppAuthorization(callback: (Result<HealthAuthorization>) -> Unit) {
33 30
34 } 31 }
@@ -112,4 +112,12 @@ class PlatformHostApiImpl(private val application: android.app.Application) : Pl @@ -112,4 +112,12 @@ class PlatformHostApiImpl(private val application: android.app.Application) : Pl
112 return true 112 return true
113 } 113 }
114 114
  115 + override fun nativeHandleUrl(urlString: String): Boolean {
  116 + return false
  117 + }
  118 +
  119 + override fun requestUnhandedUrl(): String? {
  120 + return ""
  121 + }
  122 +
115 } 123 }

5.73 KB | W: | H:

5.13 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 archiveVersion = 1; 3 archiveVersion = 1;
4 classes = { 4 classes = {
5 }; 5 };
6 - objectVersion = 77; 6 + objectVersion = 54;
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
@@ -342,14 +342,10 @@ @@ -342,14 +342,10 @@
342 inputFileListPaths = ( 342 inputFileListPaths = (
343 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 343 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
344 ); 344 );
345 - inputPaths = (  
346 - );  
347 name = "[CP] Embed Pods Frameworks"; 345 name = "[CP] Embed Pods Frameworks";
348 outputFileListPaths = ( 346 outputFileListPaths = (
349 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 347 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
350 ); 348 );
351 - outputPaths = (  
352 - );  
353 runOnlyForDeploymentPostprocessing = 0; 349 runOnlyForDeploymentPostprocessing = 0;
354 shellPath = /bin/sh; 350 shellPath = /bin/sh;
355 shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 351 shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
@@ -420,14 +416,10 @@ @@ -420,14 +416,10 @@
420 inputFileListPaths = ( 416 inputFileListPaths = (
421 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", 417 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
422 ); 418 );
423 - inputPaths = (  
424 - );  
425 name = "[CP] Copy Pods Resources"; 419 name = "[CP] Copy Pods Resources";
426 outputFileListPaths = ( 420 outputFileListPaths = (
427 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", 421 "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
428 ); 422 );
429 - outputPaths = (  
430 - );  
431 runOnlyForDeploymentPostprocessing = 0; 423 runOnlyForDeploymentPostprocessing = 0;
432 shellPath = /bin/sh; 424 shellPath = /bin/sh;
433 shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; 425 shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
@@ -152,7 +152,8 @@ class TodayTabBody extends StatelessWidget { @@ -152,7 +152,8 @@ class TodayTabBody extends StatelessWidget {
152 child: Obx(() => Image.asset( 152 child: Obx(() => Image.asset(
153 controller.v2StressScore.value?.stateBg() ?? 153 controller.v2StressScore.value?.stateBg() ??
154 'assets/images/today/bg_stress_state_0.png', 154 'assets/images/today/bg_stress_state_0.png',
155 - fit: BoxFit.fill, 155 + fit: BoxFit.cover,
  156 + width: double.infinity,
156 )), 157 )),
157 ), 158 ),
158 Obx( 159 Obx(
@@ -45,6 +45,7 @@ class NoHealthDataPage extends StatelessWidget { @@ -45,6 +45,7 @@ class NoHealthDataPage extends StatelessWidget {
45 const _PageHeading(), 45 const _PageHeading(),
46 const SizedBox(height: 24), 46 const SizedBox(height: 24),
47 const _InfoCard( 47 const _InfoCard(
  48 + path: 'assets/images/common/ic_apple_watch.png',
48 title: '错误1:Apple Watch 数据不可用', 49 title: '错误1:Apple Watch 数据不可用',
49 body: 50 body:
50 '看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。', 51 '看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。',
@@ -185,10 +186,12 @@ class _InfoCard extends StatelessWidget { @@ -185,10 +186,12 @@ class _InfoCard extends StatelessWidget {
185 const _InfoCard({ 186 const _InfoCard({
186 required this.title, 187 required this.title,
187 required this.body, 188 required this.body,
  189 + required this.path,
188 }); 190 });
189 191
190 final String title; 192 final String title;
191 final String body; 193 final String body;
  194 + final String path;
192 195
193 @override 196 @override
194 Widget build(BuildContext context) { 197 Widget build(BuildContext context) {
@@ -196,7 +199,13 @@ class _InfoCard extends StatelessWidget { @@ -196,7 +199,13 @@ class _InfoCard extends StatelessWidget {
196 child: Column( 199 child: Column(
197 crossAxisAlignment: CrossAxisAlignment.start, 200 crossAxisAlignment: CrossAxisAlignment.start,
198 children: [ 201 children: [
199 - const Center(child: _IconPlaceholder()), 202 + Center(
  203 + child: Image(
  204 + image: AssetImage(path),
  205 + width: 56,
  206 + height: 56,
  207 + ),
  208 + ),
200 const SizedBox(height: 10), 209 const SizedBox(height: 10),
201 Text( 210 Text(
202 title, 211 title,
@@ -235,7 +244,13 @@ class _AuthorizationCard extends StatelessWidget { @@ -235,7 +244,13 @@ class _AuthorizationCard extends StatelessWidget {
235 crossAxisAlignment: CrossAxisAlignment.start, 244 crossAxisAlignment: CrossAxisAlignment.start,
236 mainAxisSize: MainAxisSize.min, 245 mainAxisSize: MainAxisSize.min,
237 children: [ 246 children: [
238 - Center(child: _IconPlaceholder()), 247 + Center(
  248 + child: Image(
  249 + image: AssetImage('assets/images/common/ic_apple_health.png'),
  250 + width: 56,
  251 + height: 56,
  252 + ),
  253 + ),
239 SizedBox(height: 10), 254 SizedBox(height: 10),
240 Text( 255 Text(
241 '错误 2:健康数据访问未授权', 256 '错误 2:健康数据访问未授权',
@@ -299,7 +314,13 @@ class _SystemIssueCard extends StatelessWidget { @@ -299,7 +314,13 @@ class _SystemIssueCard extends StatelessWidget {
299 child: Column( 314 child: Column(
300 crossAxisAlignment: CrossAxisAlignment.start, 315 crossAxisAlignment: CrossAxisAlignment.start,
301 children: [ 316 children: [
302 - Center(child: _IconPlaceholder()), 317 + Center(
  318 + child: Image(
  319 + image: AssetImage('assets/images/common/ic_apple_health.png'),
  320 + width: 56,
  321 + height: 56,
  322 + ),
  323 + ),
303 SizedBox(height: 10), 324 SizedBox(height: 10),
304 Text( 325 Text(
305 '错误 3:系统问题', 326 '错误 3:系统问题',