@expo/config-types 47.0.0 → 48.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 +91 -77
- package/package.json +2 -2
package/build/ExpoConfig.d.ts
CHANGED
|
@@ -38,11 +38,10 @@ export interface ExpoConfig {
|
|
|
38
38
|
* **Note: Don't use this property unless you are sure what you're doing**
|
|
39
39
|
*
|
|
40
40
|
* The runtime version associated with this manifest.
|
|
41
|
-
* Set this to `{"policy": "nativeVersion"}` to generate it automatically
|
|
42
|
-
* 'android.versionCode'/'ios.buildNumber' or to `{"policy": "appVersion"}` to use just 'version' field.
|
|
41
|
+
* Set this to `{"policy": "nativeVersion"}` to generate it automatically.
|
|
43
42
|
*/
|
|
44
43
|
runtimeVersion?: string | {
|
|
45
|
-
policy:
|
|
44
|
+
policy: 'nativeVersion' | 'sdkVersion' | 'appVersion';
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
48
47
|
* Your app version. In addition to this field, you'll also use `ios.buildNumber` and `android.versionCode` — read more about how to version your app [here](https://docs.expo.dev/distribution/app-stores/#versioning-your-app). On iOS this corresponds to `CFBundleShortVersionString`, and on Android, this corresponds to `versionName`. The required format can be found [here](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring).
|
|
@@ -101,10 +100,6 @@ export interface ExpoConfig {
|
|
|
101
100
|
*/
|
|
102
101
|
androidCollapsedTitle?: string;
|
|
103
102
|
};
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated By default, Expo looks for the application registered with the AppRegistry as `main`. If you would like to change this, you can specify the name in this property.
|
|
106
|
-
*/
|
|
107
|
-
appKey?: string;
|
|
108
103
|
/**
|
|
109
104
|
* Configuration for the status bar on Android. For more details please navigate to [Configuring StatusBar](https://docs.expo.dev/guides/configuring-statusbar/).
|
|
110
105
|
*/
|
|
@@ -122,7 +117,7 @@ export interface ExpoConfig {
|
|
|
122
117
|
*/
|
|
123
118
|
hidden?: boolean;
|
|
124
119
|
/**
|
|
125
|
-
*
|
|
120
|
+
* When false, the system status bar pushes the content of your app down (similar to `position: relative`). When true, the status bar floats above the content in your app (similar to `position: absolute`). Defaults to `true` to match the iOS status bar behavior (which can only float above content). Explicitly setting this property to `true` will add `android:windowTranslucentStatus` to `styles.xml` and may cause unexpected keyboard behavior on Android when using the `softwareKeyboardLayoutMode` set to `resize`. In this case you will have to use `KeyboardAvoidingView` to manage the keyboard layout.
|
|
126
121
|
*/
|
|
127
122
|
translucent?: boolean;
|
|
128
123
|
};
|
|
@@ -163,7 +158,7 @@ export interface ExpoConfig {
|
|
|
163
158
|
*/
|
|
164
159
|
scheme?: string;
|
|
165
160
|
/**
|
|
166
|
-
*
|
|
161
|
+
* @deprecated Use a `main` field in the project `package.json` instead.
|
|
167
162
|
*/
|
|
168
163
|
entryPoint?: string;
|
|
169
164
|
/**
|
|
@@ -215,6 +210,12 @@ export interface ExpoConfig {
|
|
|
215
210
|
*/
|
|
216
211
|
keyid?: string;
|
|
217
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* Extra HTTP headers to include in HTTP requests made by `expo-updates`. These may override preset headers.
|
|
215
|
+
*/
|
|
216
|
+
requestHeaders?: {
|
|
217
|
+
[k: string]: any;
|
|
218
|
+
};
|
|
218
219
|
};
|
|
219
220
|
/**
|
|
220
221
|
* Provide overrides by locale for System Dialog prompts like Permissions Boxes
|
|
@@ -224,30 +225,6 @@ export interface ExpoConfig {
|
|
|
224
225
|
[k: string]: any;
|
|
225
226
|
};
|
|
226
227
|
};
|
|
227
|
-
/**
|
|
228
|
-
* Used for all Facebook libraries. Set up your Facebook App ID at https://developers.facebook.com.
|
|
229
|
-
*/
|
|
230
|
-
facebookAppId?: string;
|
|
231
|
-
/**
|
|
232
|
-
* Whether the Facebook SDK should be initialized automatically. The default in Expo (Client and in standalone apps) is `false`.
|
|
233
|
-
*/
|
|
234
|
-
facebookAutoInitEnabled?: boolean;
|
|
235
|
-
/**
|
|
236
|
-
* Whether the Facebook SDK log app events automatically. If you don't set this property, Facebook's default will be used. (Applicable only to standalone apps.) Note: The Facebook SDK must be initialized for app events to work. You may autoinitialize Facebook SDK by setting `facebookAutoInitEnabled` to `true`
|
|
237
|
-
*/
|
|
238
|
-
facebookAutoLogAppEventsEnabled?: boolean;
|
|
239
|
-
/**
|
|
240
|
-
* Whether the Facebook SDK should collect advertiser ID properties, like the Apple IDFA and Android Advertising ID, automatically. If you don't set this property, Facebook's default policy will be used. (Applicable only to standalone apps.)
|
|
241
|
-
*/
|
|
242
|
-
facebookAdvertiserIDCollectionEnabled?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* Used for native Facebook login.
|
|
245
|
-
*/
|
|
246
|
-
facebookDisplayName?: string;
|
|
247
|
-
/**
|
|
248
|
-
* Used for Facebook native login. Starts with 'fb' and followed by a string of digits, like 'fb1234567890'. You can find your scheme [here](https://developers.facebook.com/docs/facebook-login/ios)in the 'Configuring Your info.plist' section (only applicable to standalone apps and custom Expo Go apps).
|
|
249
|
-
*/
|
|
250
|
-
facebookScheme?: string;
|
|
251
228
|
/**
|
|
252
229
|
* Is app detached
|
|
253
230
|
*/
|
|
@@ -268,7 +245,7 @@ export interface ExpoConfig {
|
|
|
268
245
|
plugins?: (string | [] | [string] | [string, any])[];
|
|
269
246
|
splash?: Splash;
|
|
270
247
|
/**
|
|
271
|
-
* Specifies the JavaScript engine for apps. Supported only on EAS Build. Defaults to `
|
|
248
|
+
* Specifies the JavaScript engine for apps. Supported only on EAS Build. Defaults to `hermes`. Valid values: `hermes`, `jsc`.
|
|
272
249
|
*/
|
|
273
250
|
jsEngine?: 'hermes' | 'jsc';
|
|
274
251
|
ios?: IOS;
|
|
@@ -338,7 +315,7 @@ export interface IOS {
|
|
|
338
315
|
*/
|
|
339
316
|
bundleIdentifier?: string;
|
|
340
317
|
/**
|
|
341
|
-
* Build number for your iOS standalone app. Corresponds to `CFBundleVersion` and must match Apple's [specified format](https://developer.apple.com/
|
|
318
|
+
* Build number for your iOS standalone app. Corresponds to `CFBundleVersion` and must match Apple's [specified format](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion). (Note: Transporter will pull the value for `Version Number` from `expo.version` and NOT from `expo.ios.buildNumber`.)
|
|
342
319
|
*/
|
|
343
320
|
buildNumber?: string;
|
|
344
321
|
/**
|
|
@@ -351,10 +328,6 @@ export interface IOS {
|
|
|
351
328
|
* Expo will generate the other required sizes. This icon will appear on the home screen and within the Expo app.
|
|
352
329
|
*/
|
|
353
330
|
icon?: string;
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated Merchant ID for use with Apple Pay in your standalone app.
|
|
356
|
-
*/
|
|
357
|
-
merchantId?: string;
|
|
358
331
|
/**
|
|
359
332
|
* URL to your app on the Apple App Store, if you have deployed it there. This is used to link to your store page from your Expo project page if your app is public.
|
|
360
333
|
*/
|
|
@@ -392,15 +365,6 @@ export interface IOS {
|
|
|
392
365
|
* A boolean indicating whether to initialize Google App Measurement and begin sending user-level event data to Google immediately when the app starts. The default in Expo (Go and in standalone apps) is `false`. [Sets the opposite of the given value to the following key in `Info.plist`.](https://developers.google.com/admob/ios/eu-consent#delay_app_measurement_optional)
|
|
393
366
|
*/
|
|
394
367
|
googleMobileAdsAutoInit?: boolean;
|
|
395
|
-
/**
|
|
396
|
-
* @deprecated Use `ios.googleServicesFile` instead.
|
|
397
|
-
*/
|
|
398
|
-
googleSignIn?: {
|
|
399
|
-
/**
|
|
400
|
-
* @deprecated Use `ios.googleServicesFile` instead.
|
|
401
|
-
*/
|
|
402
|
-
reservedClientId?: string;
|
|
403
|
-
};
|
|
404
368
|
};
|
|
405
369
|
/**
|
|
406
370
|
* [Firebase Configuration File](https://support.google.com/firebase/answer/7015592) Location of the `GoogleService-Info.plist` file for configuring Firebase.
|
|
@@ -454,10 +418,6 @@ export interface IOS {
|
|
|
454
418
|
* Configuration for loading and splash screen for standalone iOS apps.
|
|
455
419
|
*/
|
|
456
420
|
splash?: {
|
|
457
|
-
/**
|
|
458
|
-
* @deprecated Apple has deprecated `.xib` splash screens in favor of `.storyboard` files. Local path to a XIB file as the loading screen. It overrides other loading screen options. Note: This will only be used in the standalone app (i.e., after you build the app). It will not be used in the Expo Go.
|
|
459
|
-
*/
|
|
460
|
-
xib?: string;
|
|
461
421
|
/**
|
|
462
422
|
* Color to fill the loading screen background
|
|
463
423
|
*/
|
|
@@ -474,6 +434,28 @@ export interface IOS {
|
|
|
474
434
|
* 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.
|
|
475
435
|
*/
|
|
476
436
|
tabletImage?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Configuration for loading and splash screen for standalone iOS apps in dark mode.
|
|
439
|
+
*/
|
|
440
|
+
dark?: {
|
|
441
|
+
/**
|
|
442
|
+
* Color to fill the loading screen background
|
|
443
|
+
*/
|
|
444
|
+
backgroundColor?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Determines how the `image` will be displayed in the splash loading screen. Must be one of `cover` or `contain`, defaults to `contain`.
|
|
447
|
+
*/
|
|
448
|
+
resizeMode?: 'cover' | 'contain';
|
|
449
|
+
/**
|
|
450
|
+
* 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.
|
|
451
|
+
*/
|
|
452
|
+
image?: string;
|
|
453
|
+
/**
|
|
454
|
+
* 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.
|
|
455
|
+
*/
|
|
456
|
+
tabletImage?: string;
|
|
457
|
+
[k: string]: any;
|
|
458
|
+
};
|
|
477
459
|
[k: string]: any;
|
|
478
460
|
};
|
|
479
461
|
/**
|
|
@@ -484,11 +466,10 @@ export interface IOS {
|
|
|
484
466
|
* **Note: Don't use this property unless you are sure what you're doing**
|
|
485
467
|
*
|
|
486
468
|
* The runtime version associated with this manifest for the iOS platform. If provided, this will override the top level runtimeVersion key.
|
|
487
|
-
* Set this to `{"policy": "nativeVersion"}` to generate it automatically
|
|
488
|
-
* to `{"policy": "appVersion"}` to use just 'version' field.
|
|
469
|
+
* Set this to `{"policy": "nativeVersion"}` to generate it automatically.
|
|
489
470
|
*/
|
|
490
471
|
runtimeVersion?: string | {
|
|
491
|
-
policy:
|
|
472
|
+
policy: 'nativeVersion' | 'sdkVersion' | 'appVersion';
|
|
492
473
|
};
|
|
493
474
|
}
|
|
494
475
|
/**
|
|
@@ -519,10 +500,6 @@ export interface Android {
|
|
|
519
500
|
* 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. If not provided, defaults to `light`. Requires `expo-system-ui` be installed in your project to work on Android.
|
|
520
501
|
*/
|
|
521
502
|
userInterfaceStyle?: 'light' | 'dark' | 'automatic';
|
|
522
|
-
/**
|
|
523
|
-
* @deprecated A Boolean value that indicates whether the app should use the new notifications API.
|
|
524
|
-
*/
|
|
525
|
-
useNextNotificationsApi?: boolean;
|
|
526
503
|
/**
|
|
527
504
|
* Local path or remote URL to an image to use for your app's icon on Android. If specified, this overrides the top-level `icon` key. We recommend that you use a 1024x1024 png file (transparency is recommended for the Google Play Store). This icon will appear on the home screen and within the Expo app.
|
|
528
505
|
*/
|
|
@@ -536,7 +513,11 @@ export interface Android {
|
|
|
536
513
|
*/
|
|
537
514
|
foregroundImage?: string;
|
|
538
515
|
/**
|
|
539
|
-
* Local path or remote URL to
|
|
516
|
+
* Local path or remote URL to an image representing the Android 13+ monochromatic icon. Should follow the [specified guidelines](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive). This icon will appear on the home screen when the user enables 'Themed icons' in system settings on a device running Android 13+.
|
|
517
|
+
*/
|
|
518
|
+
monochromeImage?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Local path or remote URL to a background image for your app's Adaptive Icon on Android. If specified, this overrides the `backgroundColor` key. Must have the same dimensions as `foregroundImage`, and has no effect if `foregroundImage` is not specified. Should follow the [specified guidelines](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive).
|
|
540
521
|
*/
|
|
541
522
|
backgroundImage?: string;
|
|
542
523
|
/**
|
|
@@ -636,19 +617,6 @@ export interface Android {
|
|
|
636
617
|
* A boolean indicating whether to initialize Google App Measurement and begin sending user-level event data to Google immediately when the app starts. The default in Expo (Client and in standalone apps) is `false`. [Sets the opposite of the given value to the following key in `Info.plist`](https://developers.google.com/admob/ios/eu-consent#delay_app_measurement_optional)
|
|
637
618
|
*/
|
|
638
619
|
googleMobileAdsAutoInit?: boolean;
|
|
639
|
-
/**
|
|
640
|
-
* @deprecated Use `googleServicesFile` instead. [Google Sign-In Android SDK](https://developers.google.com/identity/sign-in/android/start-integrating) keys for your standalone app.
|
|
641
|
-
*/
|
|
642
|
-
googleSignIn?: {
|
|
643
|
-
/**
|
|
644
|
-
* The Android API key. Can be found in the credentials section of the developer console or in `google-services.json`.
|
|
645
|
-
*/
|
|
646
|
-
apiKey?: string;
|
|
647
|
-
/**
|
|
648
|
-
* The SHA-1 hash of the signing certificate used to build the APK without any separator (`:`). Can be found in `google-services.json`. https://developers.google.com/android/guides/client-auth
|
|
649
|
-
*/
|
|
650
|
-
certificateHash?: string;
|
|
651
|
-
};
|
|
652
620
|
};
|
|
653
621
|
/**
|
|
654
622
|
* Configuration for loading and splash screen for managed and standalone Android apps.
|
|
@@ -696,6 +664,54 @@ export interface Android {
|
|
|
696
664
|
* `Scale 4x`
|
|
697
665
|
*/
|
|
698
666
|
xxxhdpi?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Configuration for loading and splash screen for managed and standalone Android apps in dark mode.
|
|
669
|
+
*/
|
|
670
|
+
dark?: {
|
|
671
|
+
/**
|
|
672
|
+
* Color to fill the loading screen background
|
|
673
|
+
*/
|
|
674
|
+
backgroundColor?: string;
|
|
675
|
+
/**
|
|
676
|
+
* Determines how the `image` will be displayed in the splash loading screen. Must be one of `cover`, `contain` or `native`, defaults to `contain`.
|
|
677
|
+
*/
|
|
678
|
+
resizeMode?: 'cover' | 'contain' | 'native';
|
|
679
|
+
/**
|
|
680
|
+
* 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.
|
|
681
|
+
*/
|
|
682
|
+
image?: string;
|
|
683
|
+
/**
|
|
684
|
+
* Local path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. [Learn more]( https://developer.android.com/training/multiscreen/screendensities)
|
|
685
|
+
*
|
|
686
|
+
* `Natural sized image (baseline)`
|
|
687
|
+
*/
|
|
688
|
+
mdpi?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Local path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. [Learn more]( https://developer.android.com/training/multiscreen/screendensities)
|
|
691
|
+
*
|
|
692
|
+
* `Scale 1.5x`
|
|
693
|
+
*/
|
|
694
|
+
hdpi?: string;
|
|
695
|
+
/**
|
|
696
|
+
* Local path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. [Learn more]( https://developer.android.com/training/multiscreen/screendensities)
|
|
697
|
+
*
|
|
698
|
+
* `Scale 2x`
|
|
699
|
+
*/
|
|
700
|
+
xhdpi?: string;
|
|
701
|
+
/**
|
|
702
|
+
* Local path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. [Learn more]( https://developer.android.com/training/multiscreen/screendensities)
|
|
703
|
+
*
|
|
704
|
+
* `Scale 3x`
|
|
705
|
+
*/
|
|
706
|
+
xxhdpi?: string;
|
|
707
|
+
/**
|
|
708
|
+
* Local path or remote URL to an image to fill the background of the loading screen in "native" mode. Image size and aspect ratio are up to you. [Learn more]( https://developer.android.com/training/multiscreen/screendensities)
|
|
709
|
+
*
|
|
710
|
+
* `Scale 4x`
|
|
711
|
+
*/
|
|
712
|
+
xxxhdpi?: string;
|
|
713
|
+
[k: string]: any;
|
|
714
|
+
};
|
|
699
715
|
[k: string]: any;
|
|
700
716
|
};
|
|
701
717
|
/**
|
|
@@ -726,11 +742,10 @@ export interface Android {
|
|
|
726
742
|
* **Note: Don't use this property unless you are sure what you're doing**
|
|
727
743
|
*
|
|
728
744
|
* The runtime version associated with this manifest for the Android platform. If provided, this will override the top level runtimeVersion key.
|
|
729
|
-
* Set this to `{"policy": "nativeVersion"}` to generate it automatically
|
|
730
|
-
* to `{"policy": "appVersion"}` to use just 'version' field.
|
|
745
|
+
* Set this to `{"policy": "nativeVersion"}` to generate it automatically.
|
|
731
746
|
*/
|
|
732
747
|
runtimeVersion?: string | {
|
|
733
|
-
policy:
|
|
748
|
+
policy: 'nativeVersion' | 'sdkVersion' | 'appVersion';
|
|
734
749
|
};
|
|
735
750
|
}
|
|
736
751
|
export interface AndroidIntentFiltersData {
|
|
@@ -877,4 +892,3 @@ export interface PublishHook {
|
|
|
877
892
|
};
|
|
878
893
|
[k: string]: any;
|
|
879
894
|
}
|
|
880
|
-
export declare type RuntimeVersionPolicy = 'sdkVersion' | 'nativeVersion' | 'appVersion';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/config-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "48.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",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1815e2eaad8c753588c7b1eb74420174a28e01f4"
|
|
45
45
|
}
|