-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
85 lines (72 loc) · 2.08 KB
/
app.config.ts
File metadata and controls
85 lines (72 loc) · 2.08 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
import { ConfigContext, ExpoConfig } from 'expo/config';
const processEnv =
(globalThis as { process?: { env?: Record<string, string | undefined> } }).process?.env ?? {};
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
// ===== App 기본 정보 =====
name: '오늘한장',
slug: 'dailyfate',
version: '1.0.8',
// ===== 환경 변수 =====
extra: {
eas: {
projectId: '7eaf22a0-8a86-4d38-96f4-5c8eb183393b',
},
EXPO_BASE_URL: processEnv.EXPO_BASE_URL,
EXPO_AUTH_TOKEN: processEnv.EXPO_AUTH_TOKEN,
EXPO_COGNITO_REGION: processEnv.EXPO_COGNITO_REGION,
EXPO_COGNITO_USER_POOL_ID: processEnv.EXPO_COGNITO_USER_POOL_ID,
EXPO_COGNITO_CLIENT_ID: processEnv.EXPO_COGNITO_CLIENT_ID,
EXPO_COGNITO_TOKEN_USE: processEnv.EXPO_COGNITO_TOKEN_USE,
EXPO_COGNITO_CODE_TTL_MINUTES: processEnv.EXPO_COGNITO_CODE_TTL_MINUTES,
},
// ===== UI 기본 설정 =====
orientation: 'portrait',
userInterfaceStyle: 'light',
icon: './assets/icon.png',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
assetBundlePatterns: ['**/*'],
// ===== iOS 설정 =====
ios: {
...config.ios,
supportsTablet: true,
bundleIdentifier: 'com.dailyfate.frontend',
infoPlist: {
...config.ios?.infoPlist,
CFBundleDisplayName: '오늘한장', // 👈 iOS 홈 화면 앱 이름
ITSAppUsesNonExemptEncryption: false,
},
},
// ===== Android 설정 =====
android: {
...config.android,
package: 'com.dailyfate.frontend',
// @ts-expect-error - Expo config type does not include `label` yet.
label: '오늘한장',
adaptiveIcon: {
...(config.android?.adaptiveIcon ?? {}),
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
},
// ===== Web 설정 =====
web: {
...config.web,
favicon: './assets/favicon.png',
},
// ===== 기타 =====
scheme: 'frontend',
plugins: [
'expo-router',
[
'expo-notifications',
{
mode: 'development',
},
],
],
});