Commit c90053e8d3b6265843f39593c3f7604c439dbf76

Authored by 常守达
1 parent 571eac67

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

... ... @@ -21,14 +21,11 @@ class HealthKitHostApiImpl(
return HuaweiHealthBridge.cancelHealthAppAuthorization(activity)
}
override fun performHealthUpload(): HealthUploadResult {
return HealthUploadResult(
commonUploadSuccess = false,
sleepUploadSuccess = false,
errorMessage = "Native bulk upload runs via Dart HealthKitUploadService; HMS read bridge pending",
)
override fun performHealthUpload(callback: (Result<HealthUploadResult>) -> Unit) {
}
override fun checkHealthAppAuthorization(callback: (Result<HealthAuthorization>) -> Unit) {
}
... ...
... ... @@ -112,4 +112,12 @@ class PlatformHostApiImpl(private val application: android.app.Application) : Pl
return true
}
override fun nativeHandleUrl(urlString: String): Boolean {
return false
}
override fun requestUnhandedUrl(): String? {
return ""
}
}
... ...

5.73 KB | W: | H:

5.13 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 77;
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
... ... @@ -342,14 +342,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
... ... @@ -420,14 +416,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
... ...
... ... @@ -152,7 +152,8 @@ class TodayTabBody extends StatelessWidget {
child: Obx(() => Image.asset(
controller.v2StressScore.value?.stateBg() ??
'assets/images/today/bg_stress_state_0.png',
fit: BoxFit.fill,
fit: BoxFit.cover,
width: double.infinity,
)),
),
Obx(
... ...
... ... @@ -45,6 +45,7 @@ class NoHealthDataPage extends StatelessWidget {
const _PageHeading(),
const SizedBox(height: 24),
const _InfoCard(
path: 'assets/images/common/ic_apple_watch.png',
title: '错误1:Apple Watch 数据不可用',
body:
'看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。',
... ... @@ -185,10 +186,12 @@ class _InfoCard extends StatelessWidget {
const _InfoCard({
required this.title,
required this.body,
required this.path,
});
final String title;
final String body;
final String path;
@override
Widget build(BuildContext context) {
... ... @@ -196,7 +199,13 @@ class _InfoCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Center(child: _IconPlaceholder()),
Center(
child: Image(
image: AssetImage(path),
width: 56,
height: 56,
),
),
const SizedBox(height: 10),
Text(
title,
... ... @@ -235,7 +244,13 @@ class _AuthorizationCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Center(child: _IconPlaceholder()),
Center(
child: Image(
image: AssetImage('assets/images/common/ic_apple_health.png'),
width: 56,
height: 56,
),
),
SizedBox(height: 10),
Text(
'错误 2:健康数据访问未授权',
... ... @@ -299,7 +314,13 @@ class _SystemIssueCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Center(child: _IconPlaceholder()),
Center(
child: Image(
image: AssetImage('assets/images/common/ic_apple_health.png'),
width: 56,
height: 56,
),
),
SizedBox(height: 10),
Text(
'错误 3:系统问题',
... ...