Repository navigation
Expand file tree
/
Copy pathapp.config.js
More file actions
85 lines (82 loc) · 2.46 KB
/
Copy pathapp.config.js
File metadata and controls
85 lines (82 loc) · 2.46 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
const normalizeNativeConfigValue = (value) => value?.trim().replace(/\\+$/, '');
const kakaoNativeAppKey = normalizeNativeConfigValue(process.env.EXPO_PUBLIC_KAKAO_NATIVE_APP_KEY);
const googleIosUrlScheme = normalizeNativeConfigValue(process.env.EXPO_PUBLIC_GOOGLE_IOS_URL_SCHEME);
// TODO: Set EXPO_PUBLIC_KAKAO_NATIVE_APP_KEY in .env.local/EAS env before iOS prebuild/build.
// The fallback is a non-secret placeholder so Expo config can still be evaluated locally.
const kakaoNativeAppKeyForNativeConfig = kakaoNativeAppKey ?? 'TODO_KAKAO_NATIVE_APP_KEY';
const googleIosUrlSchemeForNativeConfig =
googleIosUrlScheme ?? 'com.googleusercontent.apps.TODO_GOOGLE_IOS_URL_SCHEME';
module.exports = {
expo: {
name: 'Unplan',
slug: 'unplan',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
scheme: 'unplan',
ios: {
supportsTablet: false,
bundleIdentifier: 'com.unplan.app',
infoPlist: {
ITSAppUsesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
backgroundColor: '#EAF4FC',
foregroundImage: './assets/android-icon-foreground.png',
backgroundImage: './assets/android-icon-background.png',
monochromeImage: './assets/android-icon-monochrome.png',
},
predictiveBackGestureEnabled: false,
package: 'com.unplan.app',
},
web: {
bundler: 'metro',
output: 'static',
favicon: './assets/favicon.png',
},
updates: {
url: 'https://u.expo.dev/3d7e4964-b0fe-42d0-99d3-569d2fab8601',
},
runtimeVersion: {
policy: 'appVersion',
},
plugins: [
'./plugins/with-kakao-maven-repository',
'./plugins/with-google-modular-headers',
['expo-router', { root: 'src/app' }],
'expo-status-bar',
[
'expo-secure-store',
{
faceIDPermission: 'Allow $(PRODUCT_NAME) to access your Face ID biometric data.',
},
],
[
'@react-native-kakao/core',
{
nativeAppKey: kakaoNativeAppKeyForNativeConfig,
ios: {
handleKakaoOpenUrl: true,
},
},
],
[
'@react-native-google-signin/google-signin',
{
iosUrlScheme: googleIosUrlSchemeForNativeConfig,
},
],
],
experiments: {
typedRoutes: true,
},
extra: {
eas: {
projectId: '3d7e4964-b0fe-42d0-99d3-569d2fab8601',
},
},
},
};