-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
142 lines (132 loc) · 3.66 KB
/
app.config.js
File metadata and controls
142 lines (132 loc) · 3.66 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
let Config = {
BASE_URL: '',
SENTRY_MODE: '',
};
let googleServiceJson = null;
let googleServicePlist = null;
switch (process.env.APP_MODE || process.env.EXPO_PUBLIC_APP_MODE) {
case 'production':
Config.BASE_URL = 'https://stepby.one';
Config.SENTRY_MODE = 'production';
googleServiceJson =
process.env.GOOGLE_SERVICES_PRODUCTION_JSON ||
'./google-services.production.json';
googleServicePlist =
process.env.GOOGLE_SERVICES_PRODUCTION_PLIST ||
'./GoogleService-Info.production.plist';
break;
case 'staging':
Config.BASE_URL = 'https://dev.stepby.one';
Config.SENTRY_MODE = 'staging';
googleServiceJson =
process.env.GOOGLE_SERVICES_STAGING_JSON ||
'./google-services.staging.json';
googleServicePlist =
process.env.GOOGLE_SERVICES_STAGING_PLIST ||
'./GoogleService-Info.staging.plist';
break;
case 'development':
Config.BASE_URL = 'https://dev.stepby.one';
Config.SENTRY_MODE = 'development';
googleServiceJson = './google-services.development.json';
googleServicePlist = './GoogleService-Info.development.plist';
break;
case 'local':
Config.BASE_URL = 'http://10.0.2.2:8000';
Config.SENTRY_MODE = 'development';
googleServiceJson = './google-services.development.json';
googleServicePlist = './GoogleService-Info.development.plist';
//TODO: 생각해보니 local이나 dev일 때는 굳이 로깅할 필요도 없고 firebase 설정할 필요가 있나
break;
default:
}
const expoConfig = {
entryPoint: './app/_layout.jsx',
expo: {
name: 'onestep',
slug: 'onestep',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
splash: {
image: './assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#ffffff',
},
ios: {
supportsTablet: true,
bundleIdentifier: 'com.safezone.onestep',
entitlements: {
'aps-environment': 'production',
},
usesAppleSignIn: true,
},
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
package: 'com.safezone.onestep',
versionCode: 5,
softwareKeyboardLayoutMode: 'pan',
},
web: {
favicon: './assets/favicon.png',
},
extra: {
eas: {
projectId: '63f6bbd9-1594-44b3-b161-0e0051413ef0',
},
storybookEnabled: process.env.STORYBOOK_ENABLED,
...Config,
},
scheme: 'onestep',
owner: 'byungchanko',
//TODO: pdofile 수정 플러그인 추가
plugins: [
[
'expo-font',
{
fonts: [
'./assets/fonts/Pretendard-Regular.otf',
'./assets/fonts/Pretendard-Bold.otf',
'./assets/fonts/Pretendard-Medium.otf',
],
},
],
'expo-router',
'@react-native-firebase/app',
'@react-native-firebase/crashlytics',
'expo-build-properties',
[
'expo-build-properties',
{
ios: {
useFrameworks: 'static',
},
},
],
[
'@sentry/react-native/expo',
{
url: 'https://sentry.io/',
project: 'react-native',
organization: 'ec5b082086ad',
},
],
'./plugins/withStaticFrameworks',
],
runtimeVersion: '1.0.0',
updates: {
url: 'https://u.expo.dev/63f6bbd9-1594-44b3-b161-0e0051413ef0',
},
},
};
if (googleServiceJson) {
expoConfig.expo.android.googleServicesFile = googleServiceJson;
}
if (googleServicePlist) {
expoConfig.expo.ios.googleServicesFile = googleServicePlist;
}
module.exports = expoConfig;