@expo/prebuild-config 6.1.0 → 6.2.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,8 +38,6 @@ function getAndroidSplashConfig(config) {
|
|
|
38
38
|
}
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
// TODO: dark isn't supported in the Expo config spec yet.
|
|
43
41
|
function getAndroidDarkSplashConfig(config) {
|
|
44
42
|
var _config$android3, _config$android3$spla;
|
|
45
43
|
// Respect the splash screen object, don't mix and match across different splash screen objects
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAndroidSplashConfig.js","names":["defaultResizeMode","getAndroidSplashConfig","config","_config$android","android","splash","_config$android2","_ref","_splash$xxxhdpi","_ref2","_splash$xxhdpi","_ref3","_splash$xhdpi","_ref4","_splash$hdpi","_ref5","_splash$mdpi","_splash$backgroundCol","_splash$resizeMode","xxxhdpi","image","xxhdpi","xhdpi","hdpi","mdpi","backgroundColor","resizeMode","_splash$image","_splash$image2","_splash$image3","_splash$image4","_splash$image5","_splash$backgroundCol2","_splash$resizeMode2","getAndroidDarkSplashConfig","_config$android3","_config$android3$spla","dark","_config$android4","_config$android4$spla","_ref6","_splash$xxxhdpi2","_ref7","_splash$xxhdpi2","_ref8","_splash$xhdpi2","_ref9","_splash$hdpi2","_ref10","_splash$mdpi2","_splash$backgroundCol3","_lightTheme$resizeMod","lightTheme"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.ts"],"sourcesContent":["import { ExpoConfig } from '@expo/config-types';\n\nexport type SplashScreenConfig = {\n xxxhdpi: string | null;\n xxhdpi: string | null;\n xhdpi: string | null;\n hdpi: string | null;\n mdpi: string | null;\n backgroundColor: string | null;\n resizeMode: 'contain' | 'cover' | 'native';\n};\n\nconst defaultResizeMode = 'contain';\n\nexport function getAndroidSplashConfig(\n config: Pick<ExpoConfig, 'splash' | 'android'>\n): SplashScreenConfig | null {\n // Respect the splash screen object, don't mix and match across different splash screen objects\n // in case the user wants the top level splash to apply to every platform except android.\n if (config.android?.splash) {\n const splash = config.android?.splash;\n return {\n xxxhdpi: splash.xxxhdpi ?? splash.image ?? null,\n xxhdpi: splash.xxhdpi ?? splash.image ?? null,\n xhdpi: splash.xhdpi ?? splash.image ?? null,\n hdpi: splash.hdpi ?? splash.image ?? null,\n mdpi: splash.mdpi ?? splash.image ?? null,\n backgroundColor: splash.backgroundColor ?? null,\n resizeMode: splash.resizeMode ?? defaultResizeMode,\n };\n }\n\n if (config.splash) {\n const splash = config.splash;\n return {\n xxxhdpi: splash.image ?? null,\n xxhdpi: splash.image ?? null,\n xhdpi: splash.image ?? null,\n hdpi: splash.image ?? null,\n mdpi: splash.image ?? null,\n backgroundColor: splash.backgroundColor ?? null,\n resizeMode: splash.resizeMode ?? defaultResizeMode,\n };\n }\n\n return null;\n}\n\
|
|
1
|
+
{"version":3,"file":"getAndroidSplashConfig.js","names":["defaultResizeMode","getAndroidSplashConfig","config","_config$android","android","splash","_config$android2","_ref","_splash$xxxhdpi","_ref2","_splash$xxhdpi","_ref3","_splash$xhdpi","_ref4","_splash$hdpi","_ref5","_splash$mdpi","_splash$backgroundCol","_splash$resizeMode","xxxhdpi","image","xxhdpi","xhdpi","hdpi","mdpi","backgroundColor","resizeMode","_splash$image","_splash$image2","_splash$image3","_splash$image4","_splash$image5","_splash$backgroundCol2","_splash$resizeMode2","getAndroidDarkSplashConfig","_config$android3","_config$android3$spla","dark","_config$android4","_config$android4$spla","_ref6","_splash$xxxhdpi2","_ref7","_splash$xxhdpi2","_ref8","_splash$xhdpi2","_ref9","_splash$hdpi2","_ref10","_splash$mdpi2","_splash$backgroundCol3","_lightTheme$resizeMod","lightTheme"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.ts"],"sourcesContent":["import { ExpoConfig } from '@expo/config-types';\n\nexport type SplashScreenConfig = {\n xxxhdpi: string | null;\n xxhdpi: string | null;\n xhdpi: string | null;\n hdpi: string | null;\n mdpi: string | null;\n backgroundColor: string | null;\n resizeMode: 'contain' | 'cover' | 'native';\n};\n\nconst defaultResizeMode = 'contain';\n\nexport function getAndroidSplashConfig(\n config: Pick<ExpoConfig, 'splash' | 'android'>\n): SplashScreenConfig | null {\n // Respect the splash screen object, don't mix and match across different splash screen objects\n // in case the user wants the top level splash to apply to every platform except android.\n if (config.android?.splash) {\n const splash = config.android?.splash;\n return {\n xxxhdpi: splash.xxxhdpi ?? splash.image ?? null,\n xxhdpi: splash.xxhdpi ?? splash.image ?? null,\n xhdpi: splash.xhdpi ?? splash.image ?? null,\n hdpi: splash.hdpi ?? splash.image ?? null,\n mdpi: splash.mdpi ?? splash.image ?? null,\n backgroundColor: splash.backgroundColor ?? null,\n resizeMode: splash.resizeMode ?? defaultResizeMode,\n };\n }\n\n if (config.splash) {\n const splash = config.splash;\n return {\n xxxhdpi: splash.image ?? null,\n xxhdpi: splash.image ?? null,\n xhdpi: splash.image ?? null,\n hdpi: splash.image ?? null,\n mdpi: splash.image ?? null,\n backgroundColor: splash.backgroundColor ?? null,\n resizeMode: splash.resizeMode ?? defaultResizeMode,\n };\n }\n\n return null;\n}\n\nexport function getAndroidDarkSplashConfig(\n config: Pick<ExpoConfig, 'splash' | 'android'>\n): SplashScreenConfig | null {\n // Respect the splash screen object, don't mix and match across different splash screen objects\n // in case the user wants the top level splash to apply to every platform except android.\n if (config.android?.splash?.dark) {\n const splash = config.android?.splash?.dark;\n const lightTheme = getAndroidSplashConfig(config);\n return {\n xxxhdpi: splash.xxxhdpi ?? splash.image ?? null,\n xxhdpi: splash.xxhdpi ?? splash.image ?? null,\n xhdpi: splash.xhdpi ?? splash.image ?? null,\n hdpi: splash.hdpi ?? splash.image ?? null,\n mdpi: splash.mdpi ?? splash.image ?? null,\n backgroundColor: splash.backgroundColor ?? null,\n // Can't support dark resizeMode because the resize mode is hardcoded into the MainActivity.java\n resizeMode: lightTheme?.resizeMode ?? defa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A,aAAA,GAAI1C,MAAM,CAACe,KAAK,cAAA0B,KAAA,cAAAA,KAAA,GAAI,IAAI;MACzCtB,IAAI,GAAAwB,MAAA,IAAAC,aAAA,GAAE5C,MAAM,CAACmB,IAAI,cAAAyB,aAAA,cAAAA,aAAA,GAAI5C,MAAM,CAACe,KAAK,cAAA4B,MAAA,cAAAA,MAAA,GAAI,IAAI;MACzCvB,eAAe,GAAAyB,sBAAA,GAAE7C,MAAM,CAACoB,eAAe,cAAAyB,sBAAA,cAAAA,sBAAA,GAAI,IAAI;MAC/C;MACAxB,UAAU,GAAAyB,qBAAA,GAAEC,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAE1B,UAAU,cAAAyB,qBAAA,cAAAA,qBAAA,GAAInD;IACxC,CAAC;EACH;EAEA,OAAO,IAAI;AACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/prebuild-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Get the prebuild config",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/debug": "^4.1.5",
|
|
35
|
-
"@types/xml2js": "
|
|
35
|
+
"@types/xml2js": "~0.4.11"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@expo/config": "~8.
|
|
39
|
-
"@expo/config-plugins": "~7.
|
|
38
|
+
"@expo/config": "~8.1.0",
|
|
39
|
+
"@expo/config-plugins": "~7.2.0",
|
|
40
40
|
"@expo/config-types": "^49.0.0-alpha.1",
|
|
41
41
|
"@expo/image-utils": "0.3.22",
|
|
42
42
|
"@expo/json-file": "^8.2.37",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"fs-extra": "^9.0.0",
|
|
45
45
|
"resolve-from": "^5.0.0",
|
|
46
46
|
"semver": "7.3.2",
|
|
47
|
-
"xml2js": "0.
|
|
47
|
+
"xml2js": "0.6.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"expo-modules-autolinking": ">=0.8.1"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db"
|
|
56
56
|
}
|