-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathapp.config.ts
More file actions
186 lines (183 loc) ยท 5.44 KB
/
Copy pathapp.config.ts
File metadata and controls
186 lines (183 loc) ยท 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
import 'tsx/cjs'
import packageJson from './package.json'
// Read version from environment variable (set during build) or fallback to package.json
const appVersion = packageJson.version
export default {
expo: {
name: 'Cherry Studio',
slug: 'cherry-studio',
version: appVersion,
// orientation: 'portrait', ้ๅฎ็ซๅฑ
orientation: 'default',
icon: './src/assets/images/favicon.png',
scheme: 'cherry-studio',
userInterfaceStyle: 'automatic',
newArchEnabled: true,
entryPoint: './src/app.js',
updates: {
url: 'https://u.expo.dev/80096eaf-3ad0-4b87-a466-15f04da1bacc'
},
runtimeVersion: {
policy: 'appVersion'
},
ios: {
supportsTablet: true,
bundleIdentifier: 'com.cherry-ai.cherry-studio-app',
userInterfaceStyle: 'automatic',
infoPlist: {
LSApplicationQueriesSchemes: ['shortcuts'],
NSSpeechRecognitionUsageDescription: 'Allow Cherry Studio App to use speech recognition for voice input.',
NSBonjourServices: ['_cherrystudio._tcp', '_http._tcp'],
NSLocalNetworkUsageDescription:
'Cherry Studio needs to access the local network to discover and connect to desktop applications.'
}
},
android: {
adaptiveIcon: {
foregroundImage: './src/assets/images/adaptive-icon.png',
backgroundColor: '#F65D5D'
},
edgeToEdgeEnabled: true,
package: 'com.cherry_ai.cherry_studio_app',
userInterfaceStyle: 'automatic',
predictiveBackGestureEnabled: false,
permissions: ['android.permission.ACCESS_WIFI_STATE', 'android.permission.CHANGE_WIFI_MULTICAST_STATE']
},
plugins: [
'./plugins/androidThemeColor',
[
'expo-build-properties',
{
ios: { deploymentTarget: '15.5' },
android: {
buildToolsVersion: '35.0.0',
compileSdkVersion: 35,
targetSdkVersion: 35,
minSdkVersion: 24,
gradleVersion: '8.13',
androidGradlePluginVersion: '8.13.0',
buildArchs: ['arm64-v8a'],
usesCleartextTraffic: true
}
}
],
[
'expo-splash-screen',
{
image: './src/assets/images/ios-splash-icon.png',
imageWidth: 144,
resizeMode: 'contain',
backgroundColor: '#ffffff',
dark: {
image: './src/assets/images/ios-splash-icon.png',
backgroundColor: '#000000'
},
ios: {
splash: {
image: './src/assets/images/ios-splash-icon.png',
backgroundColor: '#ffffff',
resizeMode: 'contain',
dark: {
image: './src/assets/images/ios-splash-icon.png',
backgroundColor: '#000000'
}
}
},
android: {
splash: {
image: './src/assets/images/ios-splash-icon.png',
backgroundColor: '#ffffff',
resizeMode: 'contain',
dark: {
image: './src/assets/images/ios-splash-icon.png',
backgroundColor: '#000000'
}
}
}
}
],
'expo-localization',
'expo-asset',
[
'expo-font',
{
fonts: ['./src/assets/fonts/FiraCode-Regular.ttf']
}
],
'expo-web-browser',
'expo-sqlite',
[
'expo-document-picker',
{
iCloudContainerEnvironment: 'Production'
}
],
[
'expo-image-picker',
{
photosPermission: 'The app accesses your photos to let you share them with your friends.'
}
],
[
'expo-camera',
{
cameraPermission: 'Allow Cherry Studio App to access your camera',
// microphonePermission: 'Allow Cherry Studio App to access your microphone',
recordAudioAndroid: true
}
],
[
'expo-media-library',
{
photosPermission: 'Allow Cherry Studio App to save images to your photo library.',
savePhotosPermission: 'Allow Cherry Studio App to save images to your photo library.',
isAccessMediaLocationEnabled: true
}
],
[
'expo-calendar',
{
calendarPermission: 'Allow Cherry Studio App to access your calendar.',
remindersPermission: 'Allow Cherry Studio App to access your reminders.'
}
],
['react-native-compressor'],
[
'expo-speech-recognition',
{
microphonePermission: 'Allow Cherry Studio App to use your microphone for voice input.',
speechRecognitionPermission: 'Allow Cherry Studio App to use speech recognition.'
}
],
[
'react-native-edge-to-edge',
{
android: {
parentTheme: 'Material3',
enforceNavigationBarContrast: false
}
}
],
[
'react-native-share',
{
ios: ['fb', 'instagram', 'twitter', 'tiktoksharesdk'],
android: ['com.facebook.katana', 'com.instagram.android', 'com.twitter.android', 'com.zhiliaoapp.musically'],
enableBase64ShareAndroid: true
}
],
'./plugins/heapSize'
],
experiments: {
typedRoutes: true,
reactCompiler: true,
tsconfigPaths: true
},
extra: {
eas: {
projectId: '80096eaf-3ad0-4b87-a466-15f04da1bacc'
},
appVersion
}
}
}