@expo/config-plugins
Advanced tools
Comparing version 4.0.6 to 4.0.7
@@ -17,3 +17,2 @@ import * as AllowBackup from './AllowBackup'; | ||
import * as Resources from './Resources'; | ||
import * as RootViewBackgroundColor from './RootViewBackgroundColor'; | ||
import * as Scheme from './Scheme'; | ||
@@ -24,6 +23,5 @@ import * as StatusBar from './StatusBar'; | ||
import * as Updates from './Updates'; | ||
import * as UserInterfaceStyle from './UserInterfaceStyle'; | ||
import * as Version from './Version'; | ||
import * as WindowSoftInputMode from './WindowSoftInputMode'; | ||
export { Manifest, Colors, Paths, Permissions, Properties, Resources, Scheme, Strings, Styles }; | ||
export { AllowBackup, EasBuild, GoogleMapsApiKey, GoogleServices, IntentFilters, Name, Orientation, Package, PrimaryColor, RootViewBackgroundColor, StatusBar, Updates, UserInterfaceStyle, Version, JsEngine, WindowSoftInputMode, }; | ||
export { AllowBackup, EasBuild, GoogleMapsApiKey, GoogleServices, IntentFilters, Name, Orientation, Package, PrimaryColor, StatusBar, Updates, Version, JsEngine, WindowSoftInputMode, }; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.WindowSoftInputMode = exports.Version = exports.UserInterfaceStyle = exports.Updates = exports.Styles = exports.Strings = exports.StatusBar = exports.Scheme = exports.RootViewBackgroundColor = exports.Resources = exports.Properties = exports.PrimaryColor = exports.Permissions = exports.Paths = exports.Package = exports.Orientation = exports.Name = exports.Manifest = exports.JsEngine = exports.IntentFilters = exports.GoogleServices = exports.GoogleMapsApiKey = exports.EasBuild = exports.Colors = exports.AllowBackup = void 0; | ||
exports.WindowSoftInputMode = exports.Version = exports.Updates = exports.Styles = exports.Strings = exports.StatusBar = exports.Scheme = exports.Resources = exports.Properties = exports.PrimaryColor = exports.Permissions = exports.Paths = exports.Package = exports.Orientation = exports.Name = exports.Manifest = exports.JsEngine = exports.IntentFilters = exports.GoogleServices = exports.GoogleMapsApiKey = exports.EasBuild = exports.Colors = exports.AllowBackup = void 0; | ||
@@ -281,19 +281,2 @@ function AllowBackup() { | ||
function RootViewBackgroundColor() { | ||
const data = _interopRequireWildcard(require("./RootViewBackgroundColor")); | ||
RootViewBackgroundColor = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "RootViewBackgroundColor", { | ||
enumerable: true, | ||
get: function () { | ||
return RootViewBackgroundColor(); | ||
} | ||
}); | ||
function Scheme() { | ||
@@ -384,19 +367,2 @@ const data = _interopRequireWildcard(require("./Scheme")); | ||
function UserInterfaceStyle() { | ||
const data = _interopRequireWildcard(require("./UserInterfaceStyle")); | ||
UserInterfaceStyle = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "UserInterfaceStyle", { | ||
enumerable: true, | ||
get: function () { | ||
return UserInterfaceStyle(); | ||
} | ||
}); | ||
function Version() { | ||
@@ -403,0 +369,0 @@ const data = _interopRequireWildcard(require("./Version")); |
@@ -17,3 +17,2 @@ import * as Bitcode from './Bitcode'; | ||
import * as RequiresFullScreen from './RequiresFullScreen'; | ||
import * as RootViewBackgroundColor from './RootViewBackgroundColor'; | ||
import * as Scheme from './Scheme'; | ||
@@ -23,3 +22,2 @@ import * as Swift from './Swift'; | ||
import * as Updates from './Updates'; | ||
import * as UserInterfaceStyle from './UserInterfaceStyle'; | ||
import * as UsesNonExemptEncryption from './UsesNonExemptEncryption'; | ||
@@ -30,2 +28,2 @@ import * as Version from './Version'; | ||
export { InfoPlist, ExpoPlist, Entitlements, Paths, Permissions, XcodeUtils }; | ||
export { Bitcode, BundleIdentifier, BuildScheme, DeviceFamily, Google, Maps, Locales, JsEngine, Name, Orientation, ProvisioningProfile, RequiresFullScreen, RootViewBackgroundColor, Scheme, Swift, Target, Updates, UserInterfaceStyle, UsesNonExemptEncryption, Version, XcodeProjectFile, }; | ||
export { Bitcode, BundleIdentifier, BuildScheme, DeviceFamily, Google, Maps, Locales, JsEngine, Name, Orientation, ProvisioningProfile, RequiresFullScreen, Scheme, Swift, Target, Updates, UsesNonExemptEncryption, Version, XcodeProjectFile, }; |
@@ -18,3 +18,3 @@ "use strict"; | ||
}); | ||
exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.UserInterfaceStyle = exports.Updates = exports.Target = exports.Swift = exports.Scheme = exports.RootViewBackgroundColor = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = exports.JsEngine = exports.Google = exports.Entitlements = exports.DeviceFamily = exports.BundleIdentifier = exports.BuildScheme = exports.Bitcode = void 0; | ||
exports.XcodeUtils = exports.XcodeProjectFile = exports.Version = exports.UsesNonExemptEncryption = exports.Updates = exports.Target = exports.Swift = exports.Scheme = exports.RequiresFullScreen = exports.ProvisioningProfile = exports.Permissions = exports.Paths = exports.Orientation = exports.Name = exports.Maps = exports.Locales = exports.JsEngine = exports.Google = exports.Entitlements = exports.DeviceFamily = exports.BundleIdentifier = exports.BuildScheme = exports.Bitcode = void 0; | ||
@@ -286,19 +286,2 @@ function Bitcode() { | ||
function RootViewBackgroundColor() { | ||
const data = _interopRequireWildcard(require("./RootViewBackgroundColor")); | ||
RootViewBackgroundColor = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "RootViewBackgroundColor", { | ||
enumerable: true, | ||
get: function () { | ||
return RootViewBackgroundColor(); | ||
} | ||
}); | ||
function Scheme() { | ||
@@ -372,19 +355,2 @@ const data = _interopRequireWildcard(require("./Scheme")); | ||
function UserInterfaceStyle() { | ||
const data = _interopRequireWildcard(require("./UserInterfaceStyle")); | ||
UserInterfaceStyle = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "UserInterfaceStyle", { | ||
enumerable: true, | ||
get: function () { | ||
return UserInterfaceStyle(); | ||
} | ||
}); | ||
function UsesNonExemptEncryption() { | ||
@@ -391,0 +357,0 @@ const data = _interopRequireWildcard(require("./UsesNonExemptEncryption")); |
@@ -50,5 +50,9 @@ "use strict"; | ||
const EXPO_DEBUG = (0, _getenv().boolish)('EXPO_DEBUG', false); | ||
const EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS = (0, _getenv().boolish)('EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS', false); | ||
const EXPO_DEBUG = (0, _getenv().boolish)('EXPO_DEBUG', false); // Show all error info related to plugin resolution. | ||
const EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS = (0, _getenv().boolish)('EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS', false); // Force using the fallback unversioned plugin instead of a local versioned copy, | ||
// this should only be used for testing the CLI. | ||
const EXPO_USE_UNVERSIONED_PLUGINS = (0, _getenv().boolish)('EXPO_USE_UNVERSIONED_PLUGINS', false); | ||
function isModuleMissingError(name, error) { | ||
@@ -97,5 +101,6 @@ // @ts-ignore | ||
(0, _assert().default)(!((_pluginProps = pluginProps) !== null && _pluginProps !== void 0 && _pluginProps._resolverError), `Plugin property '_resolverError' is a reserved property of \`withStaticPlugin\``); | ||
let withPlugin; // Function was provided, no need to resolve: [withPlugin, {}] | ||
let withPlugin; | ||
if (typeof pluginResolve === 'function') { | ||
if ( // Function was provided, no need to resolve: [withPlugin, {}] | ||
typeof pluginResolve === 'function') { | ||
withPlugin = pluginResolve; | ||
@@ -105,3 +110,9 @@ } else if (typeof pluginResolve === 'string') { | ||
// Resolve and evaluate plugins. | ||
withPlugin = (0, _pluginResolver().resolveConfigPluginFunction)(projectRoot, pluginResolve); | ||
withPlugin = (0, _pluginResolver().resolveConfigPluginFunction)(projectRoot, pluginResolve); // Only force if the project has the versioned plugin, otherwise use default behavior. | ||
// This helps see which plugins are being skipped. | ||
if (EXPO_USE_UNVERSIONED_PLUGINS && !!withPlugin && !!props._isLegacyPlugin && !!props.fallback) { | ||
console.log(`Force "${pluginResolve}" to unversioned plugin`); | ||
withPlugin = props.fallback; | ||
} | ||
} catch (error) { | ||
@@ -108,0 +119,0 @@ if (EXPO_DEBUG) { |
{ | ||
"name": "@expo/config-plugins", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "A library for Expo config plugins", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -6,1 +6,15 @@ # Expo Config Plugins | ||
For more info, please refer to the official docs: [Config Plugins](https://docs.expo.dev/guides/config-plugins/). | ||
## Environment Variables | ||
### `EXPO_DEBUG` | ||
Print debug information related to static plugin resolution. | ||
### `EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS` | ||
Show all error info related to static plugin resolution. Requires `EXPO_DEBUG` to be enabled. | ||
### `EXPO_USE_UNVERSIONED_PLUGINS` | ||
Force using the fallback unversioned plugins instead of a local versioned copy from installed packages, this should only be used for testing the CLI. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20
976362
240
11735