-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathapp.config.ts
76 lines (74 loc) · 1.81 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
66
67
68
69
70
71
72
73
74
75
76
import {
withPlugins,
ConfigPlugin,
withAppBuildGradle,
} from "expo/config-plugins";
import { ExpoConfig, ConfigContext } from "expo/config";
export default ({ config }: ConfigContext): ExpoConfig => {
return withPlugins(
{
...config,
name: "rn-apollo-client-testbed",
slug: "rn-apollo-client-testbed",
version: "1.0.49",
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "light",
scheme: "rn-apollo-client-testbed",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "apollo.prometheus.testbed",
},
android: {
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#FFFFFF",
},
package: "apollo.prometheus.testbed",
},
web: {
favicon: "./assets/favicon.png",
},
extra: {
eas: {
projectId: "0c93a498-fc0d-4e45-9e08-36399405030b",
},
},
owner: "prometheus-web",
jsEngine: "hermes",
plugins: [
[
"expo-build-properties",
{
ios: {
flipper: true,
},
},
],
],
},
[withSourceMapsInDev]
);
};
const withSourceMapsInDev: ConfigPlugin = (config) =>
withAppBuildGradle(config, (config) => {
config.modResults.contents = config.modResults.contents.replace(
`
project.ext.react = [`,
`
project.ext.react = [
hermesFlagsRelease: ["-O", "-output-source-map"],
hermesFlagsDebug: ["-O", "-output-source-map"],
`
);
return config;
});