@expo/config-types 48.0.0 → 49.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ExpoConfig.d.ts +27 -25
- package/package.json +5 -4
package/build/ExpoConfig.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ export interface ExpoConfig {
|
|
|
19
19
|
*/
|
|
20
20
|
owner?: string;
|
|
21
21
|
/**
|
|
22
|
-
* The auto generated Expo account name and slug used for display purposes. Formatted like `@username/slug`. When unauthenticated, the username is `@anonymous`. For published projects, this value may change when a project is transferred between accounts or renamed.
|
|
22
|
+
* The auto generated Expo account name and slug used for display purposes. It is not meant to be set directly. Formatted like `@username/slug`. When unauthenticated, the username is `@anonymous`. For published projects, this value may change when a project is transferred between accounts or renamed.
|
|
23
23
|
*/
|
|
24
24
|
currentFullName?: string;
|
|
25
25
|
/**
|
|
26
|
-
* The auto generated Expo account name and slug used for services like Notifications and AuthSession proxy. Formatted like `@username/slug`. When unauthenticated, the username is `@anonymous`. For published projects, this value will not change when a project is transferred between accounts or renamed.
|
|
26
|
+
* The auto generated Expo account name and slug used for services like Notifications and AuthSession proxy. It is not meant to be set directly. Formatted like `@username/slug`. When unauthenticated, the username is `@anonymous`. For published projects, this value will not change when a project is transferred between accounts or renamed.
|
|
27
27
|
*/
|
|
28
28
|
originalFullName?: string;
|
|
29
29
|
/**
|
|
@@ -154,15 +154,11 @@ export interface ExpoConfig {
|
|
|
154
154
|
silentLaunch?: boolean;
|
|
155
155
|
};
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* URL scheme(s) to link into your app. For example, if we set this to `'demo'`, then demo:// URLs would open your app when tapped. This is a build-time configuration, it has no effect in Expo Go.
|
|
158
158
|
*/
|
|
159
|
-
scheme?: string;
|
|
160
|
-
/**
|
|
161
|
-
* @deprecated Use a `main` field in the project `package.json` instead.
|
|
162
|
-
*/
|
|
163
|
-
entryPoint?: string;
|
|
159
|
+
scheme?: string | string[];
|
|
164
160
|
/**
|
|
165
|
-
* Any extra fields you want to pass to your experience. Values are accessible via `
|
|
161
|
+
* Any extra fields you want to pass to your experience. Values are accessible via `Constants.expoConfig.extra` ([Learn more](https://docs.expo.dev/versions/latest/sdk/constants/#constantsmanifest))
|
|
166
162
|
*/
|
|
167
163
|
extra?: {
|
|
168
164
|
[k: string]: any;
|
|
@@ -182,9 +178,9 @@ export interface ExpoConfig {
|
|
|
182
178
|
*/
|
|
183
179
|
enabled?: boolean;
|
|
184
180
|
/**
|
|
185
|
-
* By default, Expo will check for updates every time the app is loaded. Set this to `ON_ERROR_RECOVERY` to disable automatic checking unless recovering from an error. Must be one of `ON_LOAD`
|
|
181
|
+
* By default, Expo will check for updates every time the app is loaded. Set this to `ON_ERROR_RECOVERY` to disable automatic checking unless recovering from an error. Set this to `NEVER` to completely disable automatic checking. Must be one of `ON_LOAD` (default value), `ON_ERROR_RECOVERY`, `WIFI_ONLY`, or `NEVER`
|
|
186
182
|
*/
|
|
187
|
-
checkAutomatically?: 'ON_ERROR_RECOVERY' | 'ON_LOAD';
|
|
183
|
+
checkAutomatically?: 'ON_ERROR_RECOVERY' | 'ON_LOAD' | 'WIFI_ONLY' | 'NEVER';
|
|
188
184
|
/**
|
|
189
185
|
* 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).
|
|
190
186
|
*/
|
|
@@ -216,6 +212,10 @@ export interface ExpoConfig {
|
|
|
216
212
|
requestHeaders?: {
|
|
217
213
|
[k: string]: any;
|
|
218
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* Whether to use deprecated Classic Updates when developing with the local Expo CLI and creating builds. Omitting this or setting it to false affects the behavior of APIs like `Constants.manifest`. SDK 49 is the last SDK version that supports Classic Updates.
|
|
217
|
+
*/
|
|
218
|
+
useClassicUpdates?: boolean;
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
221
221
|
* Provide overrides by locale for System Dialog prompts like Permissions Boxes
|
|
@@ -225,16 +225,6 @@ export interface ExpoConfig {
|
|
|
225
225
|
[k: string]: any;
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
/**
|
|
229
|
-
* Is app detached
|
|
230
|
-
*/
|
|
231
|
-
isDetached?: boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Extra fields needed by detached apps
|
|
234
|
-
*/
|
|
235
|
-
detach?: {
|
|
236
|
-
[k: string]: any;
|
|
237
|
-
};
|
|
238
228
|
/**
|
|
239
229
|
* An array of file glob strings which point to assets that will be bundled within your standalone app binary. Read more in the [Offline Support guide](https://docs.expo.dev/guides/offline-support/)
|
|
240
230
|
*/
|
|
@@ -262,6 +252,14 @@ export interface ExpoConfig {
|
|
|
262
252
|
* Enable experimental features that may be unstable, unsupported, or removed without deprecation notices.
|
|
263
253
|
*/
|
|
264
254
|
experiments?: {
|
|
255
|
+
/**
|
|
256
|
+
* Enable tsconfig/jsconfig `compilerOptions.paths` and `compilerOptions.baseUrl` support for import aliases in Metro.
|
|
257
|
+
*/
|
|
258
|
+
tsconfigPaths?: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Enable support for statically typed links in Expo Router. This feature requires TypeScript be set up in your Expo Router v2 project.
|
|
261
|
+
*/
|
|
262
|
+
typedRoutes?: boolean;
|
|
265
263
|
/**
|
|
266
264
|
* Enables Turbo Modules, which are a type of native modules that use a different way of communicating between JS and platform code. When installing a Turbo Module you will need to enable this experimental option (the library still needs to be a part of Expo SDK already, like react-native-reanimated v2). Turbo Modules do not support remote debugging and enabling this option will disable remote debugging.
|
|
267
265
|
*/
|
|
@@ -333,7 +331,7 @@ export interface IOS {
|
|
|
333
331
|
*/
|
|
334
332
|
appStoreUrl?: string;
|
|
335
333
|
/**
|
|
336
|
-
* Enable iOS Bitcode optimizations in the native build. Accepts the name of an iOS build configuration to enable for a single configuration and disable for all others, e.g. Debug, Release. Not available in
|
|
334
|
+
* Enable iOS Bitcode optimizations in the native build. Accepts the name of an iOS build configuration to enable for a single configuration and disable for all others, e.g. Debug, Release. Not available in Expo Go. Defaults to `undefined` which uses the template's predefined settings.
|
|
337
335
|
*/
|
|
338
336
|
bitcode?: boolean | string;
|
|
339
337
|
/**
|
|
@@ -459,7 +457,7 @@ export interface IOS {
|
|
|
459
457
|
[k: string]: any;
|
|
460
458
|
};
|
|
461
459
|
/**
|
|
462
|
-
* Specifies the JavaScript engine for iOS apps. Supported only on EAS Build. Defaults to `
|
|
460
|
+
* Specifies the JavaScript engine for iOS apps. Supported only on EAS Build. Defaults to `hermes`. Valid values: `hermes`, `jsc`.
|
|
463
461
|
*/
|
|
464
462
|
jsEngine?: 'hermes' | 'jsc';
|
|
465
463
|
/**
|
|
@@ -580,7 +578,7 @@ export interface Android {
|
|
|
580
578
|
*/
|
|
581
579
|
permissions?: string[];
|
|
582
580
|
/**
|
|
583
|
-
* List of permissions to block in the final `AndroidManifest.xml`. This is useful for removing permissions that are added by native package `AndroidManifest.xml` files which are merged into the final manifest. Internally this feature uses the `tools:node="remove"` XML attribute to remove permissions. Not available in
|
|
581
|
+
* List of permissions to block in the final `AndroidManifest.xml`. This is useful for removing permissions that are added by native package `AndroidManifest.xml` files which are merged into the final manifest. Internally this feature uses the `tools:node="remove"` XML attribute to remove permissions. Not available in Expo Go.
|
|
584
582
|
*/
|
|
585
583
|
blockedPermissions?: string[];
|
|
586
584
|
/**
|
|
@@ -735,7 +733,7 @@ export interface Android {
|
|
|
735
733
|
*/
|
|
736
734
|
softwareKeyboardLayoutMode?: 'resize' | 'pan';
|
|
737
735
|
/**
|
|
738
|
-
* Specifies the JavaScript engine for Android apps. Supported only on EAS Build and in Expo Go. Defaults to `
|
|
736
|
+
* Specifies the JavaScript engine for Android apps. Supported only on EAS Build and in Expo Go. Defaults to `hermes`. Valid values: `hermes`, `jsc`.
|
|
739
737
|
*/
|
|
740
738
|
jsEngine?: 'hermes' | 'jsc';
|
|
741
739
|
/**
|
|
@@ -782,6 +780,10 @@ export interface AndroidIntentFiltersData {
|
|
|
782
780
|
* Configuration that is specific to the web platform.
|
|
783
781
|
*/
|
|
784
782
|
export interface Web {
|
|
783
|
+
/**
|
|
784
|
+
* Sets the rendering method for the web app for both `expo start` and `expo export`. `static` statically renders HTML files for every route in the `app/` directory, which is available only in Expo Router apps. `single` outputs a Single Page Application (SPA), with a single `index.html` in the output folder, and has no statically indexable HTML. Defaults to `single`.
|
|
785
|
+
*/
|
|
786
|
+
output?: 'single' | 'static';
|
|
785
787
|
/**
|
|
786
788
|
* Relative path of an image to use for your app's favicon.
|
|
787
789
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/config-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "49.0.0",
|
|
4
4
|
"description": "Types for the Expo config object app.config.ts",
|
|
5
5
|
"types": "build/ExpoConfig.d.ts",
|
|
6
6
|
"main": "build/ExpoConfig.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"generate": "ts-node ./scripts/generate.ts",
|
|
11
11
|
"prepare": "yarn run clean && yarn build",
|
|
12
12
|
"clean": "rimraf build ./tsconfig.tsbuildinfo",
|
|
13
|
-
"lint": "eslint .",
|
|
13
|
+
"lint": "eslint . && npx prettier --write src/ExpoConfig.ts",
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
@@ -35,11 +35,12 @@
|
|
|
35
35
|
"build"
|
|
36
36
|
],
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@expo/babel-preset-cli": "^0.2.24",
|
|
38
39
|
"json-schema-to-typescript": "^10.0.0",
|
|
39
|
-
"
|
|
40
|
+
"ts-node": "^10.9.1"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db"
|
|
45
46
|
}
|