- 新增后台任务管理器,支持任务的注册、执行和状态监控 - 实现自定义Hook,简化后台任务的使用和管理 - 添加示例任务,包括数据同步、健康数据更新和通知检查等 - 更新文档,详细描述后台任务系统的实现和使用方法 - 优化相关组件,确保用户体验和界面一致性
79 lines
2.3 KiB
JSON
79 lines
2.3 KiB
JSON
{
|
|
"expo": {
|
|
"name": "Sealife",
|
|
"slug": "digital-pilates",
|
|
"version": "1.0.4",
|
|
"orientation": "portrait",
|
|
"icon": "./assets/images/Sealife.jpeg",
|
|
"scheme": "digitalpilates",
|
|
"userInterfaceStyle": "light",
|
|
"newArchEnabled": true,
|
|
"jsEngine": "jsc",
|
|
"ios": {
|
|
"supportsTablet": false,
|
|
"bundleIdentifier": "com.anonymous.digitalpilates",
|
|
"infoPlist": {
|
|
"ITSAppUsesNonExemptEncryption": false,
|
|
"NSCameraUsageDescription": "应用需要使用相机以拍摄您的体态照片用于AI测评。",
|
|
"NSPhotoLibraryUsageDescription": "应用需要访问相册以选择您的体态照片用于AI测评。",
|
|
"NSPhotoLibraryAddUsageDescription": "应用需要写入相册以保存拍摄的体态照片(可选)。",
|
|
"UIBackgroundModes": [
|
|
"remote-notification"
|
|
]
|
|
}
|
|
},
|
|
"android": {
|
|
"adaptiveIcon": {
|
|
"foregroundImage": "./assets/images/Sealife.jpeg",
|
|
"backgroundColor": "#ffffff"
|
|
},
|
|
"edgeToEdgeEnabled": true,
|
|
"package": "com.anonymous.digitalpilates",
|
|
"permissions": [
|
|
"android.permission.RECEIVE_BOOT_COMPLETED",
|
|
"android.permission.VIBRATE",
|
|
"android.permission.WAKE_LOCK"
|
|
]
|
|
},
|
|
"web": {
|
|
"bundler": "metro",
|
|
"output": "static",
|
|
"favicon": "./assets/images/Sealife.jpeg"
|
|
},
|
|
"plugins": [
|
|
"expo-router",
|
|
[
|
|
"expo-splash-screen",
|
|
{
|
|
"image": "./assets/images/Sealife.jpeg",
|
|
"imageWidth": 40,
|
|
"resizeMode": "contain",
|
|
"backgroundColor": "#ffffff"
|
|
}
|
|
],
|
|
[
|
|
"react-native-health",
|
|
{
|
|
"enableHealthAPI": true,
|
|
"healthSharePermission": "应用需要访问您的健康数据(步数与能量消耗)以展示运动统计。",
|
|
"healthUpdatePermission": "应用需要更新您的健康数据(体重信息)以记录您的健身进度。"
|
|
}
|
|
],
|
|
[
|
|
"expo-notifications",
|
|
{
|
|
"icon": "./assets/images/Sealife.jpeg",
|
|
"color": "#ffffff",
|
|
"sounds": [
|
|
"./assets/sounds/notification.wav"
|
|
]
|
|
}
|
|
],
|
|
"expo-background-task"
|
|
],
|
|
"experiments": {
|
|
"typedRoutes": true
|
|
}
|
|
}
|
|
}
|