-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
241 lines (233 loc) · 7.23 KB
/
Copy pathapp.config.js
File metadata and controls
241 lines (233 loc) · 7.23 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
const IS_DEV = process.env.EXPO_PUBLIC_IS_DEV === 'true';
// Keep app version in sync with package.json
// Expo config is executed in Node; requiring JSON here is safe and supported
const pkg = require('./package.json');
export const app_name_slug = 'wal';
export const app_name = IS_DEV ? 'WAL DEV' : 'WAL';
const ios_bundle_identifier = IS_DEV
? 'com.greetai.mentdev'
: 'com.greetai.ment';
const ios_app_group = IS_DEV
? 'group.com.greetai.mentdev'
: 'group.com.greetai.ment';
// Build plugin list dynamically so the app can run without Firebase files
const pluginsList = [
// Generates native Apple targets from /targets (Notification Service Extension, etc.)
'@bacons/apple-targets',
'expo-video',
'expo-router',
[
'expo-share-intent',
{
iosActivationRules: {
NSExtensionActivationSupportsWebURLWithMaxCount: 1,
NSExtensionActivationSupportsWebPageWithMaxCount: 1,
NSExtensionActivationSupportsText: true,
NSExtensionActivationSupportsImageWithMaxCount: 10,
},
androidIntentFilters: ['text/*', 'image/*'],
},
],
[
'expo-notifications',
{
icon: './assets/images/small-icon-android.png',
color: '#000',
defaultChannel: 'default',
enableBackgroundRemoteNotifications: true,
},
],
[
'react-native-vision-camera',
{
cameraPermissionText:
'$(PRODUCT_NAME) needs access to your Camera to capture photos and videos or go live.',
// optionally, if you want to record audio:
enableMicrophonePermission: true,
microphonePermissionText:
'$(PRODUCT_NAME) needs access to your Microphone to capture audio.',
},
],
[
'@sentry/react-native/expo',
{
url: 'https://sentry.io/',
project: 'react-native',
organization: 'greetai-inc',
},
],
[
'expo-location',
{
locationPermissionText:
'This app accesses your location to let you post videos or photos to nearby locations.',
isIosBackgroundLocationEnabled: false,
isAndroidBackgroundLocationEnabled: false,
isAndroidForegroundServiceEnabled: false,
},
],
[
'expo-localization',
{
supportedLocales: {
ios: ['en', 'fr', 'ka'],
android: ['en', 'fr', 'ka'],
},
},
],
[
'expo-contacts',
{
contactsPermission:
'WAL needs access to your contacts to help you find friends on the app. Your contact information is only used for friend discovery and is never stored or shared.',
},
],
'react-native-compressor',
[
'expo-build-properties',
{
ios: {
deploymentTarget: '15.1',
reactNativeReleaseLevel: 'experimental',
},
android: {
reactNativeReleaseLevel: 'experimental',
},
},
],
// Removed react-native-share plugin; using RN Share API / expo-sharing instead
'@livekit/react-native-expo-plugin',
'@config-plugins/react-native-webrtc',
[
'expo-image-picker',
{
photosPermission:
'$(PRODUCT_NAME) needs access to your photos to set profile image.',
cameraPermission:
'$(PRODUCT_NAME) needs access to your Camera to capture photos and videos or go live on locations.',
},
],
[
'expo-splash-screen',
{
backgroundColor: '#000000',
image: './assets/images/icon.png',
dark: {
image: './assets/images/icon.png',
backgroundColor: '#000000',
},
imageWidth: 200,
},
],
];
// Firebase config toggles: enable only if explicitly enabled
const DISABLE_FIREBASE = true;
// if (!DISABLE_FIREBASE) {
// pluginsList.push('@react-native-firebase/app');
// }
export default {
expo: {
newArchEnabled: true,
platforms: ['ios', 'android', 'web'],
name: app_name,
slug: 'mnt-app',
owner: 'nshelia',
version: pkg.version,
orientation: 'portrait',
icon: './assets/images/logo-big.png',
scheme: app_name_slug,
userInterfaceStyle: 'automatic',
backgroundColor: '#000000',
updates: {
url: 'https://u.expo.dev/a9de94ea-576e-4767-ae3f-085bfe155f96',
enabled: true,
checkAutomatically: 'ON_LOAD',
},
runtimeVersion: {
policy: 'appVersion',
},
ios: {
appleTeamId: '7JZBPQL8L6',
associatedDomains: [`applinks:${app_name_slug}.ge`],
entitlements: {
// Required for iOS "Communication Notifications" (Messenger/iMessage style sender avatar)
'com.apple.developer.usernotifications.communication': true,
// Keep capabilities in sync with existing native entitlements
'com.apple.security.application-groups': [ios_app_group],
'com.apple.developer.associated-domains': [
`applinks:${app_name_slug}.ge`,
],
},
infoPlist: {
NSCameraUsageDescription:
'This app uses the camera to capture photos and videos.',
NSPhotoLibraryUsageDescription:
'This app accesses your photos to let you share them.',
NSPhotoLibraryAddUsageDescription:
'This app saves photos and videos to your photo library.',
NSMicrophoneUsageDescription:
'This app accesses your microphone to let you share them.',
NSContactsUsageDescription:
'WAL uses your contacts to help you find and connect with friends who are already using the app. Your contact data is only used for finding friends and is never stored or used for any other purpose.',
NSLocationWhenInUseUsageDescription:
'This app accesses your location to let you post videos or photos to nearby locations.',
// Ensure push background delivery + notification service extension triggers are supported.
UIBackgroundModes: ['remote-notification'],
ITSAppUsesNonExemptEncryption: false,
NSUserActivityTypes: [
`${ios_bundle_identifier}.expo.index_route`,
'INSendMessageIntent',
],
},
supportsTablet: false,
bundleIdentifier: ios_bundle_identifier,
// on iOS firebase is not required but on Android FCM needs it.
googleServicesFile: !DISABLE_FIREBASE
? './GoogleService-Info.plist'
: undefined,
},
assetBundlePatterns: ['**/*'],
android: {
// Check expo docs: https://docs.expo.dev/versions/latest/config/app/#softwarekeyboardlayoutmode
softwareKeyboardLayoutMode: 'pan',
package: IS_DEV ? 'com.greetai.mntdev' : 'com.greetai.mnt',
adaptiveIcon: {
foregroundImage: './assets/images/adaptive-icon.png',
backgroundColor: '#ffffff',
},
googleServicesFile: './google-services.json',
intentFilters: [
{
action: 'VIEW',
autoVerify: true,
data: [
{
scheme: 'https',
host: `${app_name_slug}.ge`,
pathPrefix: '/links',
},
{
scheme: 'https',
host: `${app_name_slug}.ge`,
pathPrefix: '/status',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
],
permissions: ['READ_CONTACTS'],
},
plugins: pluginsList,
experiments: {
typedRoutes: true,
},
extra: {
router: {
origin: false,
},
eas: {
projectId: 'a9de94ea-576e-4767-ae3f-085bfe155f96',
},
},
},
};