-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.ts
More file actions
29 lines (28 loc) · 888 Bytes
/
app.config.ts
File metadata and controls
29 lines (28 loc) · 888 Bytes
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
import { ExpoConfig, ConfigContext } from 'expo/config';
export default ({ config }: ConfigContext): ExpoConfig => {
const envConfig: ExpoConfig = {
...config,
slug: process.env.EXPO_PUBLIC_SLUG ?? '',
name: process.env.EXPO_PUBLIC_NAME ?? '',
ios: {
...config.ios,
bundleIdentifier: process.env.EXPO_PUBLIC_IOS_ANDROID_PACKAGE ?? 'com.akashi.pdfmanager',
buildNumber: '1',
},
android: {
...config.android,
package: process.env.EXPO_PUBLIC_IOS_ANDROID_PACKAGE ?? 'com.akashi.pdfmanager',
versionCode: 1,
},
updates: {
url: `https://u.expo.dev/${process.env.EXPO_PUBLIC_PROJECT_ID}`,
},
extra: {
...config.extra,
eas: { projectId: process.env.EXPO_PUBLIC_PROJECT_ID },
ENV: process.env.EXPO_PUBLIC_ENV,
API_URL: process.env.EXPO_PUBLIC_API_URL,
},
};
return envConfig;
};