-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
65 lines (61 loc) · 1.36 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
64
65
import { ExpoConfig } from '@expo/config';
import assert from 'assert';
const base = {
owner: 'expo-ci',
};
const mapBuildProfileToConfig: Record<string, ExpoConfig> = {
'versioned-client-add-sdk': {
...base,
slug: 'versioned-expo-go-add-sdk',
name: 'Expo Go (versioned) + add sdk',
extra: {
eas: {
projectId: '8550a402-d28f-4437-af87-2fb77b576c3f',
},
},
},
'versioned-client': {
...base,
slug: 'versioned-expo-go',
name: 'Expo Go (versioned)',
extra: {
eas: {
projectId: '97ab66f4-49e2-4ec7-85cc-922c56a68bae',
},
},
},
'unversioned-client': {
...base,
slug: 'unversioned-expo-go',
name: 'Expo Go (unversioned)',
extra: {
eas: {
projectId: '09066dbe-ef65-460e-9201-b7aa931abbf4',
},
},
},
'release-client': {
...base,
slug: 'release-expo-go',
name: 'Expo Go',
extra: {
eas: {
projectId: '79a64298-2d61-42ae-9cc9-b2a358d6869e',
},
},
},
'publish-client': {
...base,
slug: 'release-expo-go',
name: 'Expo Go',
extra: {
eas: {
projectId: '79a64298-2d61-42ae-9cc9-b2a358d6869e',
},
},
},
};
const buildType = process.env.EAS_BUILD_PROFILE;
assert(buildType && mapBuildProfileToConfig[buildType]);
const config = mapBuildProfileToConfig[buildType];
export default config;