-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.config.js
More file actions
166 lines (159 loc) · 4.85 KB
/
Copy pathapp.config.js
File metadata and controls
166 lines (159 loc) · 4.85 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
import "dotenv/config";
import fs from "node:fs";
const hasIosGoogleServiceFile = fs.existsSync("./GoogleService-Info.plist");
const hasAndroidGoogleServiceFile = fs.existsSync("./google-services.json");
const hasNaverMapClientId = !!process.env.NAVER_MAP_CLIENT_ID;
const hasKakaoNativeAppKey = !!process.env.EXPO_PUBLIC_KAKAO_NATIVE_APP_KEY;
/** @type {import('expo/config').ExpoConfig} */
const config = {
name: "semosan",
slug: "semosan",
version: "1.2.0",
orientation: "portrait",
icon: "./assets/images/app-icon.png",
scheme: "semosan",
userInterfaceStyle: "light",
newArchEnabled: true,
ios: {
supportsTablet: true,
bundleIdentifier: "com.tastyhiking.semosanapp",
appleTeamId: "M8D59WC33R",
usesAppleSignIn: true,
...(hasIosGoogleServiceFile
? { googleServicesFile: "./GoogleService-Info.plist" }
: {}),
infoPlist: {
CFBundleAllowMixedLocalizations: true,
NSCameraUsageDescription:
"프로필 사진 촬영을 위해 카메라 접근이 필요합니다.",
NSPhotoLibraryUsageDescription:
"프로필 사진 선택을 위해 사진 라이브러리 접근이 필요합니다.",
UIBackgroundModes: ["remote-notification", "location"],
ITSAppUsesNonExemptEncryption: false,
},
},
locales: {
ko: "./locales/ko.json",
en: "./locales/en.json",
},
android: {
...(hasAndroidGoogleServiceFile
? { googleServicesFile: "./google-services.json" }
: {}),
adaptiveIcon: {
backgroundColor: "#E6F4FE",
foregroundImage: "./assets/images/android-icon-foreground.png",
backgroundImage: "./assets/images/android-icon-background.png",
monochromeImage: "./assets/images/android-icon-monochrome.png",
},
edgeToEdgeEnabled: true,
predictiveBackGestureEnabled: false,
permissions: [],
package: "com.tastyhiking.semosanapp",
},
web: {
output: "static",
favicon: "./assets/images/app-icon.png",
bundler: "metro",
},
plugins: [
[
"@sentry/react-native/expo",
{
url: "https://sentry.io/",
note: "Use SENTRY_AUTH_TOKEN env to authenticate with Sentry.",
organization: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
},
],
"expo-router",
"expo-font",
"@react-native-firebase/app",
[
"expo-location",
{
locationWhenInUsePermission:
"현재 위치를 사용해 주변 산을 찾고, 지도에서 내 위치와 등산 경로를 안내합니다. 예: 가까운 산 추천 및 트래킹 중 현재 위치 표시",
locationAlwaysAndWhenInUsePermission:
"코스 추적 중 앱이 백그라운드에 있어도 위치를 기록하기 위해 항상 위치 접근 권한이 필요합니다.",
locationAlwaysPermission:
"코스 추적 중 앱이 백그라운드에 있어도 위치를 기록하기 위해 항상 위치 접근 권한이 필요합니다.",
isIosBackgroundLocationEnabled: true,
isAndroidBackgroundLocationEnabled: true,
},
],
[
"expo-media-library",
{
savePhotosPermission:
"포토 리포트 이미지를 사진첩에 저장하기 위해 접근 권한이 필요합니다.",
},
],
"./plugins/withModularHeaders",
"./plugins/withLiveActivity",
[
"expo-notifications",
{
icon: "./assets/images/app-icon.png",
color: "#ffffff",
...(hasAndroidGoogleServiceFile
? { googleServicesFile: "./google-services.json" }
: {}),
enableBackgroundRemoteNotifications: true,
},
],
...(hasNaverMapClientId
? [
[
"@mj-studio/react-native-naver-map",
{
client_id: process.env.NAVER_MAP_CLIENT_ID,
},
],
]
: []),
[
"expo-splash-screen",
{
image: "./assets/images/splash-app-icon.png",
imageWidth: 120,
resizeMode: "contain",
backgroundColor: "#1a1b1f",
dark: { backgroundColor: "#1a1b1f" },
},
],
"expo-apple-authentication",
"expo-web-browser",
[
"expo-image-picker",
{
photosPermission:
"사진첩에 접근하여 포토 리포트에 사용할 사진을 가져옵니다.",
microphonePermission: false,
},
],
...(hasKakaoNativeAppKey
? [
[
"@react-native-kakao/core",
{
nativeAppKey: process.env.EXPO_PUBLIC_KAKAO_NATIVE_APP_KEY,
ios: { handleKakaoOpenUrl: true },
android: { authCodeHandlerActivity: true },
},
],
]
: []),
"react-native-compressor",
],
experiments: {
typedRoutes: true,
reactCompiler: true,
},
extra: {
eas: {
projectId: "df38234e-8a6e-42ca-8c16-21eed97912bc",
},
},
};
export default config;