-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
154 lines (150 loc) · 3.45 KB
/
app.config.ts
File metadata and controls
154 lines (150 loc) · 3.45 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
import { ConfigContext, ExpoConfig } from "@expo/config";
import { config } from "dotenv";
config();
const projectId = process.env.EXPO_PUBLIC_PROJECT_ID;
const kakaoNativeAppKey = process.env.EXPO_PUBLIC_NATIVE_APP_KEY;
const bundleIdentifier = process.env.EXPO_PUBLIC_APP_BUNDLE_IDENTIFIER;
const iosUrlScheme = process.env.EXPO_PUBLIC_IOS_URL_SCHEME;
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
owner: "gwangsoo",
name: "connectco",
slug: "connectco",
version: "1.0.0",
orientation: "portrait",
icon: "./src/assets/images/icon.png",
scheme: bundleIdentifier,
userInterfaceStyle: "automatic",
newArchEnabled: true,
extra: {
eas: {
projectId,
},
},
updates: {
url: `https://u.expo.dev/${projectId}`,
},
runtimeVersion: "1.0.0",
ios: {
supportsTablet: true,
googleServicesFile: process.env.GOOGLE_SERVICES_PLIST ?? "./GoogleService-Info.plist",
bundleIdentifier: bundleIdentifier,
usesAppleSignIn: true,
entitlements: {
"aps-environment": "production",
},
infoPlist: {
CFBundleURLTypes: [
{
CFBundleURLSchemes: [iosUrlScheme],
},
],
NSAppTransportSecurity: {
NSAllowsArbitraryLoads: true,
},
},
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: "./src/assets/images/adaptive-icon.png",
backgroundColor: "#ffffff",
},
package: bundleIdentifier,
googleServicesFile: process.env.GOOGLE_SERVICES_JSON ?? "./google-services.json",
},
web: {
bundler: "metro",
output: "static",
favicon: "./src/assets/images/favicon.png",
},
plugins: [
"expo-apple-authentication",
"expo-router",
[
"expo-splash-screen",
{
image: "./src/assets/images/splash-icon.png",
imageWidth: 200,
resizeMode: "contain",
backgroundColor: "#ffffff",
},
],
[
"expo-image-picker",
{
photosPermission: "사용자의 사진에 액세스하려면 권한이 필요합니다.",
},
],
[
"expo-asset",
{
assets: ["./src/assets/static"],
},
],
[
"expo-location",
{
locationAlwaysAndWhenInUsePermission: "connectco가 사용자의 위치에 접근하고자 합니다.",
},
],
[
"expo-build-properties",
{
android: {
extraMavenRepos: ["https://devrepo.kakao.com/nexus/content/groups/public/"],
newArchEnabled: true,
},
ios: {
newArchEnabled: true,
},
},
],
[
"@react-native-kakao/core",
{
nativeAppKey: kakaoNativeAppKey,
android: {
authCodeHandlerActivity: true,
},
ios: {
handleKakaoOpenUrl: true,
},
},
],
[
"@react-native-google-signin/google-signin",
{
iosUrlScheme,
},
],
[
"@react-native-seoul/naver-login",
{
urlScheme: bundleIdentifier,
},
],
"@react-native-firebase/app",
"@react-native-firebase/messaging",
[
"expo-build-properties",
{
ios: {
useFrameworks: "static",
},
},
],
[
"expo-secure-store",
{
configureAndroidBackup: true,
faceIDPermission: "Allow $(PRODUCT_NAME) to access your Face ID biometric data.",
},
],
],
experiments: {
typedRoutes: true,
},
});