@expo/config-plugins 56.0.14 → 56.0.16

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.
@@ -0,0 +1,14 @@
1
+ import type { ExpoConfig } from '@expo/config-types';
2
+ import type { InfoPlist } from './IosConfig.types';
3
+ /**
4
+ * Info.plist key read by expo's native runtime (`ExpoReactNativeFactory`) to resolve the Metro
5
+ * dev server port at launch. It is set to the `RCT_METRO_PORT` build setting so that
6
+ * `expo run:ios --port <n>` flows through to the app.
7
+ *
8
+ * Prebuilt React freezes the compile-time `RCT_METRO_PORT` at `8081`, so without this a bare dev
9
+ * build (no `expo-dev-client`) always defaults to `:8081` and multiple running projects collide on
10
+ * a single dev server. This is the iOS analog of Android's `react_native_dev_server_port` resource.
11
+ */
12
+ export declare const METRO_PORT_INFO_PLIST_KEY = "RCTMetroPort";
13
+ export declare const withMetroPort: import("..").ConfigPlugin;
14
+ export declare function setMetroPort(_config: Pick<ExpoConfig, 'ios'>, infoPlist: InfoPlist): InfoPlist;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.METRO_PORT_INFO_PLIST_KEY = void 0;
5
+ exports.setMetroPort = setMetroPort;
6
+ exports.withMetroPort = void 0;
7
+ function _iosPlugins() {
8
+ const data = require("../plugins/ios-plugins");
9
+ _iosPlugins = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ /**
15
+ * Info.plist key read by expo's native runtime (`ExpoReactNativeFactory`) to resolve the Metro
16
+ * dev server port at launch. It is set to the `RCT_METRO_PORT` build setting so that
17
+ * `expo run:ios --port <n>` flows through to the app.
18
+ *
19
+ * Prebuilt React freezes the compile-time `RCT_METRO_PORT` at `8081`, so without this a bare dev
20
+ * build (no `expo-dev-client`) always defaults to `:8081` and multiple running projects collide on
21
+ * a single dev server. This is the iOS analog of Android's `react_native_dev_server_port` resource.
22
+ */
23
+ const METRO_PORT_INFO_PLIST_KEY = exports.METRO_PORT_INFO_PLIST_KEY = 'RCTMetroPort';
24
+ const withMetroPort = exports.withMetroPort = (0, _iosPlugins().createInfoPlistPlugin)(setMetroPort, 'withMetroPort');
25
+ function setMetroPort(_config, infoPlist) {
26
+ return {
27
+ ...infoPlist,
28
+ [METRO_PORT_INFO_PLIST_KEY]: '$(RCT_METRO_PORT)'
29
+ };
30
+ }
31
+ //# sourceMappingURL=DevServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DevServer.js","names":["_iosPlugins","data","require","METRO_PORT_INFO_PLIST_KEY","exports","withMetroPort","createInfoPlistPlugin","setMetroPort","_config","infoPlist"],"sources":["../../src/ios/DevServer.ts"],"sourcesContent":["import type { ExpoConfig } from '@expo/config-types';\n\nimport type { InfoPlist } from './IosConfig.types';\nimport { createInfoPlistPlugin } from '../plugins/ios-plugins';\n\n/**\n * Info.plist key read by expo's native runtime (`ExpoReactNativeFactory`) to resolve the Metro\n * dev server port at launch. It is set to the `RCT_METRO_PORT` build setting so that\n * `expo run:ios --port <n>` flows through to the app.\n *\n * Prebuilt React freezes the compile-time `RCT_METRO_PORT` at `8081`, so without this a bare dev\n * build (no `expo-dev-client`) always defaults to `:8081` and multiple running projects collide on\n * a single dev server. This is the iOS analog of Android's `react_native_dev_server_port` resource.\n */\nexport const METRO_PORT_INFO_PLIST_KEY = 'RCTMetroPort';\n\nexport const withMetroPort = createInfoPlistPlugin(setMetroPort, 'withMetroPort');\n\nexport function setMetroPort(_config: Pick<ExpoConfig, 'ios'>, infoPlist: InfoPlist): InfoPlist {\n return {\n ...infoPlist,\n [METRO_PORT_INFO_PLIST_KEY]: '$(RCT_METRO_PORT)',\n };\n}\n"],"mappings":";;;;;;AAGA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,cAAc;AAEhD,MAAME,aAAa,GAAAD,OAAA,CAAAC,aAAA,GAAG,IAAAC,mCAAqB,EAACC,YAAY,EAAE,eAAe,CAAC;AAE1E,SAASA,YAAYA,CAACC,OAAgC,EAAEC,SAAoB,EAAa;EAC9F,OAAO;IACL,GAAGA,SAAS;IACZ,CAACN,yBAAyB,GAAG;EAC/B,CAAC;AACH","ignoreList":[]}
@@ -4,6 +4,7 @@ export * as BuildScheme from './BuildScheme';
4
4
  export * as BundleIdentifier from './BundleIdentifier';
5
5
  export * as DeploymentTarget from './DeploymentTarget';
6
6
  export * as DevelopmentTeam from './DevelopmentTeam';
7
+ export * as DevServer from './DevServer';
7
8
  export * as DeviceFamily from './DeviceFamily';
8
9
  export * as Entitlements from './Entitlements';
9
10
  export * as Google from './Google';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.Updates = exports.Target = exports.Scheme = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.PrivacyInfo = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = exports.Google = exports.Entitlements = exports.DeviceFamily = exports.DevelopmentTeam = exports.DeploymentTarget = exports.BundleIdentifier = exports.BuildScheme = exports.BuildProperties = exports.Bitcode = void 0;
4
+ exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.Updates = exports.Target = exports.Scheme = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.PrivacyInfo = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = exports.Google = exports.Entitlements = exports.DeviceFamily = exports.DevelopmentTeam = exports.DevServer = exports.DeploymentTarget = exports.BundleIdentifier = exports.BuildScheme = exports.BuildProperties = exports.Bitcode = void 0;
5
5
  function _Bitcode() {
6
6
  const data = _interopRequireWildcard(require("./Bitcode"));
7
7
  _Bitcode = function () {
@@ -80,6 +80,19 @@ Object.defineProperty(exports, "DevelopmentTeam", {
80
80
  return _DevelopmentTeam();
81
81
  }
82
82
  });
83
+ function _DevServer() {
84
+ const data = _interopRequireWildcard(require("./DevServer"));
85
+ _DevServer = function () {
86
+ return data;
87
+ };
88
+ return data;
89
+ }
90
+ Object.defineProperty(exports, "DevServer", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _DevServer();
94
+ }
95
+ });
83
96
  function _DeviceFamily() {
84
97
  const data = _interopRequireWildcard(require("./DeviceFamily"));
85
98
  _DeviceFamily = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/ios/index.ts"],"sourcesContent":["export * as Bitcode from './Bitcode';\nexport * as BuildProperties from './BuildProperties';\nexport * as BuildScheme from './BuildScheme';\nexport * as BundleIdentifier from './BundleIdentifier';\nexport * as DeploymentTarget from './DeploymentTarget';\nexport * as DevelopmentTeam from './DevelopmentTeam';\nexport * as DeviceFamily from './DeviceFamily';\nexport * as Entitlements from './Entitlements';\nexport * as Google from './Google';\nexport * as Locales from './Locales';\nexport * as Maps from './Maps';\nexport * as Name from './Name';\nexport * as Orientation from './Orientation';\nexport * as Paths from './Paths';\nexport * as Permissions from './Permissions';\nexport * as PrivacyInfo from './PrivacyInfo';\nexport * as ProvisioningProfile from './ProvisioningProfile';\nexport * as RequiresFullScreen from './RequiresFullScreen';\nexport * as Scheme from './Scheme';\nexport * as Target from './Target';\nexport * as Updates from './Updates';\nexport * as UsesNonExemptEncryption from './UsesNonExemptEncryption';\nexport * as Version from './Version';\nexport * as XcodeProjectFile from './XcodeProjectFile';\nexport * as XcodeUtils from './utils/Xcodeproj';\nexport type { ExpoPlist, InfoPlist } from './IosConfig.types';\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/ios/index.ts"],"sourcesContent":["export * as Bitcode from './Bitcode';\nexport * as BuildProperties from './BuildProperties';\nexport * as BuildScheme from './BuildScheme';\nexport * as BundleIdentifier from './BundleIdentifier';\nexport * as DeploymentTarget from './DeploymentTarget';\nexport * as DevelopmentTeam from './DevelopmentTeam';\nexport * as DevServer from './DevServer';\nexport * as DeviceFamily from './DeviceFamily';\nexport * as Entitlements from './Entitlements';\nexport * as Google from './Google';\nexport * as Locales from './Locales';\nexport * as Maps from './Maps';\nexport * as Name from './Name';\nexport * as Orientation from './Orientation';\nexport * as Paths from './Paths';\nexport * as Permissions from './Permissions';\nexport * as PrivacyInfo from './PrivacyInfo';\nexport * as ProvisioningProfile from './ProvisioningProfile';\nexport * as RequiresFullScreen from './RequiresFullScreen';\nexport * as Scheme from './Scheme';\nexport * as Target from './Target';\nexport * as Updates from './Updates';\nexport * as UsesNonExemptEncryption from './UsesNonExemptEncryption';\nexport * as Version from './Version';\nexport * as XcodeProjectFile from './XcodeProjectFile';\nexport * as XcodeUtils from './utils/Xcodeproj';\nexport type { ExpoPlist, InfoPlist } from './IosConfig.types';\n"],"mappings":"","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/config-plugins",
3
- "version": "56.0.14",
3
+ "version": "56.0.16",
4
4
  "description": "A library for Expo config plugins",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "@expo/config-types": "^56.0.7",
50
50
  "@expo/json-file": "~10.2.0",
51
51
  "@expo/plist": "^0.7.0",
52
- "@expo/require-utils": "^56.1.6",
52
+ "@expo/require-utils": "^56.1.7",
53
53
  "@expo/sdk-runtime-versions": "^1.0.0",
54
54
  "chalk": "^4.1.2",
55
55
  "debug": "^4.3.5",
@@ -71,7 +71,7 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "60c9da71e15060aa859a7a6e85f4b14062b761f4",
74
+ "gitHead": "1b8eb0e13635d3ef52c1c11d305ff927d01390ae",
75
75
  "scripts": {
76
76
  "build": "tsc --emitDeclarationOnly && babel src --out-dir build --extensions \".ts\" --source-maps --ignore \"src/**/__mocks__/*\",\"src/**/__tests__/*\",\"src/**/__integration_tests__/*\"",
77
77
  "clean": "expo-module clean",