-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathapp.config.js
More file actions
26 lines (24 loc) · 789 Bytes
/
app.config.js
File metadata and controls
26 lines (24 loc) · 789 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
const appJson = require('./app.json');
const env = process.env.APP_ENV || 'development';
const isProduction = env === 'production';
module.exports = ({ config }) => ({
...config,
...appJson.expo,
name: isProduction ? 'SubTrackr' : `SubTrackr ${env}`,
scheme: 'subtrackr',
ios: {
...appJson.expo.ios,
bundleIdentifier: isProduction ? 'com.subtrackr.app' : `com.subtrackr.app.${env}`,
},
android: {
...appJson.expo.android,
package: isProduction ? 'com.subtrackr.app' : `com.subtrackr.app.${env}`,
},
plugins: ['expo-dev-client', ...(appJson.expo.plugins || [])],
extra: {
...appJson.expo.extra,
appEnv: env,
apiUrl: process.env.EXPO_PUBLIC_API_URL || 'https://sandbox.api.subtrackr.app',
nativeDebuggingEnabled: !isProduction,
},
});