@expo/prebuild-config 55.0.6 → 55.0.8

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.
@@ -12,13 +12,6 @@ function _configPlugins() {
12
12
  };
13
13
  return data;
14
14
  }
15
- function _withEnforceNavigationBarContrast() {
16
- const data = require("./withEnforceNavigationBarContrast");
17
- _withEnforceNavigationBarContrast = function () {
18
- return data;
19
- };
20
- return data;
21
- }
22
15
  function _withRestoreDefaultTheme() {
23
16
  const data = require("./withRestoreDefaultTheme");
24
17
  _withRestoreDefaultTheme = function () {
@@ -35,7 +28,6 @@ function applyEdgeToEdge(config) {
35
28
  if ('edgeToEdgeEnabled' in (config.android ?? {})) {
36
29
  _configPlugins().WarningAggregator.addWarningAndroid(TAG, '`edgeToEdgeEnabled` customization is no longer available - Android 16 makes edge-to-edge mandatory. Remove the `edgeToEdgeEnabled` entry from your app.json/app.config.js.');
37
30
  }
38
- config = (0, _withEnforceNavigationBarContrast().withEnforceNavigationBarContrast)(config, config.androidNavigationBar?.enforceContrast !== false);
39
31
 
40
32
  // We always restore the default theme in case the project has a leftover react-native-edge-to-edge theme from SDK 53.
41
33
  // If they are using react-native-edge-to-edge config plugin it'll be reapplied later.
@@ -1 +1 @@
1
- {"version":3,"file":"withEdgeToEdge.js","names":["_configPlugins","data","require","_withEnforceNavigationBarContrast","_withRestoreDefaultTheme","TAG","withEdgeToEdge","config","applyEdgeToEdge","exports","android","WarningAggregator","addWarningAndroid","withEnforceNavigationBarContrast","androidNavigationBar","enforceContrast","withRestoreDefaultTheme","_default","default"],"sources":["../../../../src/plugins/unversioned/edge-to-edge/withEdgeToEdge.ts"],"sourcesContent":["import {\n ConfigPlugin,\n ExportedConfigWithProps,\n WarningAggregator,\n AndroidConfig,\n} from '@expo/config-plugins';\nimport { type ExpoConfig } from '@expo/config-types';\n\nimport { withEnforceNavigationBarContrast } from './withEnforceNavigationBarContrast';\nimport { withRestoreDefaultTheme } from './withRestoreDefaultTheme';\n\nconst TAG = 'EDGE_TO_EDGE_PLUGIN';\n\nexport type ResourceXMLConfig = ExportedConfigWithProps<AndroidConfig.Resources.ResourceXML>;\n\nexport const withEdgeToEdge: ConfigPlugin = (config) => {\n return applyEdgeToEdge(config);\n};\n\nexport function applyEdgeToEdge(config: ExpoConfig): ExpoConfig {\n if ('edgeToEdgeEnabled' in (config.android ?? {})) {\n WarningAggregator.addWarningAndroid(\n TAG,\n '`edgeToEdgeEnabled` customization is no longer available - Android 16 makes edge-to-edge mandatory. Remove the `edgeToEdgeEnabled` entry from your app.json/app.config.js.'\n );\n }\n\n config = withEnforceNavigationBarContrast(\n config,\n config.androidNavigationBar?.enforceContrast !== false\n );\n\n // We always restore the default theme in case the project has a leftover react-native-edge-to-edge theme from SDK 53.\n // If they are using react-native-edge-to-edge config plugin it'll be reapplied later.\n return withRestoreDefaultTheme(config);\n}\n\nexport default withEdgeToEdge;\n"],"mappings":";;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAE,kCAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,iCAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,yBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,wBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMI,GAAG,GAAG,qBAAqB;AAI1B,MAAMC,cAA4B,GAAIC,MAAM,IAAK;EACtD,OAAOC,eAAe,CAACD,MAAM,CAAC;AAChC,CAAC;AAACE,OAAA,CAAAH,cAAA,GAAAA,cAAA;AAEK,SAASE,eAAeA,CAACD,MAAkB,EAAc;EAC9D,IAAI,mBAAmB,KAAKA,MAAM,CAACG,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE;IACjDC,kCAAiB,CAACC,iBAAiB,CACjCP,GAAG,EACH,4KACF,CAAC;EACH;EAEAE,MAAM,GAAG,IAAAM,oEAAgC,EACvCN,MAAM,EACNA,MAAM,CAACO,oBAAoB,EAAEC,eAAe,KAAK,KACnD,CAAC;;EAED;EACA;EACA,OAAO,IAAAC,kDAAuB,EAACT,MAAM,CAAC;AACxC;AAAC,IAAAU,QAAA,GAAAR,OAAA,CAAAS,OAAA,GAEcZ,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"withEdgeToEdge.js","names":["_configPlugins","data","require","_withRestoreDefaultTheme","TAG","withEdgeToEdge","config","applyEdgeToEdge","exports","android","WarningAggregator","addWarningAndroid","withRestoreDefaultTheme","_default","default"],"sources":["../../../../src/plugins/unversioned/edge-to-edge/withEdgeToEdge.ts"],"sourcesContent":["import {\n ConfigPlugin,\n ExportedConfigWithProps,\n WarningAggregator,\n AndroidConfig,\n} from '@expo/config-plugins';\nimport { type ExpoConfig } from '@expo/config-types';\n\nimport { withRestoreDefaultTheme } from './withRestoreDefaultTheme';\n\nconst TAG = 'EDGE_TO_EDGE_PLUGIN';\n\nexport type ResourceXMLConfig = ExportedConfigWithProps<AndroidConfig.Resources.ResourceXML>;\n\nexport const withEdgeToEdge: ConfigPlugin = (config) => {\n return applyEdgeToEdge(config);\n};\n\nexport function applyEdgeToEdge(config: ExpoConfig): ExpoConfig {\n if ('edgeToEdgeEnabled' in (config.android ?? {})) {\n WarningAggregator.addWarningAndroid(\n TAG,\n '`edgeToEdgeEnabled` customization is no longer available - Android 16 makes edge-to-edge mandatory. Remove the `edgeToEdgeEnabled` entry from your app.json/app.config.js.'\n );\n }\n\n // We always restore the default theme in case the project has a leftover react-native-edge-to-edge theme from SDK 53.\n // If they are using react-native-edge-to-edge config plugin it'll be reapplied later.\n return withRestoreDefaultTheme(config);\n}\n\nexport default withEdgeToEdge;\n"],"mappings":";;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAE,yBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,wBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMG,GAAG,GAAG,qBAAqB;AAI1B,MAAMC,cAA4B,GAAIC,MAAM,IAAK;EACtD,OAAOC,eAAe,CAACD,MAAM,CAAC;AAChC,CAAC;AAACE,OAAA,CAAAH,cAAA,GAAAA,cAAA;AAEK,SAASE,eAAeA,CAACD,MAAkB,EAAc;EAC9D,IAAI,mBAAmB,KAAKA,MAAM,CAACG,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE;IACjDC,kCAAiB,CAACC,iBAAiB,CACjCP,GAAG,EACH,4KACF,CAAC;EACH;;EAEA;EACA;EACA,OAAO,IAAAQ,kDAAuB,EAACN,MAAM,CAAC;AACxC;AAAC,IAAAO,QAAA,GAAAL,OAAA,CAAAM,OAAA,GAEcT,cAAc","ignoreList":[]}
@@ -1,8 +1,5 @@
1
1
  import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
2
2
  import { ExpoConfig } from '@expo/config-types';
3
3
  export declare const withNavigationBar: ConfigPlugin;
4
- export declare function setNavigationBarColors(config: Pick<ExpoConfig, 'androidNavigationBar'>, colors: AndroidConfig.Resources.ResourceXML): AndroidConfig.Resources.ResourceXML;
5
4
  export declare function setNavigationBarStyles(config: Pick<ExpoConfig, 'androidNavigationBar'>, styles: AndroidConfig.Resources.ResourceXML): AndroidConfig.Resources.ResourceXML;
6
- export declare function getNavigationBarImmersiveMode(config: Pick<ExpoConfig, 'androidNavigationBar'>): "leanback" | "immersive" | "sticky-immersive" | null;
7
- export declare function getNavigationBarColor(config: Pick<ExpoConfig, 'androidNavigationBar'>): string | null;
8
5
  export declare function getNavigationBarStyle(config: Pick<ExpoConfig, 'androidNavigationBar'>): "light-content" | "dark-content";
@@ -3,10 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getNavigationBarColor = getNavigationBarColor;
7
- exports.getNavigationBarImmersiveMode = getNavigationBarImmersiveMode;
8
6
  exports.getNavigationBarStyle = getNavigationBarStyle;
9
- exports.setNavigationBarColors = setNavigationBarColors;
10
7
  exports.setNavigationBarStyles = setNavigationBarStyles;
11
8
  exports.withNavigationBar = void 0;
12
9
  function _configPlugins() {
@@ -16,40 +13,20 @@ function _configPlugins() {
16
13
  };
17
14
  return data;
18
15
  }
19
- const NAVIGATION_BAR_COLOR = 'navigationBarColor';
20
16
  const withNavigationBar = config => {
21
- const immersiveMode = getNavigationBarImmersiveMode(config);
22
- if (immersiveMode) {
23
- // Immersive mode needs to be set programmatically
24
- _configPlugins().WarningAggregator.addWarningAndroid('androidNavigationBar.visible', 'Property is deprecated in Android 11 (API 30) and will be removed from Expo SDK.', 'https://expo.fyi/android-navigation-bar-visible-deprecated');
17
+ if ('androidNavigationBar' in config) {
18
+ _configPlugins().WarningAggregator.addWarningAndroid('androidNavigationBar', 'property is deprecated. Use the `expo-navigation-bar` plugin configuration instead.');
25
19
  }
26
- config = withNavigationBarColors(config);
27
20
  config = withNavigationBarStyles(config);
28
21
  return config;
29
22
  };
30
23
  exports.withNavigationBar = withNavigationBar;
31
- const withNavigationBarColors = config => {
32
- return (0, _configPlugins().withAndroidColors)(config, config => {
33
- config.modResults = setNavigationBarColors(config, config.modResults);
34
- return config;
35
- });
36
- };
37
24
  const withNavigationBarStyles = config => {
38
25
  return (0, _configPlugins().withAndroidStyles)(config, config => {
39
26
  config.modResults = setNavigationBarStyles(config, config.modResults);
40
27
  return config;
41
28
  });
42
29
  };
43
- function setNavigationBarColors(config, colors) {
44
- const hexString = getNavigationBarColor(config);
45
- if (hexString) {
46
- colors = _configPlugins().AndroidConfig.Colors.setColorItem(_configPlugins().AndroidConfig.Resources.buildResourceItem({
47
- name: NAVIGATION_BAR_COLOR,
48
- value: hexString
49
- }), colors);
50
- }
51
- return colors;
52
- }
53
30
  function setNavigationBarStyles(config, styles) {
54
31
  styles = _configPlugins().AndroidConfig.Styles.assignStylesValue(styles, {
55
32
  add: getNavigationBarStyle(config) === 'dark-content',
@@ -58,19 +35,13 @@ function setNavigationBarStyles(config, styles) {
58
35
  value: 'true'
59
36
  });
60
37
  styles = _configPlugins().AndroidConfig.Styles.assignStylesValue(styles, {
61
- add: !!getNavigationBarColor(config),
38
+ add: true,
62
39
  parent: _configPlugins().AndroidConfig.Styles.getAppThemeGroup(),
63
- name: `android:${NAVIGATION_BAR_COLOR}`,
64
- value: `@color/${NAVIGATION_BAR_COLOR}`
40
+ name: 'android:navigationBarColor',
41
+ value: '@android:color/transparent'
65
42
  });
66
43
  return styles;
67
44
  }
68
- function getNavigationBarImmersiveMode(config) {
69
- return config.androidNavigationBar?.visible || null;
70
- }
71
- function getNavigationBarColor(config) {
72
- return config.androidNavigationBar?.backgroundColor || null;
73
- }
74
45
  function getNavigationBarStyle(config) {
75
46
  return config.androidNavigationBar?.barStyle || 'light-content';
76
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"withAndroidNavigationBar.js","names":["_configPlugins","data","require","NAVIGATION_BAR_COLOR","withNavigationBar","config","immersiveMode","getNavigationBarImmersiveMode","WarningAggregator","addWarningAndroid","withNavigationBarColors","withNavigationBarStyles","exports","withAndroidColors","modResults","setNavigationBarColors","withAndroidStyles","setNavigationBarStyles","colors","hexString","getNavigationBarColor","AndroidConfig","Colors","setColorItem","Resources","buildResourceItem","name","value","styles","Styles","assignStylesValue","add","getNavigationBarStyle","parent","getAppThemeGroup","androidNavigationBar","visible","backgroundColor","barStyle"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n WarningAggregator,\n withAndroidColors,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst NAVIGATION_BAR_COLOR = 'navigationBarColor';\n\nexport const withNavigationBar: ConfigPlugin = (config) => {\n const immersiveMode = getNavigationBarImmersiveMode(config);\n if (immersiveMode) {\n // Immersive mode needs to be set programmatically\n WarningAggregator.addWarningAndroid(\n 'androidNavigationBar.visible',\n 'Property is deprecated in Android 11 (API 30) and will be removed from Expo SDK.',\n 'https://expo.fyi/android-navigation-bar-visible-deprecated'\n );\n }\n\n config = withNavigationBarColors(config);\n config = withNavigationBarStyles(config);\n return config;\n};\n\nconst withNavigationBarColors: ConfigPlugin = (config) => {\n return withAndroidColors(config, (config) => {\n config.modResults = setNavigationBarColors(config, config.modResults);\n return config;\n });\n};\n\nconst withNavigationBarStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, (config) => {\n config.modResults = setNavigationBarStyles(config, config.modResults);\n return config;\n });\n};\n\nexport function setNavigationBarColors(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n colors: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n const hexString = getNavigationBarColor(config);\n if (hexString) {\n colors = AndroidConfig.Colors.setColorItem(\n AndroidConfig.Resources.buildResourceItem({\n name: NAVIGATION_BAR_COLOR,\n value: hexString,\n }),\n colors\n );\n }\n return colors;\n}\n\nexport function setNavigationBarStyles(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n styles: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: getNavigationBarStyle(config) === 'dark-content',\n parent: AndroidConfig.Styles.getAppThemeGroup(),\n name: 'android:windowLightNavigationBar',\n value: 'true',\n });\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: !!getNavigationBarColor(config),\n parent: AndroidConfig.Styles.getAppThemeGroup(),\n name: `android:${NAVIGATION_BAR_COLOR}`,\n value: `@color/${NAVIGATION_BAR_COLOR}`,\n });\n\n return styles;\n}\n\nexport function getNavigationBarImmersiveMode(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.visible || null;\n}\n\nexport function getNavigationBarColor(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.backgroundColor || null;\n}\n\nexport function getNavigationBarStyle(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.barStyle || 'light-content';\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,MAAME,oBAAoB,GAAG,oBAAoB;AAE1C,MAAMC,iBAA+B,GAAIC,MAAM,IAAK;EACzD,MAAMC,aAAa,GAAGC,6BAA6B,CAACF,MAAM,CAAC;EAC3D,IAAIC,aAAa,EAAE;IACjB;IACAE,kCAAiB,CAACC,iBAAiB,CACjC,8BAA8B,EAC9B,kFAAkF,EAClF,4DACF,CAAC;EACH;EAEAJ,MAAM,GAAGK,uBAAuB,CAACL,MAAM,CAAC;EACxCA,MAAM,GAAGM,uBAAuB,CAACN,MAAM,CAAC;EACxC,OAAOA,MAAM;AACf,CAAC;AAACO,OAAA,CAAAR,iBAAA,GAAAA,iBAAA;AAEF,MAAMM,uBAAqC,GAAIL,MAAM,IAAK;EACxD,OAAO,IAAAQ,kCAAiB,EAACR,MAAM,EAAGA,MAAM,IAAK;IAC3CA,MAAM,CAACS,UAAU,GAAGC,sBAAsB,CAACV,MAAM,EAAEA,MAAM,CAACS,UAAU,CAAC;IACrE,OAAOT,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAED,MAAMM,uBAAqC,GAAIN,MAAM,IAAK;EACxD,OAAO,IAAAW,kCAAiB,EAACX,MAAM,EAAGA,MAAM,IAAK;IAC3CA,MAAM,CAACS,UAAU,GAAGG,sBAAsB,CAACZ,MAAM,EAAEA,MAAM,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M,CAAC8B,oBAAoB,EAAEE,eAAe,IAAI,IAAI;AAC7D;AAEO,SAASL,qBAAqBA,CAAC3B,MAAgD,EAAE;EACtF,OAAOA,MAAM,CAAC8B,oBAAoB,EAAEG,QAAQ,IAAI,eAAe;AACjE","ignoreList":[]}
1
+ {"version":3,"file":"withAndroidNavigationBar.js","names":["_configPlugins","data","require","withNavigationBar","config","WarningAggregator","addWarningAndroid","withNavigationBarStyles","exports","withAndroidStyles","modResults","setNavigationBarStyles","styles","AndroidConfig","Styles","assignStylesValue","add","getNavigationBarStyle","parent","getAppThemeGroup","name","value","androidNavigationBar","barStyle"],"sources":["../../../../src/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n WarningAggregator,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nexport const withNavigationBar: ConfigPlugin = (config) => {\n if ('androidNavigationBar' in config) {\n WarningAggregator.addWarningAndroid(\n 'androidNavigationBar',\n 'property is deprecated. Use the `expo-navigation-bar` plugin configuration instead.'\n );\n }\n\n config = withNavigationBarStyles(config);\n return config;\n};\n\nconst withNavigationBarStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, (config) => {\n config.modResults = setNavigationBarStyles(config, config.modResults);\n return config;\n });\n};\n\nexport function setNavigationBarStyles(\n config: Pick<ExpoConfig, 'androidNavigationBar'>,\n styles: AndroidConfig.Resources.ResourceXML\n): AndroidConfig.Resources.ResourceXML {\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: getNavigationBarStyle(config) === 'dark-content',\n parent: AndroidConfig.Styles.getAppThemeGroup(),\n name: 'android:windowLightNavigationBar',\n value: 'true',\n });\n styles = AndroidConfig.Styles.assignStylesValue(styles, {\n add: true,\n parent: AndroidConfig.Styles.getAppThemeGroup(),\n name: 'android:navigationBarColor',\n value: '@android:color/transparent',\n });\n\n return styles;\n}\n\nexport function getNavigationBarStyle(config: Pick<ExpoConfig, 'androidNavigationBar'>) {\n return config.androidNavigationBar?.barStyle || 'light-content';\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQO,MAAME,iBAA+B,GAAIC,MAAM,IAAK;EACzD,IAAI,sBAAsB,IAAIA,MAAM,EAAE;IACpCC,kCAAiB,CAACC,iBAAiB,CACjC,sBAAsB,EACtB,qFACF,CAAC;EACH;EAEAF,MAAM,GAAGG,uBAAuB,CAACH,MAAM,CAAC;EACxC,OAAOA,MAAM;AACf,CAAC;AAACI,OAAA,CAAAL,iBAAA,GAAAA,iBAAA;AAEF,MAAMI,uBAAqC,GAAIH,MAAM,IAAK;EACxD,OAAO,IAAAK,kCAAiB,EAACL,MAAM,EAAGA,MAAM,IAAK;IAC3CA,MAAM,CAACM,UAAU,GAAGC,sBAAsB,CAACP,MAAM,EAAEA,MAAM,CAACM,UAAU,CAAC;IACrE,OAAON,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAEM,SAASO,sBAAsBA,CACpCP,MAAgD,EAChDQ,MAA2C,EACN;EACrCA,MAAM,GAAGC,8BAAa,CAACC,MAAM,CAACC,iBAAiB,CAACH,MAAM,EAAE;IACtDI,GAAG,EAAEC,qBAAqB,CAACb,MAAM,CAAC,KAAK,cAAc;IACrDc,MAAM,EAAEL,8BAAa,CAACC,MAAM,CAACK,gBAAgB,CAAC,CAAC;IAC/CC,IAAI,EAAE,kCAAkC;IACxCC,KAAK,EAAE;EACT,CAAC,CAAC;EACFT,MAAM,GAAGC,8BAAa,CAACC,MAAM,CAACC,iBAAiB,CAACH,MAAM,EAAE;IACtDI,GAAG,EAAE,IAAI;IACTE,MAAM,EAAEL,8BAAa,CAACC,MAAM,CAACK,gBAAgB,CAAC,CAAC;IAC/CC,IAAI,EAAE,4BAA4B;IAClCC,KAAK,EAAE;EACT,CAAC,CAAC;EAEF,OAAOT,MAAM;AACf;AAEO,SAASK,qBAAqBA,CAACb,MAAgD,EAAE;EACtF,OAAOA,MAAM,CAACkB,oBAAoB,EAAEC,QAAQ,IAAI,eAAe;AACjE","ignoreList":[]}
@@ -56,18 +56,6 @@ function _withAndroidSplashStyles() {
56
56
  const withAndroidSplashScreen = (config, props) => {
57
57
  const isLegacyConfig = props === undefined;
58
58
  const splashConfig = (0, _getAndroidSplashConfig().getAndroidSplashConfig)(config, props ?? null);
59
-
60
- // Update the android status bar to match the splash screen
61
- // androidStatusBar applies info to the app activity style.
62
- const backgroundColor = splashConfig?.backgroundColor || '#ffffff';
63
- if (config.androidStatusBar?.backgroundColor) {
64
- if (backgroundColor.toLowerCase() !== config.androidStatusBar?.backgroundColor?.toLowerCase?.()) {
65
- _configPlugins().WarningAggregator.addWarningAndroid('androidStatusBar.backgroundColor', 'Color conflicts with the splash.backgroundColor');
66
- }
67
- } else {
68
- if (!config.androidStatusBar) config.androidStatusBar = {};
69
- config.androidStatusBar.backgroundColor = backgroundColor;
70
- }
71
59
  return (0, _configPlugins().withPlugins)(config, [[_withAndroidSplashMainActivity().withAndroidSplashMainActivity, {
72
60
  isLegacyConfig
73
61
  }], [_withAndroidSplashImages().withAndroidSplashImages, splashConfig], [_withAndroidSplashDrawables().withAndroidSplashDrawables, splashConfig], [_withAndroidSplashStyles().withAndroidSplashStyles, {
@@ -1 +1 @@
1
- {"version":3,"file":"withAndroidSplashScreen.js","names":["_configPlugins","data","require","_getAndroidSplashConfig","_withAndroidSplashDrawables","_withAndroidSplashImages","_withAndroidSplashMainActivity","_withAndroidSplashStrings","_withAndroidSplashStyles","withAndroidSplashScreen","config","props","isLegacyConfig","undefined","splashConfig","getAndroidSplashConfig","backgroundColor","androidStatusBar","toLowerCase","WarningAggregator","addWarningAndroid","withPlugins","withAndroidSplashMainActivity","withAndroidSplashImages","withAndroidSplashDrawables","withAndroidSplashStyles","withAndroidSplashStrings","exports"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.ts"],"sourcesContent":["import { ConfigPlugin, WarningAggregator, withPlugins } from '@expo/config-plugins';\n\nimport { AndroidSplashConfig, getAndroidSplashConfig } from './getAndroidSplashConfig';\nimport { withAndroidSplashDrawables } from './withAndroidSplashDrawables';\nimport { withAndroidSplashImages } from './withAndroidSplashImages';\nimport { withAndroidSplashMainActivity } from './withAndroidSplashMainActivity';\nimport { withAndroidSplashStrings } from './withAndroidSplashStrings';\nimport { withAndroidSplashStyles } from './withAndroidSplashStyles';\n\nexport const withAndroidSplashScreen: ConfigPlugin<\n AndroidSplashConfig | undefined | null | void\n> = (config, props) => {\n const isLegacyConfig = props === undefined;\n const splashConfig = getAndroidSplashConfig(config, props ?? null);\n\n // Update the android status bar to match the splash screen\n // androidStatusBar applies info to the app activity style.\n const backgroundColor = splashConfig?.backgroundColor || '#ffffff';\n if (config.androidStatusBar?.backgroundColor) {\n if (\n backgroundColor.toLowerCase() !== config.androidStatusBar?.backgroundColor?.toLowerCase?.()\n ) {\n WarningAggregator.addWarningAndroid(\n 'androidStatusBar.backgroundColor',\n 'Color conflicts with the splash.backgroundColor'\n );\n }\n } else {\n if (!config.androidStatusBar) config.androidStatusBar = {};\n config.androidStatusBar.backgroundColor = backgroundColor;\n }\n\n return withPlugins(config, [\n [withAndroidSplashMainActivity, { isLegacyConfig }],\n [withAndroidSplashImages, splashConfig],\n [withAndroidSplashDrawables, splashConfig],\n [withAndroidSplashStyles, { splashConfig, isLegacyConfig }],\n [withAndroidSplashStrings, splashConfig],\n ]);\n};\n"],"mappings":";;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,wBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,uBAAA,YAAAA,CAAA;IAAA,OAAAF,IAA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B,EAAEP,MAAM,CAACO,gBAAgB,GAAG,CAAC,CAAC;IAC1DP,MAAM,CAACO,gBAAgB,CAACD,eAAe,GAAGA,eAAe;EAC3D;EAEA,OAAO,IAAAK,4BAAW,EAACX,MAAM,EAAE,CACzB,CAACY,8DAA6B,EAAE;IAAEV;EAAe,CAAC,CAAC,EACnD,CAACW,kDAAuB,EAAET,YAAY,CAAC,EACvC,CAACU,wDAA0B,EAAEV,YAAY,CAAC,EAC1C,CAACW,kDAAuB,EAAE;IAAEX,YAAY;IAAEF;EAAe,CAAC,CAAC,EAC3D,CAACc,oDAAwB,EAAEZ,YAAY,CAAC,CACzC,CAAC;AACJ,CAAC;AAACa,OAAA,CAAAlB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
1
+ {"version":3,"file":"withAndroidSplashScreen.js","names":["_configPlugins","data","require","_getAndroidSplashConfig","_withAndroidSplashDrawables","_withAndroidSplashImages","_withAndroidSplashMainActivity","_withAndroidSplashStrings","_withAndroidSplashStyles","withAndroidSplashScreen","config","props","isLegacyConfig","undefined","splashConfig","getAndroidSplashConfig","withPlugins","withAndroidSplashMainActivity","withAndroidSplashImages","withAndroidSplashDrawables","withAndroidSplashStyles","withAndroidSplashStrings","exports"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.ts"],"sourcesContent":["import { ConfigPlugin, withPlugins } from '@expo/config-plugins';\n\nimport { AndroidSplashConfig, getAndroidSplashConfig } from './getAndroidSplashConfig';\nimport { withAndroidSplashDrawables } from './withAndroidSplashDrawables';\nimport { withAndroidSplashImages } from './withAndroidSplashImages';\nimport { withAndroidSplashMainActivity } from './withAndroidSplashMainActivity';\nimport { withAndroidSplashStrings } from './withAndroidSplashStrings';\nimport { withAndroidSplashStyles } from './withAndroidSplashStyles';\n\nexport const withAndroidSplashScreen: ConfigPlugin<\n AndroidSplashConfig | undefined | null | void\n> = (config, props) => {\n const isLegacyConfig = props === undefined;\n const splashConfig = getAndroidSplashConfig(config, props ?? null);\n\n return withPlugins(config, [\n [withAndroidSplashMainActivity, { isLegacyConfig }],\n [withAndroidSplashImages, splashConfig],\n [withAndroidSplashDrawables, splashConfig],\n [withAndroidSplashStyles, { splashConfig, isLegacyConfig }],\n [withAndroidSplashStrings, splashConfig],\n ]);\n};\n"],"mappings":";;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,wBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,uBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,4BAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,2BAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,yBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,wBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,+BAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,8BAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,0BAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,yBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,yBAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,wBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMQ,uBAEZ,GAAGA,CAACC,MAAM,EAAEC,KAAK,KAAK;EACrB,MAAMC,cAAc,GAAGD,KAAK,KAAKE,SAAS;EAC1C,MAAMC,YAAY,GAAG,IAAAC,gDAAsB,EAACL,MAAM,EAAEC,KAAK,IAAI,IAAI,CAAC;EAElE,OAAO,IAAAK,4BAAW,EAACN,MAAM,EAAE,CACzB,CAACO,8DAA6B,EAAE;IAAEL;EAAe,CAAC,CAAC,EACnD,CAACM,kDAAuB,EAAEJ,YAAY,CAAC,EACvC,CAACK,wDAA0B,EAAEL,YAAY,CAAC,EAC1C,CAACM,kDAAuB,EAAE;IAAEN,YAAY;IAAEF;EAAe,CAAC,CAAC,EAC3D,CAACS,oDAAwB,EAAEP,YAAY,CAAC,CACzC,CAAC;AACJ,CAAC;AAACQ,OAAA,CAAAb,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import { AndroidConfig, ConfigPlugin } from '@expo/config-plugins';
2
2
  import { AndroidSplashConfig } from './getAndroidSplashConfig';
3
3
  export declare const withAndroidSplashStrings: ConfigPlugin<AndroidSplashConfig>;
4
- export declare function setSplashStrings(strings: AndroidConfig.Resources.ResourceXML, resizeMode: string, statusBarTranslucent: boolean): AndroidConfig.Resources.ResourceXML;
4
+ export declare function setSplashStrings(strings: AndroidConfig.Resources.ResourceXML, resizeMode: string): AndroidConfig.Resources.ResourceXML;
@@ -20,7 +20,6 @@ function _getAndroidSplashConfig() {
20
20
  return data;
21
21
  }
22
22
  const RESIZE_MODE_KEY = 'expo_splash_screen_resize_mode';
23
- const STATUS_BAR_TRANSLUCENT_KEY = 'expo_splash_screen_status_bar_translucent';
24
23
  const withAndroidSplashStrings = (config, props) => {
25
24
  return (0, _configPlugins().withStringsXml)(config, config => {
26
25
  const splashConfig = (0, _getAndroidSplashConfig().getAndroidSplashConfig)(config, props);
@@ -28,22 +27,17 @@ const withAndroidSplashStrings = (config, props) => {
28
27
  const {
29
28
  resizeMode
30
29
  } = splashConfig;
31
- const statusBarTranslucent = !!config.androidStatusBar?.translucent;
32
- config.modResults = setSplashStrings(config.modResults, resizeMode, statusBarTranslucent);
30
+ config.modResults = setSplashStrings(config.modResults, resizeMode);
33
31
  }
34
32
  return config;
35
33
  });
36
34
  };
37
35
  exports.withAndroidSplashStrings = withAndroidSplashStrings;
38
- function setSplashStrings(strings, resizeMode, statusBarTranslucent) {
36
+ function setSplashStrings(strings, resizeMode) {
39
37
  return _configPlugins().AndroidConfig.Strings.setStringItem([_configPlugins().AndroidConfig.Resources.buildResourceItem({
40
38
  name: RESIZE_MODE_KEY,
41
39
  value: resizeMode,
42
40
  translatable: false
43
- }), _configPlugins().AndroidConfig.Resources.buildResourceItem({
44
- name: STATUS_BAR_TRANSLUCENT_KEY,
45
- value: String(statusBarTranslucent),
46
- translatable: false
47
41
  })], strings);
48
42
  }
49
43
  //# sourceMappingURL=withAndroidSplashStrings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withAndroidSplashStrings.js","names":["_configPlugins","data","require","_getAndroidSplashConfig","RESIZE_MODE_KEY","STATUS_BAR_TRANSLUCENT_KEY","withAndroidSplashStrings","config","props","withStringsXml","splashConfig","getAndroidSplashConfig","resizeMode","statusBarTranslucent","androidStatusBar","translucent","modResults","setSplashStrings","exports","strings","AndroidConfig","Strings","setStringItem","Resources","buildResourceItem","name","value","translatable","String"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, withStringsXml } from '@expo/config-plugins';\n\nimport { AndroidSplashConfig, getAndroidSplashConfig } from './getAndroidSplashConfig';\n\nconst RESIZE_MODE_KEY = 'expo_splash_screen_resize_mode';\nconst STATUS_BAR_TRANSLUCENT_KEY = 'expo_splash_screen_status_bar_translucent';\n\nexport const withAndroidSplashStrings: ConfigPlugin<AndroidSplashConfig> = (config, props) => {\n return withStringsXml(config, (config) => {\n const splashConfig = getAndroidSplashConfig(config, props);\n if (splashConfig) {\n const { resizeMode } = splashConfig;\n const statusBarTranslucent = !!config.androidStatusBar?.translucent;\n config.modResults = setSplashStrings(config.modResults, resizeMode, statusBarTranslucent);\n }\n return config;\n });\n};\n\nexport function setSplashStrings(\n strings: AndroidConfig.Resources.ResourceXML,\n resizeMode: string,\n statusBarTranslucent: boolean\n): AndroidConfig.Resources.ResourceXML {\n return AndroidConfig.Strings.setStringItem(\n [\n AndroidConfig.Resources.buildResourceItem({\n name: RESIZE_MODE_KEY,\n value: resizeMode,\n translatable: false,\n }),\n AndroidConfig.Resources.buildResourceItem({\n name: STATUS_BAR_TRANSLUCENT_KEY,\n value: String(statusBarTranslucent),\n translatable: false,\n }),\n ],\n strings\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,wBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,uBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMG,eAAe,GAAG,gCAAgC;AACxD,MAAMC,0BAA0B,GAAG,2CAA2C;AAEvE,MAAMC,wBAA2D,GAAGA,CAACC,MAAM,EAAEC,KAAK,KAAK;EAC5F,OAAO,IAAAC,+BAAc,EAACF,MAAM,EAAGA,MAAM,IAAK;IACxC,MAAMG,YAAY,GAAG,IAAAC,gDAAsB,EAACJ,MAAM,EAAEC,KAAK,CAAC;IAC1D,IAAIE,YAAY,EAAE;MAChB,MAAM;QAAEE;MAAW,CAAC,GAAGF,YAAY;MACnC,MAAMG,oBAAoB,GAAG,CAAC,CAACN,MAAM,CAACO,gBAAgB,EAAEC,WAAW;MACnER,MAAM,CAACS,UAAU,GAAGC,gBAAgB,CAACV,MAAM,CAACS,UAAU,EAAEJ,UAAU,EAAEC,oBAAoB,CAAC;IAC3F;IACA,OAAON,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAACW,OAAA,CAAAZ,wBAAA,GAAAA,wBAAA;AAEK,SAASW,gBAAgBA,CAC9BE,OAA4C,EAC5CP,UAAkB,EAClBC,oBAA6B,EACQ;EACrC,OAAOO,8BAAa,CAACC,OAAO,CAACC,aAAa,CACxC,CACEF,8BAAa,CAACG,SAAS,CAACC,iBAAiB,CAAC;IACxCC,IAAI,EAAErB,eAAe;IACrBsB,KAAK,EAAEd,UAAU;IACjBe,YAAY,EAAE;EAChB,CAAC,CAAC,EACFP,8BAAa,CAACG,SAAS,CAACC,iBAAiB,CAAC;IACxCC,IAAI,EAAEpB,0BAA0B;IAChCqB,KAAK,EAAEE,MAAM,CAACf,oBAAoB,CAAC;IACnCc,YAAY,EAAE;EAChB,CAAC,CAAC,CACH,EACDR,OACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"withAndroidSplashStrings.js","names":["_configPlugins","data","require","_getAndroidSplashConfig","RESIZE_MODE_KEY","withAndroidSplashStrings","config","props","withStringsXml","splashConfig","getAndroidSplashConfig","resizeMode","modResults","setSplashStrings","exports","strings","AndroidConfig","Strings","setStringItem","Resources","buildResourceItem","name","value","translatable"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.ts"],"sourcesContent":["import { AndroidConfig, ConfigPlugin, withStringsXml } from '@expo/config-plugins';\n\nimport { AndroidSplashConfig, getAndroidSplashConfig } from './getAndroidSplashConfig';\n\nconst RESIZE_MODE_KEY = 'expo_splash_screen_resize_mode';\n\nexport const withAndroidSplashStrings: ConfigPlugin<AndroidSplashConfig> = (config, props) => {\n return withStringsXml(config, (config) => {\n const splashConfig = getAndroidSplashConfig(config, props);\n if (splashConfig) {\n const { resizeMode } = splashConfig;\n config.modResults = setSplashStrings(config.modResults, resizeMode);\n }\n return config;\n });\n};\n\nexport function setSplashStrings(\n strings: AndroidConfig.Resources.ResourceXML,\n resizeMode: string\n): AndroidConfig.Resources.ResourceXML {\n return AndroidConfig.Strings.setStringItem(\n [\n AndroidConfig.Resources.buildResourceItem({\n name: RESIZE_MODE_KEY,\n value: resizeMode,\n translatable: false,\n }),\n ],\n strings\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,wBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,uBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMG,eAAe,GAAG,gCAAgC;AAEjD,MAAMC,wBAA2D,GAAGA,CAACC,MAAM,EAAEC,KAAK,KAAK;EAC5F,OAAO,IAAAC,+BAAc,EAACF,MAAM,EAAGA,MAAM,IAAK;IACxC,MAAMG,YAAY,GAAG,IAAAC,gDAAsB,EAACJ,MAAM,EAAEC,KAAK,CAAC;IAC1D,IAAIE,YAAY,EAAE;MAChB,MAAM;QAAEE;MAAW,CAAC,GAAGF,YAAY;MACnCH,MAAM,CAACM,UAAU,GAAGC,gBAAgB,CAACP,MAAM,CAACM,UAAU,EAAED,UAAU,CAAC;IACrE;IACA,OAAOL,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAACQ,OAAA,CAAAT,wBAAA,GAAAA,wBAAA;AAEK,SAASQ,gBAAgBA,CAC9BE,OAA4C,EAC5CJ,UAAkB,EACmB;EACrC,OAAOK,8BAAa,CAACC,OAAO,CAACC,aAAa,CACxC,CACEF,8BAAa,CAACG,SAAS,CAACC,iBAAiB,CAAC;IACxCC,IAAI,EAAEjB,eAAe;IACrBkB,KAAK,EAAEX,UAAU;IACjBY,YAAY,EAAE;EAChB,CAAC,CAAC,CACH,EACDR,OACF,CAAC;AACH","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/prebuild-config",
3
- "version": "55.0.6",
3
+ "version": "55.0.8",
4
4
  "description": "Get the prebuild config",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -40,9 +40,9 @@
40
40
  "expo-module-scripts": "^55.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@expo/config": "~55.0.7",
44
- "@expo/config-plugins": "~55.0.5",
45
- "@expo/config-types": "^55.0.4",
43
+ "@expo/config": "~55.0.8",
44
+ "@expo/config-plugins": "~55.0.6",
45
+ "@expo/config-types": "^55.0.5",
46
46
  "@expo/image-utils": "^0.8.12",
47
47
  "@expo/json-file": "^10.0.12",
48
48
  "@react-native/normalize-colors": "0.83.2",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "22e2ad4afba05b91f833f8cf07a36637748a1f70"
57
+ "gitHead": "413b0450434d3e456eb391eca792ee9ac1e1efec"
58
58
  }
@@ -1,4 +0,0 @@
1
- import { ConfigPlugin } from '@expo/config-plugins';
2
- import { ResourceXMLConfig } from './withEdgeToEdge';
3
- export declare const withEnforceNavigationBarContrast: ConfigPlugin<boolean>;
4
- export declare function applyEnforceNavigationBarContrast(config: ResourceXMLConfig, enforceNavigationBarContrast: boolean): ResourceXMLConfig;
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.applyEnforceNavigationBarContrast = applyEnforceNavigationBarContrast;
7
- exports.withEnforceNavigationBarContrast = void 0;
8
- function _configPlugins() {
9
- const data = require("@expo/config-plugins");
10
- _configPlugins = function () {
11
- return data;
12
- };
13
- return data;
14
- }
15
- const withEnforceNavigationBarContrast = (config, enforceNavigationBarContrast) => {
16
- return (0, _configPlugins().withAndroidStyles)(config, config => {
17
- return applyEnforceNavigationBarContrast(config, enforceNavigationBarContrast);
18
- });
19
- };
20
- exports.withEnforceNavigationBarContrast = withEnforceNavigationBarContrast;
21
- function applyEnforceNavigationBarContrast(config, enforceNavigationBarContrast) {
22
- const enforceNavigationBarContrastItem = {
23
- _: enforceNavigationBarContrast ? 'true' : 'false',
24
- $: {
25
- name: 'android:enforceNavigationBarContrast',
26
- 'tools:targetApi': '29'
27
- }
28
- };
29
- const {
30
- style = []
31
- } = config.modResults.resources;
32
- const mainThemeIndex = style.findIndex(({
33
- $
34
- }) => $.name === 'AppTheme');
35
- if (mainThemeIndex === -1) {
36
- return config;
37
- }
38
- const mainTheme = style[mainThemeIndex];
39
- const enforceIndex = mainTheme.item.findIndex(({
40
- $
41
- }) => $.name === 'android:enforceNavigationBarContrast');
42
- if (enforceIndex !== -1) {
43
- style[mainThemeIndex].item[enforceIndex] = enforceNavigationBarContrastItem;
44
- return config;
45
- }
46
- config.modResults.resources.style = [{
47
- $: style[mainThemeIndex].$,
48
- item: [enforceNavigationBarContrastItem, ...mainTheme.item]
49
- }, ...style.filter(({
50
- $
51
- }) => $.name !== 'AppTheme')];
52
- return config;
53
- }
54
- //# sourceMappingURL=withEnforceNavigationBarContrast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withEnforceNavigationBarContrast.js","names":["_configPlugins","data","require","withEnforceNavigationBarContrast","config","enforceNavigationBarContrast","withAndroidStyles","applyEnforceNavigationBarContrast","exports","enforceNavigationBarContrastItem","_","$","name","style","modResults","resources","mainThemeIndex","findIndex","mainTheme","enforceIndex","item","filter"],"sources":["../../../../src/plugins/unversioned/edge-to-edge/withEnforceNavigationBarContrast.ts"],"sourcesContent":["import { ConfigPlugin, withAndroidStyles } from '@expo/config-plugins';\n\nimport { ResourceXMLConfig } from './withEdgeToEdge';\n\nexport const withEnforceNavigationBarContrast: ConfigPlugin<boolean> = (\n config,\n enforceNavigationBarContrast: boolean\n) => {\n return withAndroidStyles(config, (config) => {\n return applyEnforceNavigationBarContrast(config, enforceNavigationBarContrast);\n });\n};\n\nexport function applyEnforceNavigationBarContrast(\n config: ResourceXMLConfig,\n enforceNavigationBarContrast: boolean\n): ResourceXMLConfig {\n const enforceNavigationBarContrastItem = {\n _: enforceNavigationBarContrast ? 'true' : 'false',\n $: {\n name: 'android:enforceNavigationBarContrast',\n 'tools:targetApi': '29',\n },\n };\n const { style = [] } = config.modResults.resources;\n const mainThemeIndex = style.findIndex(({ $ }) => $.name === 'AppTheme');\n if (mainThemeIndex === -1) {\n return config;\n }\n const mainTheme = style[mainThemeIndex];\n const enforceIndex = mainTheme.item.findIndex(\n ({ $ }) => $.name === 'android:enforceNavigationBarContrast'\n );\n if (enforceIndex !== -1) {\n style[mainThemeIndex].item[enforceIndex] = enforceNavigationBarContrastItem;\n return config;\n }\n\n config.modResults.resources.style = [\n {\n $: style[mainThemeIndex].$,\n item: [enforceNavigationBarContrastItem, ...mainTheme.item],\n },\n ...style.filter(({ $ }) => $.name !== 'AppTheme'),\n ];\n\n return config;\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIO,MAAME,gCAAuD,GAAGA,CACrEC,MAAM,EACNC,4BAAqC,KAClC;EACH,OAAO,IAAAC,kCAAiB,EAACF,MAAM,EAAGA,MAAM,IAAK;IAC3C,OAAOG,iCAAiC,CAACH,MAAM,EAAEC,4BAA4B,CAAC;EAChF,CAAC,CAAC;AACJ,CAAC;AAACG,OAAA,CAAAL,gCAAA,GAAAA,gCAAA;AAEK,SAASI,iCAAiCA,CAC/CH,MAAyB,EACzBC,4BAAqC,EAClB;EACnB,MAAMI,gCAAgC,GAAG;IACvCC,CAAC,EAAEL,4BAA4B,GAAG,MAAM,GAAG,OAAO;IAClDM,CAAC,EAAE;MACDC,IAAI,EAAE,sCAAsC;MAC5C,iBAAiB,EAAE;IACrB;EACF,CAAC;EACD,MAAM;IAAEC,KAAK,GAAG;EAAG,CAAC,GAAGT,MAAM,CAACU,UAAU,CAACC,SAAS;EAClD,MAAMC,cAAc,GAAGH,KAAK,CAACI,SAAS,CAAC,CAAC;IAAEN;EAAE,CAAC,KAAKA,CAAC,CAACC,IAAI,KAAK,UAAU,CAAC;EACxE,IAAII,cAAc,KAA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