@expo/config-types 46.0.1 → 47.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.
@@ -38,10 +38,11 @@ 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.
41
+ * Set this to `{"policy": "nativeVersion"}` to generate it automatically based on the 'version' and
42
+ * 'android.versionCode'/'ios.buildNumber' or to `{"policy": "appVersion"}` to use just 'version' field.
42
43
  */
43
44
  runtimeVersion?: string | {
44
- policy: 'nativeVersion' | 'sdkVersion';
45
+ policy: RuntimeVersionPolicy;
45
46
  };
46
47
  /**
47
48
  * 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).
@@ -483,10 +484,11 @@ export interface IOS {
483
484
  * **Note: Don't use this property unless you are sure what you're doing**
484
485
  *
485
486
  * The runtime version associated with this manifest for the iOS platform. If provided, this will override the top level runtimeVersion key.
486
- * Set this to `{"policy": "nativeVersion"}` to generate it automatically.
487
+ * Set this to `{"policy": "nativeVersion"}` to generate it automatically based on the 'version' and 'ios.buildNumber' or
488
+ * to `{"policy": "appVersion"}` to use just 'version' field.
487
489
  */
488
490
  runtimeVersion?: string | {
489
- policy: 'nativeVersion' | 'sdkVersion';
491
+ policy: RuntimeVersionPolicy;
490
492
  };
491
493
  }
492
494
  /**
@@ -724,10 +726,11 @@ export interface Android {
724
726
  * **Note: Don't use this property unless you are sure what you're doing**
725
727
  *
726
728
  * The runtime version associated with this manifest for the Android platform. If provided, this will override the top level runtimeVersion key.
727
- * Set this to `{"policy": "nativeVersion"}` to generate it automatically.
729
+ * Set this to `{"policy": "nativeVersion"}` to generate it automatically based on the 'version' and 'versionCode' or
730
+ * to `{"policy": "appVersion"}` to use just 'version' field.
728
731
  */
729
732
  runtimeVersion?: string | {
730
- policy: 'nativeVersion' | 'sdkVersion';
733
+ policy: RuntimeVersionPolicy;
731
734
  };
732
735
  }
733
736
  export interface AndroidIntentFiltersData {
@@ -874,3 +877,4 @@ export interface PublishHook {
874
877
  };
875
878
  [k: string]: any;
876
879
  }
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": "46.0.1",
3
+ "version": "47.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": "5d900179d047d9f4d89c0b9953b7121a1f1df8a2"
44
+ "gitHead": "eab2b09c735fb0fc2bf734a3f29a6593adba3838"
45
45
  }