forked from slopus/happy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
177 lines (176 loc) · 6.31 KB
/
app.config.js
File metadata and controls
177 lines (176 loc) · 6.31 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
const variant = process.env.APP_ENV || 'development';
const name = {
development: "Happy (dev)",
preview: "Happy (preview)",
production: "Happy"
}[variant];
const bundleId = {
development: "com.slopus.happy.dev",
preview: "com.slopus.happy.preview",
production: "com.ex3ndr.happy"
}[variant];
export default {
expo: {
name,
slug: "happy",
version: "1.6.2",
runtimeVersion: "18",
orientation: "default",
icon: "./sources/assets/images/icon.png",
scheme: "happy",
userInterfaceStyle: "automatic",
newArchEnabled: true,
notification: {
icon: "./sources/assets/images/icon-notification.png",
iosDisplayInForeground: true
},
ios: {
supportsTablet: true,
bundleIdentifier: bundleId,
config: {
usesNonExemptEncryption: false
},
infoPlist: {
NSMicrophoneUsageDescription: "Allow $(PRODUCT_NAME) to access your microphone for voice conversations with AI.",
NSLocalNetworkUsageDescription: "Allow $(PRODUCT_NAME) to find and connect to local devices on your network.",
NSBonjourServices: ["_http._tcp", "_https._tcp"]
},
associatedDomains: variant === 'production' ? ["applinks:app.happy.engineering"] : []
},
android: {
adaptiveIcon: {
foregroundImage: "./sources/assets/images/icon-adaptive.png",
monochromeImage: "./sources/assets/images/icon-monochrome.png",
backgroundColor: "#18171C"
},
permissions: [
"android.permission.RECORD_AUDIO",
"android.permission.MODIFY_AUDIO_SETTINGS",
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.POST_NOTIFICATIONS",
],
blockedPermissions: [
"android.permission.ACTIVITY_RECOGNITION"
],
edgeToEdgeEnabled: true,
package: bundleId,
googleServicesFile: "./google-services.json",
intentFilters: variant === 'production' ? [
{
"action": "VIEW",
"autoVerify": true,
"data": [
{
"scheme": "https",
"host": "app.happy.engineering",
"pathPrefix": "/"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
] : []
},
web: {
bundler: "metro",
output: "single",
favicon: "./sources/assets/images/favicon.png"
},
plugins: [
require("./plugins/withEinkCompatibility.js"),
[
"expo-router",
{
root: "./sources/app"
}
],
"expo-updates",
"expo-asset",
"expo-localization",
"expo-mail-composer",
"expo-secure-store",
"expo-web-browser",
"react-native-vision-camera",
"@more-tech/react-native-libsodium",
"react-native-audio-api",
"@livekit/react-native-expo-plugin",
"@config-plugins/react-native-webrtc",
[
"expo-audio",
{
microphonePermission: "Allow $(PRODUCT_NAME) to access your microphone for voice conversations."
}
],
[
"expo-location",
{
locationAlwaysAndWhenInUsePermission: "Allow $(PRODUCT_NAME) to improve AI quality by using your location.",
locationAlwaysPermission: "Allow $(PRODUCT_NAME) to improve AI quality by using your location.",
locationWhenInUsePermission: "Allow $(PRODUCT_NAME) to improve AI quality by using your location."
}
],
[
"expo-calendar",
{
"calendarPermission": "Allow $(PRODUCT_NAME) to access your calendar to improve AI quality."
}
],
[
"expo-camera",
{
cameraPermission: "Allow $(PRODUCT_NAME) to access your camera to scan QR codes and share photos with AI.",
microphonePermission: "Allow $(PRODUCT_NAME) to access your microphone for voice conversations.",
recordAudioAndroid: true
}
],
[
"expo-notifications",
{
"enableBackgroundRemoteNotifications": true
}
],
[
'expo-splash-screen',
{
ios: {
backgroundColor: "#F2F2F7",
dark: {
backgroundColor: "#1C1C1E",
}
},
android: {
image: "./sources/assets/images/splash-android-light.png",
backgroundColor: "#F5F5F5",
dark: {
image: "./sources/assets/images/splash-android-dark.png",
backgroundColor: "#1e1e1e",
}
}
}
]
],
updates: {
url: "https://u.expo.dev/4558dd3d-cd5a-47cd-bad9-e591a241cc06",
requestHeaders: {
"expo-channel-name": "production"
}
},
experiments: {
typedRoutes: true
},
extra: {
router: {
root: "./sources/app"
},
eas: {
projectId: "4558dd3d-cd5a-47cd-bad9-e591a241cc06"
},
app: {
postHogKey: process.env.EXPO_PUBLIC_POSTHOG_API_KEY,
revenueCatAppleKey: process.env.EXPO_PUBLIC_REVENUE_CAT_APPLE,
revenueCatGoogleKey: process.env.EXPO_PUBLIC_REVENUE_CAT_GOOGLE,
revenueCatStripeKey: process.env.EXPO_PUBLIC_REVENUE_CAT_STRIPE
}
},
owner: "bulkacorp"
}
};