-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathapp.config.ts
109 lines (108 loc) · 3.38 KB
/
app.config.ts
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
import { ExpoConfig, ConfigContext } from 'expo/config';
export default ({ config }: ConfigContext): ExpoConfig => {
return {
name: 'Chatwoot',
slug: process.env.EXPO_PUBLIC_APP_SLUG || 'chatwoot-mobile',
version: '1.10.55',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
ios: {
supportsTablet: true,
bundleIdentifier: 'com.chatwoot.app',
infoPlist: {
NSCameraUsageDescription:
'This app requires access to the camera to upload images and videos.',
NSPhotoLibraryUsageDescription:
'This app requires access to the photo library to upload images.',
NSMicrophoneUsageDescription: 'This app requires access to the microphone to record audio.',
NSAppleMusicUsageDescription:
'This app does not use Apple Music, but a system API may require this permission.',
UIBackgroundModes: ['fetch', 'remote-notification'],
},
// Please use the relative path to the google-services.json file
googleServicesFile: process.env.EXPO_PUBLIC_IOS_GOOGLE_SERVICES_FILE,
entitlements: {
'aps-environment': 'production',
},
associatedDomains: ['applinks:app.chatwoot.com'],
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
package: 'com.chatwoot.app',
permissions: [
'android.permission.CAMERA',
'android.permission.READ_EXTERNAL_STORAGE',
'android.permission.WRITE_EXTERNAL_STORAGE',
'android.permission.RECORD_AUDIO',
],
// Please use the relative path to the google-services.json file
googleServicesFile: process.env.EXPO_PUBLIC_ANDROID_GOOGLE_SERVICES_FILE,
intentFilters: [
{
action: 'VIEW',
autoVerify: true,
data: [
{
scheme: 'https',
host: 'app.chatwoot.com',
pathPrefix: '/app/accounts/',
pathPattern: '/*/conversations/*',
},
],
category: ['BROWSABLE', 'DEFAULT'],
},
],
},
extra: {
eas: {
projectId: process.env.EXPO_PUBLIC_PROJECT_ID,
storybookEnabled: process.env.EXPO_STORYBOOK_ENABLED,
},
},
owner: 'chatwoot',
plugins: [
[
'react-native-permissions',
{
iosPermissions: ['Camera', 'PhotoLibrary', 'MediaLibrary'],
},
],
[
'@sentry/react-native/expo',
{
url: 'https://sentry.io/',
project: process.env.EXPO_PUBLIC_SENTRY_PROJECT_NAME,
organization: process.env.EXPO_PUBLIC_SENTRY_ORG_NAME,
},
],
'@react-native-firebase/app',
'@react-native-firebase/messaging',
[
'expo-build-properties',
{
// https://github.com/invertase/notifee/issues/808#issuecomment-2175934609
android: {
compileSdkVersion: 34,
targetSdkVersion: 34,
extraMavenRepos: ['$rootDir/../../../node_modules/@notifee/react-native/android/libs'],
},
ios: {
useFrameworks: 'static',
},
},
],
],
androidNavigationBar: {
backgroundColor: '#ffffff',
},
};
};