@expo/config-plugins
Advanced tools
Comparing version 8.0.9-canary-20240719-83ee47b to 8.0.9-canary-20240814-ce0f7d5
@@ -51,3 +51,3 @@ "use strict"; | ||
add: !!getPrimaryColor(config), | ||
parent: (0, _Styles().getAppThemeLightNoActionBarGroup)(), | ||
parent: (0, _Styles().getAppThemeGroup)(), | ||
name: COLOR_PRIMARY_KEY, | ||
@@ -54,0 +54,0 @@ value: `@color/${COLOR_PRIMARY_KEY}` |
@@ -75,3 +75,3 @@ "use strict"; | ||
styles = (0, _Styles().assignStylesValue)(styles, { | ||
parent: (0, _Styles().getAppThemeLightNoActionBarGroup)(), | ||
parent: (0, _Styles().getAppThemeGroup)(), | ||
name: WINDOW_LIGHT_STATUS_BAR, | ||
@@ -83,3 +83,3 @@ value: 'true', | ||
styles = (0, _Styles().assignStylesValue)(styles, { | ||
parent: (0, _Styles().getAppThemeLightNoActionBarGroup)(), | ||
parent: (0, _Styles().getAppThemeGroup)(), | ||
name: STATUS_BAR_COLOR, | ||
@@ -86,0 +86,0 @@ value: floatElement ? '@android:color/transparent' : hexString ?? '@color/colorPrimaryDark', |
@@ -26,3 +26,3 @@ import { ResourceGroupXML, ResourceItemXML, ResourceKind, ResourceXML } from './Resources'; | ||
name: string; | ||
parent: string; | ||
parent?: string; | ||
}; | ||
@@ -35,5 +35,10 @@ }): ResourceXML; | ||
name: string; | ||
parent: string; | ||
parent?: string; | ||
}; | ||
}): ResourceXML; | ||
/** | ||
* @deprecated Use `getAppThemeGroup` instead. | ||
* Matching on both style name and parent leads to prebuild issues, as `AppTheme` | ||
* style parent might be changed (when edge-to-edge is enabled, for example). | ||
*/ | ||
export declare function getAppThemeLightNoActionBarGroup(): { | ||
@@ -43,2 +48,5 @@ name: string; | ||
}; | ||
export declare function getAppThemeGroup(): { | ||
name: string; | ||
}; | ||
export declare function assignStylesValue(xml: ResourceXML, { add, value, targetApi, name, parent, }: { | ||
@@ -51,3 +59,3 @@ add: boolean; | ||
name: string; | ||
parent: string; | ||
parent?: string; | ||
}; | ||
@@ -54,0 +62,0 @@ }): ResourceXML; |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.assignStylesValue = assignStylesValue; | ||
exports.getAppThemeGroup = getAppThemeGroup; | ||
exports.getAppThemeLightNoActionBarGroup = getAppThemeLightNoActionBarGroup; | ||
@@ -89,3 +90,7 @@ exports.getProjectStylesXMLPathAsync = getProjectStylesXMLPathAsync; | ||
if (!appTheme) { | ||
appTheme = (0, _Resources().buildResourceGroup)(parent); | ||
appTheme = (0, _Resources().buildResourceGroup)({ | ||
parent: 'Theme.AppCompat.Light.NoActionBar', | ||
// Default AppTheme parent | ||
...parent | ||
}); | ||
xml.resources.style.push(appTheme); | ||
@@ -128,3 +133,7 @@ } | ||
// This is a very common theme so make it reusable. | ||
/** | ||
* @deprecated Use `getAppThemeGroup` instead. | ||
* Matching on both style name and parent leads to prebuild issues, as `AppTheme` | ||
* style parent might be changed (when edge-to-edge is enabled, for example). | ||
*/ | ||
function getAppThemeLightNoActionBarGroup() { | ||
@@ -136,2 +145,9 @@ return { | ||
} | ||
// This is a very common theme so make it reusable. | ||
function getAppThemeGroup() { | ||
return { | ||
name: 'AppTheme' | ||
}; | ||
} | ||
function assignStylesValue(xml, { | ||
@@ -138,0 +154,0 @@ add, |
{ | ||
"name": "@expo/config-plugins", | ||
"version": "8.0.9-canary-20240719-83ee47b", | ||
"version": "8.0.9-canary-20240814-ce0f7d5", | ||
"description": "A library for Expo config plugins", | ||
@@ -36,5 +36,5 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@expo/config-types": "52.0.0-canary-20240719-83ee47b", | ||
"@expo/json-file": "8.3.4-canary-20240719-83ee47b", | ||
"@expo/plist": "0.1.4-canary-20240719-83ee47b", | ||
"@expo/config-types": "52.0.0-canary-20240814-ce0f7d5", | ||
"@expo/json-file": "8.3.4-canary-20240814-ce0f7d5", | ||
"@expo/plist": "0.1.4-canary-20240814-ce0f7d5", | ||
"@expo/sdk-runtime-versions": "^1.0.0", | ||
@@ -57,3 +57,3 @@ "chalk": "^4.1.2", | ||
"@types/xml2js": "~0.4.11", | ||
"expo-module-scripts": "3.6.0-canary-20240719-83ee47b" | ||
"expo-module-scripts": "3.6.0-canary-20240814-ce0f7d5" | ||
}, | ||
@@ -63,3 +63,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "83ee47b5c89c7f1b1a5101189580eaf3555f5962" | ||
"gitHead": "ce0f7d5c7eaec2c8d06ee4e0dc0e58cd6c1612ed" | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
1105619
12921
+ Added@expo/config-types@52.0.0-canary-20240814-ce0f7d5(transitive)
+ Added@expo/json-file@8.3.4-canary-20240814-ce0f7d5(transitive)
+ Added@expo/plist@0.1.4-canary-20240814-ce0f7d5(transitive)
- Removed@expo/config-types@52.0.0-canary-20240719-83ee47b(transitive)
- Removed@expo/json-file@8.3.4-canary-20240719-83ee47b(transitive)
- Removed@expo/plist@0.1.4-canary-20240719-83ee47b(transitive)