-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.config.js
More file actions
174 lines (132 loc) · 7.03 KB
/
app.config.js
File metadata and controls
174 lines (132 loc) · 7.03 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/** @type {import('expo/config').AppJSONConfig} */
module.exports = {
expo: {
// The name of the app as it appears both within Expo Go and on the home screen as a standalone app.
name: process.env.APP_NAME || "expo-boilertemplate",
// A short description of what the app is and why it is great.
description: "expo-boilertemplate description",
// The friendly URL name for publishing on the Expo developer website.
slug: "expo-boilertemplate",
// The name of the Expo account that owns the project.
owner: "eni4sure",
// Valid values: public, unlisted, hidden.
privacy: "hidden",
// The version number of the app.
version: "1.0.0",
// Platforms the project explicitly supports.
platforms: ["ios", "android"],
// Locks the app to a specific orientation with portrait or landscape.
orientation: "portrait",
// Configuration to force the app to always use the light or dark user-interface appearance, such as "dark mode", or make it automatically adapt to the system preferences.
userInterfaceStyle: "light",
// The background color for the app, behind any of the React views.
backgroundColor: "#ffffff",
// On Android, this will determine the color of the app in the multitasker.
primaryColor: "#000000",
// Local path or remote URL to an image to use for the app's icon. recommended 1024x1024 png file.
icon: "./public/assets/expo/icon.png",
// for standalone Apps Only. URL scheme to link into the app. For example, if set to 'demo', then demo:// URLs would open the app when tapped.
scheme: "expo-boilertemplate",
// Any extra fields to pass to the app experience. Values are accessible via `Constants.expoConfig.extra`
extra: {
eas: {
projectId: "", // TODO: set EAS_PROJECT_ID
},
},
runtimeVersion: {
policy: "sdkVersion",
},
// Configuration for how and when the app should request OTA JavaScript updates
updates: {
enabled: true,
checkAutomatically: "ON_LOAD",
// How long (in ms) to allow for fetching OTA updates before falling back to a cached version of the app. Defaults to 0. Must be between 0 and 300000 (5 minutes).
fallbackToCacheTimeout: 60000, // 1 minute
// update url
// url: ""
},
experiments: {
// Enable tsconfig/jsconfig compilerOptions.paths and compilerOptions.baseUrl support for import aliases in Metro.
tsconfigPaths: true,
// Enable support for statically typed links in Expo Router. requires TypeScript
typedRoutes: true,
},
// An array of file glob strings which point to assets that will be bundled within the standalone app binary.
assetBundlePatterns: ["**/*"],
// Config plugins for adding extra functionality.
plugins: [
// breaker
"expo-router",
"sentry-expo",
["expo-local-authentication", { faceIDPermission: "Allow expo-boilertemplate to use Face ID." }],
["expo-build-properties", { android: { enableProguardInReleaseBuilds: true } }],
],
// Configuration for loading and splash screen for standalone apps.
splash: {
// Color to fill the loading screen background
backgroundColor: "#ffffff",
// Local path or remote URL to an image to fill the background of the loading screen. Image size and aspect ratio are up to you. Must be a .png.
image: "./public/assets/expo/splash.png",
// Determines how the image will be displayed in the splash loading screen.
resizeMode: "contain",
},
// Specifies the JavaScript engine for apps. Supported only on EAS Build.
jsEngine: "hermes",
// Configuration for scripts to run to hook into the publish process
hooks: {
// Called before building the standalone app binary file. This script is passed the path to the generated native project directory.
postPublish: [
{
file: "sentry-expo/upload-sourcemaps",
config: {
setCommits: true,
organization: "eni4sure",
project: "expo-boilertemplate",
},
},
],
},
// Configuration that is specific to the iOS platform.
ios: {
// The bundle identifier for the app. This must be unique on the App Store.
bundleIdentifier: "com.eni4sure.expo-boilertemplate",
// Build number for the iOS standalone app
buildNumber: "1",
// This property key is not included in the production manifest and will evaluate to undefined. It is used internally only in the build process
config: {
usesNonExemptEncryption: false,
},
// Whether the standalone iOS app supports tablet screen sizes.
supportsTablet: false,
// Dictionary of arbitrary configuration to add to the standalone app's native Info.plist. Applied prior to all other Expo-specific configuration.
infoPlist: {},
// Dictionary of arbitrary configuration to add to the standalone app's native *.entitlements (plist). Applied prior to all other Expo-specific configuration.
entitlements: {},
// https://developer.apple.com/documentation/safariservices/supporting_associated_domains
// associatedDomains: ["applinks:expo-boilertemplate.eni4sure.com"],
// Including this key automatically enables FCM in the standalone app.
// googleServicesFile: "./service-keys/GoogleService-Info.plist",
},
android: {
// The package name for the Android standalone app. This must be unique on the Play Store.
package: "com.eni4sure.expo-boilertemplate",
// Version number required by Google Play. Increment by one for each release. Must be a positive integer.
versionCode: 1,
adaptiveIcon: {
// Local path or remote URL to an image to use for the app's icon on Android
foregroundImage: "./public/assets/expo/adaptive-icon.png",
// Color to use as the background for the app's Adaptive Icon on Android.
backgroundColor: "#ffffff",
},
// Including this key automatically enables FCM in the standalone app.
// googleServicesFile: "./service-keys/google-services.json",
},
web: {
// Sets the bundler to use for the web platform. Only supported in the local CLI npx expo.
bundler: "metro",
output: "static",
// Relative path of an image to use for your app's favicon.
favicon: "./public/assets/expo/favicon.png",
},
},
};