|
| 1 | +module.exports = { |
| 2 | + expo: { |
| 3 | + name: 'Timeflow', |
| 4 | + slug: 'timeflow', |
| 5 | + version: '1.0.0', |
| 6 | + orientation: 'portrait', |
| 7 | + icon: './assets/icon.png', |
| 8 | + userInterfaceStyle: 'light', |
| 9 | + ios: { |
| 10 | + supportsTablet: true, |
| 11 | + infoPlist: { |
| 12 | + NSMicrophoneUsageDescription: '需要麦克风权限来录制语音指令', |
| 13 | + NSLocationWhenInUseUsageDescription: '需要定位权限来关联语音指令发生的地点', |
| 14 | + UIBackgroundModes: ['location'], |
| 15 | + }, |
| 16 | + bundleIdentifier: 'com.anonymous.timeflow', |
| 17 | + }, |
| 18 | + android: { |
| 19 | + package: 'com.anonymous.timeflow', |
| 20 | + permissions: [ |
| 21 | + 'RECORD_AUDIO', |
| 22 | + 'ACCESS_COARSE_LOCATION', |
| 23 | + 'ACCESS_FINE_LOCATION', |
| 24 | + 'ACCESS_BACKGROUND_LOCATION', |
| 25 | + 'FOREGROUND_SERVICE', |
| 26 | + 'FOREGROUND_SERVICE_LOCATION', |
| 27 | + 'SCHEDULE_EXACT_ALARM', |
| 28 | + 'POST_NOTIFICATIONS', |
| 29 | + 'USE_FULL_SCREEN_INTENT', |
| 30 | + 'SYSTEM_ALERT_WINDOW', |
| 31 | + 'REQUEST_IGNORE_BATTERY_OPTIMIZATIONS', |
| 32 | + 'FOREGROUND_SERVICE_MEDIA_PLAYBACK', |
| 33 | + 'VIBRATE', |
| 34 | + ], |
| 35 | + adaptiveIcon: { |
| 36 | + backgroundColor: '#E6F4FE', |
| 37 | + foregroundImage: './assets/android-icon-foreground.png', |
| 38 | + backgroundImage: './assets/android-icon-background.png', |
| 39 | + monochromeImage: './assets/android-icon-monochrome.png', |
| 40 | + }, |
| 41 | + predictiveBackGestureEnabled: false, |
| 42 | + }, |
| 43 | + plugins: [ |
| 44 | + 'expo-sqlite', |
| 45 | + [ |
| 46 | + 'expo-location', |
| 47 | + { |
| 48 | + locationAlwaysAndWhenInUsePermission: |
| 49 | + '允许 Timeflow 使用你的位置,以便在到达或离开地点时提醒你。', |
| 50 | + locationWhenInUsePermission: '允许 Timeflow 在使用期间访问位置,以便地点提醒生效。', |
| 51 | + isIosBackgroundLocationEnabled: true, |
| 52 | + isAndroidBackgroundLocationEnabled: true, |
| 53 | + isAndroidForegroundServiceEnabled: true, |
| 54 | + }, |
| 55 | + ], |
| 56 | + '@irvingouj/expo-audio-stream', |
| 57 | + [ |
| 58 | + 'expo-audio', |
| 59 | + { |
| 60 | + microphonePermission: '需要麦克风权限来录制语音指令', |
| 61 | + enableBackgroundPlayback: true, |
| 62 | + }, |
| 63 | + ], |
| 64 | + [ |
| 65 | + 'expo-notifications', |
| 66 | + { |
| 67 | + icon: './assets/icon.png', |
| 68 | + color: '#15352B', |
| 69 | + defaultChannel: 'timeflow-reminders', |
| 70 | + }, |
| 71 | + ], |
| 72 | + './plugins/withTimeflowAlarm', |
| 73 | + [ |
| 74 | + './plugins/withTimeflowBaiduLocation', |
| 75 | + { |
| 76 | + apiKey: process.env.TIMEFLOW_BAIDU_LOCATION_API_KEY, |
| 77 | + }, |
| 78 | + ], |
| 79 | + ], |
| 80 | + }, |
| 81 | +}; |
0 commit comments