-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathapp.config.js
More file actions
34 lines (32 loc) · 1.02 KB
/
app.config.js
File metadata and controls
34 lines (32 loc) · 1.02 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
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}`,
jsEngine: 'hermes',
hermesFlags: ['-g', '--minify', '--inline-store-on-put', '--allocation-profile'],
},
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,
hermesOptimizations: {
enabled: true,
inlineStoreOnPut: true,
allocationProfile: true,
bytecodeCache: true,
},
},
});