-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.config.ts
63 lines (59 loc) · 1.72 KB
/
app.config.ts
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
import { ExpoConfig, ConfigContext } from '@expo/config';
import 'dotenv/config';
import { APP_NAME, APP_VERSION, BUILD_NUMBER, BUILD_VERSION, ENDPOINTS, getEndpoint } from './build/constants';
export default ({ config }: ConfigContext): ExpoConfig => {
const environment = process.env.EXPO_ENV;
const appSignalApiKey = {
development: process.env.APPSIGNAL_DEVELOPMENT_API_KEY,
staging: process.env.APPSIGNAL_STAGING_API_KEY,
production: process.env.APPSIGNAL_PRODUCTION_API_KEY,
};
const conf: ExpoConfig = {
...config,
name: APP_NAME,
version: APP_VERSION,
slug: 'openmanifest',
plugins: [
[
"expo-facebook", {
userTrackingPermission: false
}
]
],
// All values in extra will be passed to your app.
extra: {
url: getEndpoint(),
urls: ENDPOINTS,
environment: process.env.EXPO_ENV,
facebookAppId: process.env.FACEBOOK_APP_ID,
facebookClientToken: process.env.FACEBOOK_CLIENT_TOKEN,
googleMapsAndroid: process.env.GOOGLE_MAPS_ANDROID,
googleMapsIos: process.env.GOOGLE_MAPS_IOS,
googleMapsWeb: process.env.GOOGLE_MAPS_WEB,
"eas": {
"projectId": "1d8fa34d-2ff8-4095-ab49-29a426117a8c"
},
appSignalApiKey: appSignalApiKey[environment],
},
ios: {
...config.ios,
config: {
...config.ios.config,
googleMapsApiKey: process.env.GOOGLE_MAPS_IOS,
},
buildNumber: BUILD_VERSION
},
android: {
...config.android,
config: {
...config.android.config,
googleMaps: {
apiKey: process.env.GOOGLE_MAPS_ANDROID,
},
},
versionCode: BUILD_NUMBER
},
};
// console.log(conf);
return conf;
};