@expo/prebuild-config 5.0.7 → 6.0.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.
- package/build/getAutolinkedPackages.js +3 -13
- package/build/getAutolinkedPackages.js.map +1 -1
- package/build/getPrebuildConfig.js +9 -24
- package/build/getPrebuildConfig.js.map +1 -1
- package/build/importExpoModulesAutolinking.d.ts +3 -3
- package/build/importExpoModulesAutolinking.js +0 -5
- package/build/importExpoModulesAutolinking.js.map +1 -1
- package/build/index.js +0 -5
- package/build/index.js.map +1 -1
- package/build/plugins/icons/AssetContents.d.ts +3 -3
- package/build/plugins/icons/AssetContents.js +1 -10
- package/build/plugins/icons/AssetContents.js.map +1 -1
- package/build/plugins/icons/withAndroidIcons.d.ts +7 -5
- package/build/plugins/icons/withAndroidIcons.js +52 -71
- package/build/plugins/icons/withAndroidIcons.js.map +1 -1
- package/build/plugins/icons/withAndroidManifestIcons.js +0 -10
- package/build/plugins/icons/withAndroidManifestIcons.js.map +1 -1
- package/build/plugins/icons/withIosIcons.js +24 -48
- package/build/plugins/icons/withIosIcons.js.map +1 -1
- package/build/plugins/unversioned/createLegacyPlugin.js +0 -11
- package/build/plugins/unversioned/createLegacyPlugin.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/expo-ads-admob.js +0 -11
- package/build/plugins/unversioned/expo-ads-admob/expo-ads-admob.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/withAndroidAdMob.js +0 -14
- package/build/plugins/unversioned/expo-ads-admob/withAndroidAdMob.js.map +1 -1
- package/build/plugins/unversioned/expo-ads-admob/withIosAdMob.js +5 -14
- package/build/plugins/unversioned/expo-ads-admob/withIosAdMob.js.map +1 -1
- package/build/plugins/unversioned/expo-apple-authentication.js +0 -11
- package/build/plugins/unversioned/expo-apple-authentication.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/expo-branch.js +4 -13
- package/build/plugins/unversioned/expo-branch/expo-branch.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/withAndroidBranch.js +0 -12
- package/build/plugins/unversioned/expo-branch/withAndroidBranch.js.map +1 -1
- package/build/plugins/unversioned/expo-branch/withIosBranch.js +2 -11
- package/build/plugins/unversioned/expo-branch/withIosBranch.js.map +1 -1
- package/build/plugins/unversioned/expo-contacts.js +2 -13
- package/build/plugins/unversioned/expo-contacts.js.map +1 -1
- package/build/plugins/unversioned/expo-document-picker.js +2 -12
- package/build/plugins/unversioned/expo-document-picker.js.map +1 -1
- package/build/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.js +2 -9
- package/build/plugins/unversioned/expo-navigation-bar/expo-navigation-bar.js.map +1 -1
- package/build/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.js +0 -20
- package/build/plugins/unversioned/expo-navigation-bar/withAndroidNavigationBar.js.map +1 -1
- package/build/plugins/unversioned/expo-notifications/expo-notifications.js +4 -14
- package/build/plugins/unversioned/expo-notifications/expo-notifications.js.map +1 -1
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.d.ts +1 -1
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.js +1 -44
- package/build/plugins/unversioned/expo-notifications/withAndroidNotifications.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.d.ts +20 -20
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.js +14 -33
- package/build/plugins/unversioned/expo-splash-screen/InterfaceBuilder.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/expo-splash-screen.js +0 -11
- package/build/plugins/unversioned/expo-splash-screen/expo-splash-screen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.d.ts +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.js +2 -11
- package/build/plugins/unversioned/expo-splash-screen/getAndroidSplashConfig.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.d.ts +1 -2
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.js +0 -26
- package/build/plugins/unversioned/expo-splash-screen/getIosSplashConfig.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashDrawables.js +4 -9
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashDrawables.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashImages.js +9 -36
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashImages.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashLegacyMainActivity.js +13 -34
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashLegacyMainActivity.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.js +4 -46
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.js +0 -13
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStrings.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStyles.js +2 -23
- package/build/plugins/unversioned/expo-splash-screen/withAndroidSplashStyles.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js +16 -54
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashInfoPlist.js +6 -22
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashInfoPlist.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js +7 -35
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.js +9 -33
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.js +1 -18
- package/build/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.js.map +1 -1
- package/build/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.js +2 -15
- package/build/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/expo-system-ui.js +0 -17
- package/build/plugins/unversioned/expo-system-ui/expo-system-ui.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.js +0 -14
- package/build/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.js +2 -9
- package/build/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.js +2 -27
- package/build/plugins/unversioned/expo-system-ui/withIosRootViewBackgroundColor.js.map +1 -1
- package/build/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.js +2 -14
- package/build/plugins/unversioned/expo-system-ui/withIosUserInterfaceStyle.js.map +1 -1
- package/build/plugins/unversioned/expo-updates.js +1 -8
- package/build/plugins/unversioned/expo-updates.js.map +1 -1
- package/build/plugins/unversioned/react-native-maps.js +4 -19
- package/build/plugins/unversioned/react-native-maps.js.map +1 -1
- package/build/plugins/withDefaultPlugins.d.ts +2 -2
- package/build/plugins/withDefaultPlugins.js +41 -94
- package/build/plugins/withDefaultPlugins.js.map +1 -1
- package/package.json +6 -6
- package/build/plugins/unversioned/expo-facebook/expo-facebook.d.ts +0 -2
- package/build/plugins/unversioned/expo-facebook/expo-facebook.js +0 -57
- package/build/plugins/unversioned/expo-facebook/expo-facebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.d.ts +0 -13
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.js +0 -235
- package/build/plugins/unversioned/expo-facebook/withAndroidFacebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.d.ts +0 -26
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.js +0 -233
- package/build/plugins/unversioned/expo-facebook/withIosFacebook.js.map +0 -1
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.d.ts +0 -9
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.js +0 -69
- package/build/plugins/unversioned/expo-facebook/withSKAdNetworkIdentifiers.js.map +0 -1
|
@@ -6,71 +6,53 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.STORYBOARD_FILE_PATH = void 0;
|
|
7
7
|
exports.getTemplateAsync = getTemplateAsync;
|
|
8
8
|
exports.withIosSplashScreenStoryboardBaseMod = exports.withIosSplashScreenStoryboard = void 0;
|
|
9
|
-
|
|
10
9
|
function _configPlugins() {
|
|
11
10
|
const data = require("@expo/config-plugins");
|
|
12
|
-
|
|
13
11
|
_configPlugins = function () {
|
|
14
12
|
return data;
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
return data;
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
function fs() {
|
|
21
17
|
const data = _interopRequireWildcard(require("fs"));
|
|
22
|
-
|
|
23
18
|
fs = function () {
|
|
24
19
|
return data;
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
return data;
|
|
28
22
|
}
|
|
29
|
-
|
|
30
23
|
function path() {
|
|
31
24
|
const data = _interopRequireWildcard(require("path"));
|
|
32
|
-
|
|
33
25
|
path = function () {
|
|
34
26
|
return data;
|
|
35
27
|
};
|
|
36
|
-
|
|
37
28
|
return data;
|
|
38
29
|
}
|
|
39
|
-
|
|
40
30
|
function _xml2js() {
|
|
41
31
|
const data = require("xml2js");
|
|
42
|
-
|
|
43
32
|
_xml2js = function () {
|
|
44
33
|
return data;
|
|
45
34
|
};
|
|
46
|
-
|
|
47
35
|
return data;
|
|
48
36
|
}
|
|
49
|
-
|
|
50
37
|
function _InterfaceBuilder() {
|
|
51
38
|
const data = require("./InterfaceBuilder");
|
|
52
|
-
|
|
53
39
|
_InterfaceBuilder = function () {
|
|
54
40
|
return data;
|
|
55
41
|
};
|
|
56
|
-
|
|
57
42
|
return data;
|
|
58
43
|
}
|
|
59
|
-
|
|
60
44
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
61
|
-
|
|
62
45
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
63
|
-
|
|
64
46
|
const STORYBOARD_FILE_PATH = './SplashScreen.storyboard';
|
|
65
47
|
exports.STORYBOARD_FILE_PATH = STORYBOARD_FILE_PATH;
|
|
66
48
|
const STORYBOARD_MOD_NAME = 'splashScreenStoryboard';
|
|
49
|
+
|
|
67
50
|
/**
|
|
68
51
|
* Provides the SplashScreen `.storyboard` xml data for modification.
|
|
69
52
|
*
|
|
70
53
|
* @param config
|
|
71
54
|
* @param action
|
|
72
55
|
*/
|
|
73
|
-
|
|
74
56
|
const withIosSplashScreenStoryboard = (config, action) => {
|
|
75
57
|
return (0, _configPlugins().withMod)(config, {
|
|
76
58
|
platform: 'ios',
|
|
@@ -78,11 +60,9 @@ const withIosSplashScreenStoryboard = (config, action) => {
|
|
|
78
60
|
action
|
|
79
61
|
});
|
|
80
62
|
};
|
|
81
|
-
/** Append a custom rule to supply SplashScreen `.storyboard` xml data to mods on `mods.ios.splashScreenStoryboard` */
|
|
82
|
-
|
|
83
63
|
|
|
64
|
+
/** Append a custom rule to supply SplashScreen `.storyboard` xml data to mods on `mods.ios.splashScreenStoryboard` */
|
|
84
65
|
exports.withIosSplashScreenStoryboard = withIosSplashScreenStoryboard;
|
|
85
|
-
|
|
86
66
|
const withIosSplashScreenStoryboardBaseMod = config => {
|
|
87
67
|
return _configPlugins().BaseMods.withGeneratedBaseMods(config, {
|
|
88
68
|
platform: 'ios',
|
|
@@ -92,17 +72,18 @@ const withIosSplashScreenStoryboardBaseMod = config => {
|
|
|
92
72
|
// Append a custom rule to supply .storyboard xml data to mods on `mods.ios.splashScreenStoryboard`
|
|
93
73
|
[STORYBOARD_MOD_NAME]: _configPlugins().BaseMods.provider({
|
|
94
74
|
isIntrospective: true,
|
|
95
|
-
|
|
96
75
|
async getFilePath({
|
|
97
76
|
modRequest
|
|
98
77
|
}) {
|
|
99
78
|
//: [root]/myapp/ios/MyApp/SplashScreen.storyboard
|
|
100
|
-
return path().join(
|
|
101
|
-
|
|
102
|
-
modRequest.
|
|
79
|
+
return path().join(
|
|
80
|
+
//: myapp/ios
|
|
81
|
+
modRequest.platformProjectRoot,
|
|
82
|
+
// ./MyApp
|
|
83
|
+
modRequest.projectName,
|
|
84
|
+
// ./SplashScreen.storyboard
|
|
103
85
|
STORYBOARD_FILE_PATH);
|
|
104
86
|
},
|
|
105
|
-
|
|
106
87
|
async read(filePath) {
|
|
107
88
|
try {
|
|
108
89
|
const contents = await fs().promises.readFile(filePath, 'utf8');
|
|
@@ -112,7 +93,6 @@ const withIosSplashScreenStoryboardBaseMod = config => {
|
|
|
112
93
|
return getTemplateAsync();
|
|
113
94
|
}
|
|
114
95
|
},
|
|
115
|
-
|
|
116
96
|
async write(filePath, {
|
|
117
97
|
modResults,
|
|
118
98
|
modRequest: {
|
|
@@ -122,19 +102,15 @@ const withIosSplashScreenStoryboardBaseMod = config => {
|
|
|
122
102
|
if (introspect) {
|
|
123
103
|
return;
|
|
124
104
|
}
|
|
125
|
-
|
|
126
105
|
await fs().promises.writeFile(filePath, (0, _InterfaceBuilder().toString)(modResults));
|
|
127
106
|
}
|
|
128
|
-
|
|
129
107
|
})
|
|
130
108
|
}
|
|
131
109
|
});
|
|
132
110
|
};
|
|
133
|
-
/** Get a template splash screen storyboard file. */
|
|
134
|
-
|
|
135
111
|
|
|
112
|
+
/** Get a template splash screen storyboard file. */
|
|
136
113
|
exports.withIosSplashScreenStoryboardBaseMod = withIosSplashScreenStoryboardBaseMod;
|
|
137
|
-
|
|
138
114
|
async function getTemplateAsync() {
|
|
139
115
|
const contents = `<?xml version="1.0" encoding="UTF-8"?>
|
|
140
116
|
<document
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIosSplashScreenStoryboard.js","names":["STORYBOARD_FILE_PATH","STORYBOARD_MOD_NAME","withIosSplashScreenStoryboard","config","action","withMod","platform","mod","withIosSplashScreenStoryboardBaseMod","BaseMods","withGeneratedBaseMods","saveToInternal","skipEmptyMod","providers","provider","isIntrospective","getFilePath","modRequest","path","join","platformProjectRoot","projectName","read","filePath","contents","fs","promises","readFile","xml","Parser","parseStringPromise","getTemplateAsync","write","modResults","introspect","writeFile","toString"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.ts"],"sourcesContent":["import { BaseMods, ConfigPlugin, Mod, withMod } from '@expo/config-plugins';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { Parser } from 'xml2js';\n\nimport { IBSplashScreenDocument, toString } from './InterfaceBuilder';\n\nexport const STORYBOARD_FILE_PATH = './SplashScreen.storyboard';\n\nconst STORYBOARD_MOD_NAME = 'splashScreenStoryboard';\n\n/**\n * Provides the SplashScreen `.storyboard` xml data for modification.\n *\n * @param config\n * @param action\n */\nexport const withIosSplashScreenStoryboard: ConfigPlugin<Mod<IBSplashScreenDocument>> = (\n config,\n action\n) => {\n return withMod(config, {\n platform: 'ios',\n mod: STORYBOARD_MOD_NAME,\n action,\n });\n};\n\n/** Append a custom rule to supply SplashScreen `.storyboard` xml data to mods on `mods.ios.splashScreenStoryboard` */\nexport const withIosSplashScreenStoryboardBaseMod: ConfigPlugin = (config) => {\n return BaseMods.withGeneratedBaseMods(config, {\n platform: 'ios',\n saveToInternal: true,\n skipEmptyMod: false,\n providers: {\n // Append a custom rule to supply .storyboard xml data to mods on `mods.ios.splashScreenStoryboard`\n [STORYBOARD_MOD_NAME]: BaseMods.provider<IBSplashScreenDocument>({\n isIntrospective: true,\n async getFilePath({ modRequest }) {\n //: [root]/myapp/ios/MyApp/SplashScreen.storyboard\n return path.join(\n //: myapp/ios\n modRequest.platformProjectRoot,\n // ./MyApp\n modRequest.projectName!,\n // ./SplashScreen.storyboard\n STORYBOARD_FILE_PATH\n );\n },\n async read(filePath) {\n try {\n const contents = await fs.promises.readFile(filePath, 'utf8');\n const xml = await new Parser().parseStringPromise(contents);\n return xml;\n } catch {\n return getTemplateAsync();\n }\n },\n async write(filePath, { modResults, modRequest: { introspect } }) {\n if (introspect) {\n return;\n }\n await fs.promises.writeFile(filePath, toString(modResults));\n },\n }),\n },\n });\n};\n\n/** Get a template splash screen storyboard file. */\nexport async function getTemplateAsync(): Promise<IBSplashScreenDocument> {\n const contents = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <document\n type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\"\n version=\"3.0\"\n toolsVersion=\"16096\"\n targetRuntime=\"iOS.CocoaTouch\"\n propertyAccessControl=\"none\"\n useAutolayout=\"YES\"\n launchScreen=\"YES\"\n useTraitCollections=\"YES\"\n useSafeAreas=\"YES\"\n colorMatched=\"YES\"\n initialViewController=\"EXPO-VIEWCONTROLLER-1\"\n >\n <dependencies>\n <deployment identifier=\"iOS\"/>\n <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"16087\"/>\n <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n </dependencies>\n <scenes>\n <scene sceneID=\"EXPO-SCENE-1\">\n <objects>\n <viewController\n storyboardIdentifier=\"SplashScreenViewController\"\n id=\"EXPO-VIEWCONTROLLER-1\"\n sceneMemberID=\"viewController\"\n >\n <view\n key=\"view\"\n userInteractionEnabled=\"NO\"\n contentMode=\"scaleToFill\"\n insetsLayoutMarginsFromSafeArea=\"NO\"\n id=\"EXPO-ContainerView\"\n userLabel=\"ContainerView\"\n >\n <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"414\" height=\"736\"/>\n <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n <subviews>\n <imageView\n userInteractionEnabled=\"NO\"\n contentMode=\"scaleAspectFill\"\n horizontalHuggingPriority=\"251\"\n verticalHuggingPriority=\"251\"\n insetsLayoutMarginsFromSafeArea=\"NO\"\n image=\"SplashScreenBackground\"\n translatesAutoresizingMaskIntoConstraints=\"NO\"\n id=\"EXPO-SplashScreenBackground\"\n userLabel=\"SplashScreenBackground\"\n >\n <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"414\" height=\"736\"/>\n </imageView>\n </subviews>\n <color key=\"backgroundColor\" systemColor=\"systemBackgroundColor\"/>\n <constraints>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"top\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"top\" id=\"1gX-mQ-vu6\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"leading\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"leading\" id=\"6tX-OG-Sck\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"trailing\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"trailing\" id=\"ABX-8g-7v4\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"bottom\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"bottom\" id=\"jkI-2V-eW5\"/>\n </constraints>\n <viewLayoutGuide key=\"safeArea\" id=\"EXPO-SafeArea\"/>\n </view>\n </viewController>\n <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"EXPO-PLACEHOLDER-1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n </objects>\n </scene>\n </scenes>\n <resources>\n <image name=\"SplashScreenBackground\" width=\"1\" height=\"1\"/>\n </resources>\n </document>`;\n return await new Parser().parseStringPromise(contents);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIosSplashScreenStoryboard.js","names":["STORYBOARD_FILE_PATH","STORYBOARD_MOD_NAME","withIosSplashScreenStoryboard","config","action","withMod","platform","mod","withIosSplashScreenStoryboardBaseMod","BaseMods","withGeneratedBaseMods","saveToInternal","skipEmptyMod","providers","provider","isIntrospective","getFilePath","modRequest","path","join","platformProjectRoot","projectName","read","filePath","contents","fs","promises","readFile","xml","Parser","parseStringPromise","getTemplateAsync","write","modResults","introspect","writeFile","toString"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withIosSplashScreenStoryboard.ts"],"sourcesContent":["import { BaseMods, ConfigPlugin, Mod, withMod } from '@expo/config-plugins';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { Parser } from 'xml2js';\n\nimport { IBSplashScreenDocument, toString } from './InterfaceBuilder';\n\nexport const STORYBOARD_FILE_PATH = './SplashScreen.storyboard';\n\nconst STORYBOARD_MOD_NAME = 'splashScreenStoryboard';\n\n/**\n * Provides the SplashScreen `.storyboard` xml data for modification.\n *\n * @param config\n * @param action\n */\nexport const withIosSplashScreenStoryboard: ConfigPlugin<Mod<IBSplashScreenDocument>> = (\n config,\n action\n) => {\n return withMod(config, {\n platform: 'ios',\n mod: STORYBOARD_MOD_NAME,\n action,\n });\n};\n\n/** Append a custom rule to supply SplashScreen `.storyboard` xml data to mods on `mods.ios.splashScreenStoryboard` */\nexport const withIosSplashScreenStoryboardBaseMod: ConfigPlugin = (config) => {\n return BaseMods.withGeneratedBaseMods(config, {\n platform: 'ios',\n saveToInternal: true,\n skipEmptyMod: false,\n providers: {\n // Append a custom rule to supply .storyboard xml data to mods on `mods.ios.splashScreenStoryboard`\n [STORYBOARD_MOD_NAME]: BaseMods.provider<IBSplashScreenDocument>({\n isIntrospective: true,\n async getFilePath({ modRequest }) {\n //: [root]/myapp/ios/MyApp/SplashScreen.storyboard\n return path.join(\n //: myapp/ios\n modRequest.platformProjectRoot,\n // ./MyApp\n modRequest.projectName!,\n // ./SplashScreen.storyboard\n STORYBOARD_FILE_PATH\n );\n },\n async read(filePath) {\n try {\n const contents = await fs.promises.readFile(filePath, 'utf8');\n const xml = await new Parser().parseStringPromise(contents);\n return xml;\n } catch {\n return getTemplateAsync();\n }\n },\n async write(filePath, { modResults, modRequest: { introspect } }) {\n if (introspect) {\n return;\n }\n await fs.promises.writeFile(filePath, toString(modResults));\n },\n }),\n },\n });\n};\n\n/** Get a template splash screen storyboard file. */\nexport async function getTemplateAsync(): Promise<IBSplashScreenDocument> {\n const contents = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <document\n type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\"\n version=\"3.0\"\n toolsVersion=\"16096\"\n targetRuntime=\"iOS.CocoaTouch\"\n propertyAccessControl=\"none\"\n useAutolayout=\"YES\"\n launchScreen=\"YES\"\n useTraitCollections=\"YES\"\n useSafeAreas=\"YES\"\n colorMatched=\"YES\"\n initialViewController=\"EXPO-VIEWCONTROLLER-1\"\n >\n <dependencies>\n <deployment identifier=\"iOS\"/>\n <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"16087\"/>\n <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n </dependencies>\n <scenes>\n <scene sceneID=\"EXPO-SCENE-1\">\n <objects>\n <viewController\n storyboardIdentifier=\"SplashScreenViewController\"\n id=\"EXPO-VIEWCONTROLLER-1\"\n sceneMemberID=\"viewController\"\n >\n <view\n key=\"view\"\n userInteractionEnabled=\"NO\"\n contentMode=\"scaleToFill\"\n insetsLayoutMarginsFromSafeArea=\"NO\"\n id=\"EXPO-ContainerView\"\n userLabel=\"ContainerView\"\n >\n <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"414\" height=\"736\"/>\n <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n <subviews>\n <imageView\n userInteractionEnabled=\"NO\"\n contentMode=\"scaleAspectFill\"\n horizontalHuggingPriority=\"251\"\n verticalHuggingPriority=\"251\"\n insetsLayoutMarginsFromSafeArea=\"NO\"\n image=\"SplashScreenBackground\"\n translatesAutoresizingMaskIntoConstraints=\"NO\"\n id=\"EXPO-SplashScreenBackground\"\n userLabel=\"SplashScreenBackground\"\n >\n <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"414\" height=\"736\"/>\n </imageView>\n </subviews>\n <color key=\"backgroundColor\" systemColor=\"systemBackgroundColor\"/>\n <constraints>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"top\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"top\" id=\"1gX-mQ-vu6\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"leading\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"leading\" id=\"6tX-OG-Sck\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"trailing\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"trailing\" id=\"ABX-8g-7v4\"/>\n <constraint firstItem=\"EXPO-SplashScreenBackground\" firstAttribute=\"bottom\" secondItem=\"EXPO-ContainerView\" secondAttribute=\"bottom\" id=\"jkI-2V-eW5\"/>\n </constraints>\n <viewLayoutGuide key=\"safeArea\" id=\"EXPO-SafeArea\"/>\n </view>\n </viewController>\n <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"EXPO-PLACEHOLDER-1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n </objects>\n </scene>\n </scenes>\n <resources>\n <image name=\"SplashScreenBackground\" width=\"1\" height=\"1\"/>\n </resources>\n </document>`;\n return await new Parser().parseStringPromise(contents);\n}\n"],"mappings":";;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAsE;AAAA;AAE/D,MAAMA,oBAAoB,GAAG,2BAA2B;AAAC;AAEhE,MAAMC,mBAAmB,GAAG,wBAAwB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,6BAAwE,GAAG,CACtFC,MAAM,EACNC,MAAM,KACH;EACH,OAAO,IAAAC,wBAAO,EAACF,MAAM,EAAE;IACrBG,QAAQ,EAAE,KAAK;IACfC,GAAG,EAAEN,mBAAmB;IACxBG;EACF,CAAC,CAAC;AACJ,CAAC;;AAED;AAAA;AACO,MAAMI,oCAAkD,GAAIL,MAAM,IAAK;EAC5E,OAAOM,yBAAQ,CAACC,qBAAqB,CAACP,MAAM,EAAE;IAC5CG,QAAQ,EAAE,KAAK;IACfK,cAAc,EAAE,IAAI;IACpBC,YAAY,EAAE,KAAK;IACnBC,SAAS,EAAE;MACT;MACA,CAACZ,mBAAmB,GAAGQ,yBAAQ,CAACK,QAAQ,CAAyB;QAC/DC,eAAe,EAAE,IAAI;QACrB,MAAMC,WAAW,CAAC;UAAEC;QAAW,CAAC,EAAE;UAChC;UACA,OAAOC,IAAI,GAACC,IAAI;UACd;UACAF,UAAU,CAACG,mBAAmB;UAC9B;UACAH,UAAU,CAACI,WAAW;UACtB;UACArB,oBAAoB,CACrB;QACH,CAAC;QACD,MAAMsB,IAAI,CAACC,QAAQ,EAAE;UACnB,IAAI;YACF,MAAMC,QAAQ,GAAG,MAAMC,EAAE,GAACC,QAAQ,CAACC,QAAQ,CAACJ,QAAQ,EAAE,MAAM,CAAC;YAC7D,MAAMK,GAAG,GAAG,MAAM,KAAIC,gBAAM,GAAE,CAACC,kBAAkB,CAACN,QAAQ,CAAC;YAC3D,OAAOI,GAAG;UACZ,CAAC,CAAC,MAAM;YACN,OAAOG,gBAAgB,EAAE;UAC3B;QACF,CAAC;QACD,MAAMC,KAAK,CAACT,QAAQ,EAAE;UAAEU,UAAU;UAAEhB,UAAU,EAAE;YAAEiB;UAAW;QAAE,CAAC,EAAE;UAChE,IAAIA,UAAU,EAAE;YACd;UACF;UACA,MAAMT,EAAE,GAACC,QAAQ,CAACS,SAAS,CAACZ,QAAQ,EAAE,IAAAa,4BAAQ,EAACH,UAAU,CAAC,CAAC;QAC7D;MACF,CAAC;IACH;EACF,CAAC,CAAC;AACJ,CAAC;;AAED;AAAA;AACO,eAAeF,gBAAgB,GAAoC;EACxE,MAAMP,QAAQ,GAAI;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;EACd,OAAO,MAAM,KAAIK,gBAAM,GAAE,CAACC,kBAAkB,CAACN,QAAQ,CAAC;AACxD"}
|
|
@@ -5,41 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.setSplashStoryboardAsync = setSplashStoryboardAsync;
|
|
7
7
|
exports.withIosSplashXcodeProject = void 0;
|
|
8
|
-
|
|
9
8
|
function _configPlugins() {
|
|
10
9
|
const data = require("@expo/config-plugins");
|
|
11
|
-
|
|
12
10
|
_configPlugins = function () {
|
|
13
11
|
return data;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return data;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
function _path() {
|
|
20
16
|
const data = _interopRequireDefault(require("path"));
|
|
21
|
-
|
|
22
17
|
_path = function () {
|
|
23
18
|
return data;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
return data;
|
|
27
21
|
}
|
|
28
|
-
|
|
29
22
|
function _withIosSplashScreenStoryboard() {
|
|
30
23
|
const data = require("./withIosSplashScreenStoryboard");
|
|
31
|
-
|
|
32
24
|
_withIosSplashScreenStoryboard = function () {
|
|
33
25
|
return data;
|
|
34
26
|
};
|
|
35
|
-
|
|
36
27
|
return data;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
40
|
-
|
|
41
30
|
const debug = require('debug')('expo:prebuild-config:expo-splash-screen:ios:xcodeproj');
|
|
42
|
-
|
|
43
31
|
const withIosSplashXcodeProject = config => {
|
|
44
32
|
return (0, _configPlugins().withXcodeProject)(config, async config => {
|
|
45
33
|
config.modResults = await setSplashStoryboardAsync({
|
|
@@ -49,14 +37,12 @@ const withIosSplashXcodeProject = config => {
|
|
|
49
37
|
return config;
|
|
50
38
|
});
|
|
51
39
|
};
|
|
40
|
+
|
|
52
41
|
/**
|
|
53
42
|
* Modifies `.pbxproj` by:
|
|
54
43
|
* - adding reference for `.storyboard` file
|
|
55
44
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
45
|
exports.withIosSplashXcodeProject = withIosSplashXcodeProject;
|
|
59
|
-
|
|
60
46
|
async function setSplashStoryboardAsync({
|
|
61
47
|
projectName,
|
|
62
48
|
project
|
|
@@ -64,17 +50,14 @@ async function setSplashStoryboardAsync({
|
|
|
64
50
|
// Check if `${projectName}/SplashScreen.storyboard` already exists
|
|
65
51
|
// Path relative to `ios` directory
|
|
66
52
|
const storyboardFilePath = _path().default.join(projectName, _withIosSplashScreenStoryboard().STORYBOARD_FILE_PATH);
|
|
67
|
-
|
|
68
53
|
if (!project.hasFile(storyboardFilePath)) {
|
|
69
54
|
debug(`Adding ${storyboardFilePath} to Xcode project`);
|
|
70
|
-
|
|
71
55
|
_configPlugins().IOSConfig.XcodeUtils.addResourceFileToGroup({
|
|
72
56
|
filepath: storyboardFilePath,
|
|
73
57
|
groupName: projectName,
|
|
74
58
|
project
|
|
75
59
|
});
|
|
76
60
|
}
|
|
77
|
-
|
|
78
61
|
return project;
|
|
79
62
|
}
|
|
80
63
|
//# sourceMappingURL=withIosSplashXcodeProject.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIosSplashXcodeProject.js","names":["debug","require","withIosSplashXcodeProject","config","withXcodeProject","modResults","setSplashStoryboardAsync","projectName","modRequest","project","storyboardFilePath","path","join","STORYBOARD_FILE_PATH","hasFile","IOSConfig","XcodeUtils","addResourceFileToGroup","filepath","groupName"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.ts"],"sourcesContent":["import { ConfigPlugin, IOSConfig, withXcodeProject } from '@expo/config-plugins';\nimport path from 'path';\nimport { XcodeProject } from 'xcode';\n\nimport { STORYBOARD_FILE_PATH } from './withIosSplashScreenStoryboard';\n\nconst debug = require('debug')(\n 'expo:prebuild-config:expo-splash-screen:ios:xcodeproj'\n) as typeof console.log;\n\nexport const withIosSplashXcodeProject: ConfigPlugin = (config) => {\n return withXcodeProject(config, async (config) => {\n config.modResults = await setSplashStoryboardAsync({\n projectName: config.modRequest.projectName!,\n project: config.modResults,\n });\n return config;\n });\n};\n\n/**\n * Modifies `.pbxproj` by:\n * - adding reference for `.storyboard` file\n */\nexport async function setSplashStoryboardAsync({\n projectName,\n project,\n}: {\n projectName: string;\n project: XcodeProject;\n}): Promise<XcodeProject> {\n // Check if `${projectName}/SplashScreen.storyboard` already exists\n // Path relative to `ios` directory\n const storyboardFilePath = path.join(projectName, STORYBOARD_FILE_PATH);\n if (!project.hasFile(storyboardFilePath)) {\n debug(`Adding ${storyboardFilePath} to Xcode project`);\n IOSConfig.XcodeUtils.addResourceFileToGroup({\n filepath: storyboardFilePath,\n groupName: projectName,\n project,\n });\n }\n\n return project;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIosSplashXcodeProject.js","names":["debug","require","withIosSplashXcodeProject","config","withXcodeProject","modResults","setSplashStoryboardAsync","projectName","modRequest","project","storyboardFilePath","path","join","STORYBOARD_FILE_PATH","hasFile","IOSConfig","XcodeUtils","addResourceFileToGroup","filepath","groupName"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/withIosSplashXcodeProject.ts"],"sourcesContent":["import { ConfigPlugin, IOSConfig, withXcodeProject } from '@expo/config-plugins';\nimport path from 'path';\nimport { XcodeProject } from 'xcode';\n\nimport { STORYBOARD_FILE_PATH } from './withIosSplashScreenStoryboard';\n\nconst debug = require('debug')(\n 'expo:prebuild-config:expo-splash-screen:ios:xcodeproj'\n) as typeof console.log;\n\nexport const withIosSplashXcodeProject: ConfigPlugin = (config) => {\n return withXcodeProject(config, async (config) => {\n config.modResults = await setSplashStoryboardAsync({\n projectName: config.modRequest.projectName!,\n project: config.modResults,\n });\n return config;\n });\n};\n\n/**\n * Modifies `.pbxproj` by:\n * - adding reference for `.storyboard` file\n */\nexport async function setSplashStoryboardAsync({\n projectName,\n project,\n}: {\n projectName: string;\n project: XcodeProject;\n}): Promise<XcodeProject> {\n // Check if `${projectName}/SplashScreen.storyboard` already exists\n // Path relative to `ios` directory\n const storyboardFilePath = path.join(projectName, STORYBOARD_FILE_PATH);\n if (!project.hasFile(storyboardFilePath)) {\n debug(`Adding ${storyboardFilePath} to Xcode project`);\n IOSConfig.XcodeUtils.addResourceFileToGroup({\n filepath: storyboardFilePath,\n groupName: projectName,\n project,\n });\n }\n\n return project;\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAuE;AAEvE,MAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC,CAC5B,uDAAuD,CAClC;AAEhB,MAAMC,yBAAuC,GAAIC,MAAM,IAAK;EACjE,OAAO,IAAAC,iCAAgB,EAACD,MAAM,EAAE,MAAOA,MAAM,IAAK;IAChDA,MAAM,CAACE,UAAU,GAAG,MAAMC,wBAAwB,CAAC;MACjDC,WAAW,EAAEJ,MAAM,CAACK,UAAU,CAACD,WAAY;MAC3CE,OAAO,EAAEN,MAAM,CAACE;IAClB,CAAC,CAAC;IACF,OAAOF,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AAHA;AAIO,eAAeG,wBAAwB,CAAC;EAC7CC,WAAW;EACXE;AAIF,CAAC,EAAyB;EACxB;EACA;EACA,MAAMC,kBAAkB,GAAGC,eAAI,CAACC,IAAI,CAACL,WAAW,EAAEM,qDAAoB,CAAC;EACvE,IAAI,CAACJ,OAAO,CAACK,OAAO,CAACJ,kBAAkB,CAAC,EAAE;IACxCV,KAAK,CAAE,UAASU,kBAAmB,mBAAkB,CAAC;IACtDK,0BAAS,CAACC,UAAU,CAACC,sBAAsB,CAAC;MAC1CC,QAAQ,EAAER,kBAAkB;MAC5BS,SAAS,EAAEZ,WAAW;MACtBE;IACF,CAAC,CAAC;EACJ;EAEA,OAAOA,OAAO;AAChB"}
|
|
@@ -5,41 +5,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.applySplashScreenStoryboard = applySplashScreenStoryboard;
|
|
7
7
|
exports.withIosSplashScreenImage = void 0;
|
|
8
|
-
|
|
9
8
|
function _InterfaceBuilder() {
|
|
10
9
|
const data = require("./InterfaceBuilder");
|
|
11
|
-
|
|
12
10
|
_InterfaceBuilder = function () {
|
|
13
11
|
return data;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return data;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
function _withIosSplashScreenStoryboard() {
|
|
20
16
|
const data = require("./withIosSplashScreenStoryboard");
|
|
21
|
-
|
|
22
17
|
_withIosSplashScreenStoryboard = function () {
|
|
23
18
|
return data;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
return data;
|
|
27
21
|
}
|
|
28
|
-
|
|
29
22
|
const withIosSplashScreenImage = (config, splash) => {
|
|
30
23
|
return (0, _withIosSplashScreenStoryboard().withIosSplashScreenStoryboard)(config, config => {
|
|
31
24
|
config.modResults = applySplashScreenStoryboard(config.modResults, splash);
|
|
32
25
|
return config;
|
|
33
26
|
});
|
|
34
27
|
};
|
|
35
|
-
|
|
36
28
|
exports.withIosSplashScreenImage = withIosSplashScreenImage;
|
|
37
|
-
|
|
38
29
|
function applySplashScreenStoryboard(obj, splash) {
|
|
39
30
|
const resizeMode = splash === null || splash === void 0 ? void 0 : splash.resizeMode;
|
|
40
31
|
const splashScreenImagePresent = Boolean(splash === null || splash === void 0 ? void 0 : splash.image);
|
|
41
|
-
const imageName = 'SplashScreen';
|
|
42
|
-
|
|
32
|
+
const imageName = 'SplashScreen';
|
|
33
|
+
// Only get the resize mode when the image is present.
|
|
43
34
|
if (splashScreenImagePresent) {
|
|
44
35
|
const contentMode = getImageContentMode(resizeMode || 'contain');
|
|
45
36
|
return (0, _InterfaceBuilder().applyImageToSplashScreenXML)(obj, {
|
|
@@ -47,20 +38,16 @@ function applySplashScreenStoryboard(obj, splash) {
|
|
|
47
38
|
imageName
|
|
48
39
|
});
|
|
49
40
|
}
|
|
50
|
-
|
|
51
41
|
return (0, _InterfaceBuilder().removeImageFromSplashScreen)(obj, {
|
|
52
42
|
imageName
|
|
53
43
|
});
|
|
54
44
|
}
|
|
55
|
-
|
|
56
45
|
function getImageContentMode(resizeMode) {
|
|
57
46
|
switch (resizeMode) {
|
|
58
47
|
case 'contain':
|
|
59
48
|
return 'scaleAspectFit';
|
|
60
|
-
|
|
61
49
|
case 'cover':
|
|
62
50
|
return 'scaleAspectFill';
|
|
63
|
-
|
|
64
51
|
default:
|
|
65
52
|
throw new Error(`{ resizeMode: "${resizeMode}" } is not supported for iOS platform.`);
|
|
66
53
|
}
|
package/build/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wtihIosSplashScreenStoryboardImage.js","names":["withIosSplashScreenImage","config","splash","withIosSplashScreenStoryboard","modResults","applySplashScreenStoryboard","obj","resizeMode","splashScreenImagePresent","Boolean","image","imageName","contentMode","getImageContentMode","applyImageToSplashScreenXML","removeImageFromSplashScreen","Error"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.ts"],"sourcesContent":["import { ConfigPlugin } from '@expo/config-plugins';\n\nimport {\n applyImageToSplashScreenXML,\n IBSplashScreenDocument,\n ImageContentMode,\n removeImageFromSplashScreen,\n} from './InterfaceBuilder';\nimport { IOSSplashConfig } from './getIosSplashConfig';\nimport { withIosSplashScreenStoryboard } from './withIosSplashScreenStoryboard';\n\nexport const withIosSplashScreenImage: ConfigPlugin<IOSSplashConfig> = (config, splash) => {\n return withIosSplashScreenStoryboard(config, (config) => {\n config.modResults = applySplashScreenStoryboard(config.modResults, splash);\n return config;\n });\n};\n\nexport function applySplashScreenStoryboard(obj: IBSplashScreenDocument, splash: IOSSplashConfig) {\n const resizeMode = splash?.resizeMode;\n const splashScreenImagePresent = Boolean(splash?.image);\n const imageName = 'SplashScreen';\n // Only get the resize mode when the image is present.\n if (splashScreenImagePresent) {\n const contentMode = getImageContentMode(resizeMode || 'contain');\n return applyImageToSplashScreenXML(obj, {\n contentMode,\n imageName,\n });\n }\n\n return removeImageFromSplashScreen(obj, { imageName });\n}\n\nfunction getImageContentMode(resizeMode: string): ImageContentMode {\n switch (resizeMode) {\n case 'contain':\n return 'scaleAspectFit';\n case 'cover':\n return 'scaleAspectFill';\n default:\n throw new Error(`{ resizeMode: \"${resizeMode}\" } is not supported for iOS platform.`);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wtihIosSplashScreenStoryboardImage.js","names":["withIosSplashScreenImage","config","splash","withIosSplashScreenStoryboard","modResults","applySplashScreenStoryboard","obj","resizeMode","splashScreenImagePresent","Boolean","image","imageName","contentMode","getImageContentMode","applyImageToSplashScreenXML","removeImageFromSplashScreen","Error"],"sources":["../../../../src/plugins/unversioned/expo-splash-screen/wtihIosSplashScreenStoryboardImage.ts"],"sourcesContent":["import { ConfigPlugin } from '@expo/config-plugins';\n\nimport {\n applyImageToSplashScreenXML,\n IBSplashScreenDocument,\n ImageContentMode,\n removeImageFromSplashScreen,\n} from './InterfaceBuilder';\nimport { IOSSplashConfig } from './getIosSplashConfig';\nimport { withIosSplashScreenStoryboard } from './withIosSplashScreenStoryboard';\n\nexport const withIosSplashScreenImage: ConfigPlugin<IOSSplashConfig> = (config, splash) => {\n return withIosSplashScreenStoryboard(config, (config) => {\n config.modResults = applySplashScreenStoryboard(config.modResults, splash);\n return config;\n });\n};\n\nexport function applySplashScreenStoryboard(obj: IBSplashScreenDocument, splash: IOSSplashConfig) {\n const resizeMode = splash?.resizeMode;\n const splashScreenImagePresent = Boolean(splash?.image);\n const imageName = 'SplashScreen';\n // Only get the resize mode when the image is present.\n if (splashScreenImagePresent) {\n const contentMode = getImageContentMode(resizeMode || 'contain');\n return applyImageToSplashScreenXML(obj, {\n contentMode,\n imageName,\n });\n }\n\n return removeImageFromSplashScreen(obj, { imageName });\n}\n\nfunction getImageContentMode(resizeMode: string): ImageContentMode {\n switch (resizeMode) {\n case 'contain':\n return 'scaleAspectFit';\n case 'cover':\n return 'scaleAspectFill';\n default:\n throw new Error(`{ resizeMode: \"${resizeMode}\" } is not supported for iOS platform.`);\n }\n}\n"],"mappings":";;;;;;;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,wBAAuD,GAAG,CAACC,MAAM,EAAEC,MAAM,KAAK;EACzF,OAAO,IAAAC,8DAA6B,EAACF,MAAM,EAAGA,MAAM,IAAK;IACvDA,MAAM,CAACG,UAAU,GAAGC,2BAA2B,CAACJ,MAAM,CAACG,UAAU,EAAEF,MAAM,CAAC;IAC1E,OAAOD,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC;AAEK,SAASI,2BAA2B,CAACC,GAA2B,EAAEJ,MAAuB,EAAE;EAChG,MAAMK,UAAU,GAAGL,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEK,UAAU;EACrC,MAAMC,wBAAwB,GAAGC,OAAO,CAACP,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEQ,KAAK,CAAC;EACvD,MAAMC,SAAS,GAAG,cAAc;EAChC;EACA,IAAIH,wBAAwB,EAAE;IAC5B,MAAMI,WAAW,GAAGC,mBAAmB,CAACN,UAAU,IAAI,SAAS,CAAC;IAChE,OAAO,IAAAO,+CAA2B,EAACR,GAAG,EAAE;MACtCM,WAAW;MACXD;IACF,CAAC,CAAC;EACJ;EAEA,OAAO,IAAAI,+CAA2B,EAACT,GAAG,EAAE;IAAEK;EAAU,CAAC,CAAC;AACxD;AAEA,SAASE,mBAAmB,CAACN,UAAkB,EAAoB;EACjE,QAAQA,UAAU;IAChB,KAAK,SAAS;MACZ,OAAO,gBAAgB;IACzB,KAAK,OAAO;MACV,OAAO,iBAAiB;IAC1B;MACE,MAAM,IAAIS,KAAK,CAAE,kBAAiBT,UAAW,wCAAuC,CAAC;EAAC;AAE5F"}
|
|
@@ -4,61 +4,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
function _createLegacyPlugin() {
|
|
9
8
|
const data = require("../createLegacyPlugin");
|
|
10
|
-
|
|
11
9
|
_createLegacyPlugin = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
function _withAndroidRootViewBackgroundColor() {
|
|
19
15
|
const data = require("./withAndroidRootViewBackgroundColor");
|
|
20
|
-
|
|
21
16
|
_withAndroidRootViewBackgroundColor = function () {
|
|
22
17
|
return data;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
return data;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
21
|
function _withAndroidUserInterfaceStyle() {
|
|
29
22
|
const data = require("./withAndroidUserInterfaceStyle");
|
|
30
|
-
|
|
31
23
|
_withAndroidUserInterfaceStyle = function () {
|
|
32
24
|
return data;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
return data;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
function _withIosRootViewBackgroundColor() {
|
|
39
29
|
const data = require("./withIosRootViewBackgroundColor");
|
|
40
|
-
|
|
41
30
|
_withIosRootViewBackgroundColor = function () {
|
|
42
31
|
return data;
|
|
43
32
|
};
|
|
44
|
-
|
|
45
33
|
return data;
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
function _withIosUserInterfaceStyle() {
|
|
49
36
|
const data = require("./withIosUserInterfaceStyle");
|
|
50
|
-
|
|
51
37
|
_withIosUserInterfaceStyle = function () {
|
|
52
38
|
return data;
|
|
53
39
|
};
|
|
54
|
-
|
|
55
40
|
return data;
|
|
56
41
|
}
|
|
57
|
-
|
|
58
42
|
var _default = (0, _createLegacyPlugin().createLegacyPlugin)({
|
|
59
43
|
packageName: 'expo-system-ui',
|
|
60
44
|
fallback: [_withAndroidRootViewBackgroundColor().withAndroidRootViewBackgroundColor, _withIosRootViewBackgroundColor().withIosRootViewBackgroundColor, _withAndroidUserInterfaceStyle().withAndroidUserInterfaceStyle, _withIosUserInterfaceStyle().withIosUserInterfaceStyle]
|
|
61
45
|
});
|
|
62
|
-
|
|
63
46
|
exports.default = _default;
|
|
64
47
|
//# sourceMappingURL=expo-system-ui.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expo-system-ui.js","names":["createLegacyPlugin","packageName","fallback","withAndroidRootViewBackgroundColor","withIosRootViewBackgroundColor","withAndroidUserInterfaceStyle","withIosUserInterfaceStyle"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/expo-system-ui.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withAndroidRootViewBackgroundColor } from './withAndroidRootViewBackgroundColor';\nimport { withAndroidUserInterfaceStyle } from './withAndroidUserInterfaceStyle';\nimport { withIosRootViewBackgroundColor } from './withIosRootViewBackgroundColor';\nimport { withIosUserInterfaceStyle } from './withIosUserInterfaceStyle';\n\nexport default createLegacyPlugin({\n packageName: 'expo-system-ui',\n fallback: [\n withAndroidRootViewBackgroundColor,\n withIosRootViewBackgroundColor,\n withAndroidUserInterfaceStyle,\n withIosUserInterfaceStyle,\n ],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"expo-system-ui.js","names":["createLegacyPlugin","packageName","fallback","withAndroidRootViewBackgroundColor","withIosRootViewBackgroundColor","withAndroidUserInterfaceStyle","withIosUserInterfaceStyle"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/expo-system-ui.ts"],"sourcesContent":["import { createLegacyPlugin } from '../createLegacyPlugin';\nimport { withAndroidRootViewBackgroundColor } from './withAndroidRootViewBackgroundColor';\nimport { withAndroidUserInterfaceStyle } from './withAndroidUserInterfaceStyle';\nimport { withIosRootViewBackgroundColor } from './withIosRootViewBackgroundColor';\nimport { withIosUserInterfaceStyle } from './withIosUserInterfaceStyle';\n\nexport default createLegacyPlugin({\n packageName: 'expo-system-ui',\n fallback: [\n withAndroidRootViewBackgroundColor,\n withIosRootViewBackgroundColor,\n withAndroidUserInterfaceStyle,\n withIosUserInterfaceStyle,\n ],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAwE,eAEzD,IAAAA,wCAAkB,EAAC;EAChCC,WAAW,EAAE,gBAAgB;EAC7BC,QAAQ,EAAE,CACRC,wEAAkC,EAClCC,gEAA8B,EAC9BC,8DAA6B,EAC7BC,sDAAyB;AAE7B,CAAC,CAAC;AAAA"}
|
|
@@ -5,37 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getRootViewBackgroundColor = getRootViewBackgroundColor;
|
|
7
7
|
exports.withRootViewBackgroundColorStyles = exports.withRootViewBackgroundColorColors = exports.withAndroidRootViewBackgroundColor = void 0;
|
|
8
|
-
|
|
9
8
|
function _configPlugins() {
|
|
10
9
|
const data = require("@expo/config-plugins");
|
|
11
|
-
|
|
12
10
|
_configPlugins = function () {
|
|
13
11
|
return data;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return data;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
const {
|
|
20
16
|
assignColorValue
|
|
21
17
|
} = _configPlugins().AndroidConfig.Colors;
|
|
22
|
-
|
|
23
18
|
const {
|
|
24
19
|
assignStylesValue,
|
|
25
20
|
getAppThemeLightNoActionBarGroup
|
|
26
21
|
} = _configPlugins().AndroidConfig.Styles;
|
|
27
|
-
|
|
28
22
|
const ANDROID_WINDOW_BACKGROUND = 'android:windowBackground';
|
|
29
23
|
const WINDOW_BACKGROUND_COLOR = 'activityBackground';
|
|
30
|
-
|
|
31
24
|
const withAndroidRootViewBackgroundColor = config => {
|
|
32
25
|
config = withRootViewBackgroundColorColors(config);
|
|
33
26
|
config = withRootViewBackgroundColorStyles(config);
|
|
34
27
|
return config;
|
|
35
28
|
};
|
|
36
|
-
|
|
37
29
|
exports.withAndroidRootViewBackgroundColor = withAndroidRootViewBackgroundColor;
|
|
38
|
-
|
|
39
30
|
const withRootViewBackgroundColorColors = config => {
|
|
40
31
|
return (0, _configPlugins().withAndroidColors)(config, async config => {
|
|
41
32
|
config.modResults = assignColorValue(config.modResults, {
|
|
@@ -45,9 +36,7 @@ const withRootViewBackgroundColorColors = config => {
|
|
|
45
36
|
return config;
|
|
46
37
|
});
|
|
47
38
|
};
|
|
48
|
-
|
|
49
39
|
exports.withRootViewBackgroundColorColors = withRootViewBackgroundColorColors;
|
|
50
|
-
|
|
51
40
|
const withRootViewBackgroundColorStyles = config => {
|
|
52
41
|
return (0, _configPlugins().withAndroidStyles)(config, async config => {
|
|
53
42
|
config.modResults = assignStylesValue(config.modResults, {
|
|
@@ -59,12 +48,9 @@ const withRootViewBackgroundColorStyles = config => {
|
|
|
59
48
|
return config;
|
|
60
49
|
});
|
|
61
50
|
};
|
|
62
|
-
|
|
63
51
|
exports.withRootViewBackgroundColorStyles = withRootViewBackgroundColorStyles;
|
|
64
|
-
|
|
65
52
|
function getRootViewBackgroundColor(config) {
|
|
66
53
|
var _config$android;
|
|
67
|
-
|
|
68
54
|
return ((_config$android = config.android) === null || _config$android === void 0 ? void 0 : _config$android.backgroundColor) || config.backgroundColor || null;
|
|
69
55
|
}
|
|
70
56
|
//# sourceMappingURL=withAndroidRootViewBackgroundColor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withAndroidRootViewBackgroundColor.js","names":["assignColorValue","AndroidConfig","Colors","assignStylesValue","getAppThemeLightNoActionBarGroup","Styles","ANDROID_WINDOW_BACKGROUND","WINDOW_BACKGROUND_COLOR","withAndroidRootViewBackgroundColor","config","withRootViewBackgroundColorColors","withRootViewBackgroundColorStyles","withAndroidColors","modResults","value","getRootViewBackgroundColor","name","withAndroidStyles","add","parent","android","backgroundColor"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n withAndroidColors,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst { assignColorValue } = AndroidConfig.Colors;\nconst { assignStylesValue, getAppThemeLightNoActionBarGroup } = AndroidConfig.Styles;\n\nconst ANDROID_WINDOW_BACKGROUND = 'android:windowBackground';\nconst WINDOW_BACKGROUND_COLOR = 'activityBackground';\n\nexport const withAndroidRootViewBackgroundColor: ConfigPlugin = (config) => {\n config = withRootViewBackgroundColorColors(config);\n config = withRootViewBackgroundColorStyles(config);\n return config;\n};\n\nexport const withRootViewBackgroundColorColors: ConfigPlugin = (config) => {\n return withAndroidColors(config, async (config) => {\n config.modResults = assignColorValue(config.modResults, {\n value: getRootViewBackgroundColor(config),\n name: WINDOW_BACKGROUND_COLOR,\n });\n return config;\n });\n};\n\nexport const withRootViewBackgroundColorStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, async (config) => {\n config.modResults = assignStylesValue(config.modResults, {\n add: !!getRootViewBackgroundColor(config),\n parent: getAppThemeLightNoActionBarGroup(),\n name: ANDROID_WINDOW_BACKGROUND,\n value: `@color/${WINDOW_BACKGROUND_COLOR}`,\n });\n return config;\n });\n};\n\nexport function getRootViewBackgroundColor(\n config: Pick<ExpoConfig, 'android' | 'backgroundColor'>\n) {\n return config.android?.backgroundColor || config.backgroundColor || null;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withAndroidRootViewBackgroundColor.js","names":["assignColorValue","AndroidConfig","Colors","assignStylesValue","getAppThemeLightNoActionBarGroup","Styles","ANDROID_WINDOW_BACKGROUND","WINDOW_BACKGROUND_COLOR","withAndroidRootViewBackgroundColor","config","withRootViewBackgroundColorColors","withRootViewBackgroundColorStyles","withAndroidColors","modResults","value","getRootViewBackgroundColor","name","withAndroidStyles","add","parent","android","backgroundColor"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withAndroidRootViewBackgroundColor.ts"],"sourcesContent":["import {\n AndroidConfig,\n ConfigPlugin,\n withAndroidColors,\n withAndroidStyles,\n} from '@expo/config-plugins';\nimport { ExpoConfig } from '@expo/config-types';\n\nconst { assignColorValue } = AndroidConfig.Colors;\nconst { assignStylesValue, getAppThemeLightNoActionBarGroup } = AndroidConfig.Styles;\n\nconst ANDROID_WINDOW_BACKGROUND = 'android:windowBackground';\nconst WINDOW_BACKGROUND_COLOR = 'activityBackground';\n\nexport const withAndroidRootViewBackgroundColor: ConfigPlugin = (config) => {\n config = withRootViewBackgroundColorColors(config);\n config = withRootViewBackgroundColorStyles(config);\n return config;\n};\n\nexport const withRootViewBackgroundColorColors: ConfigPlugin = (config) => {\n return withAndroidColors(config, async (config) => {\n config.modResults = assignColorValue(config.modResults, {\n value: getRootViewBackgroundColor(config),\n name: WINDOW_BACKGROUND_COLOR,\n });\n return config;\n });\n};\n\nexport const withRootViewBackgroundColorStyles: ConfigPlugin = (config) => {\n return withAndroidStyles(config, async (config) => {\n config.modResults = assignStylesValue(config.modResults, {\n add: !!getRootViewBackgroundColor(config),\n parent: getAppThemeLightNoActionBarGroup(),\n name: ANDROID_WINDOW_BACKGROUND,\n value: `@color/${WINDOW_BACKGROUND_COLOR}`,\n });\n return config;\n });\n};\n\nexport function getRootViewBackgroundColor(\n config: Pick<ExpoConfig, 'android' | 'backgroundColor'>\n) {\n return config.android?.backgroundColor || config.backgroundColor || null;\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAQA,MAAM;EAAEA;AAAiB,CAAC,GAAGC,8BAAa,CAACC,MAAM;AACjD,MAAM;EAAEC,iBAAiB;EAAEC;AAAiC,CAAC,GAAGH,8BAAa,CAACI,MAAM;AAEpF,MAAMC,yBAAyB,GAAG,0BAA0B;AAC5D,MAAMC,uBAAuB,GAAG,oBAAoB;AAE7C,MAAMC,kCAAgD,GAAIC,MAAM,IAAK;EAC1EA,MAAM,GAAGC,iCAAiC,CAACD,MAAM,CAAC;EAClDA,MAAM,GAAGE,iCAAiC,CAACF,MAAM,CAAC;EAClD,OAAOA,MAAM;AACf,CAAC;AAAC;AAEK,MAAMC,iCAA+C,GAAID,MAAM,IAAK;EACzE,OAAO,IAAAG,kCAAiB,EAACH,MAAM,EAAE,MAAOA,MAAM,IAAK;IACjDA,MAAM,CAACI,UAAU,GAAGb,gBAAgB,CAACS,MAAM,CAACI,UAAU,EAAE;MACtDC,KAAK,EAAEC,0BAA0B,CAACN,MAAM,CAAC;MACzCO,IAAI,EAAET;IACR,CAAC,CAAC;IACF,OAAOE,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC;AAEK,MAAME,iCAA+C,GAAIF,MAAM,IAAK;EACzE,OAAO,IAAAQ,kCAAiB,EAACR,MAAM,EAAE,MAAOA,MAAM,IAAK;IACjDA,MAAM,CAACI,UAAU,GAAGV,iBAAiB,CAACM,MAAM,CAACI,UAAU,EAAE;MACvDK,GAAG,EAAE,CAAC,CAACH,0BAA0B,CAACN,MAAM,CAAC;MACzCU,MAAM,EAAEf,gCAAgC,EAAE;MAC1CY,IAAI,EAAEV,yBAAyB;MAC/BQ,KAAK,EAAG,UAASP,uBAAwB;IAC3C,CAAC,CAAC;IACF,OAAOE,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC;AAEK,SAASM,0BAA0B,CACxCN,MAAuD,EACvD;EAAA;EACA,OAAO,oBAAAA,MAAM,CAACW,OAAO,oDAAd,gBAAgBC,eAAe,KAAIZ,MAAM,CAACY,eAAe,IAAI,IAAI;AAC1E"}
|
|
@@ -4,31 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.withAndroidUserInterfaceStyle = void 0;
|
|
7
|
-
|
|
8
7
|
function _configPlugins() {
|
|
9
8
|
const data = require("@expo/config-plugins");
|
|
10
|
-
|
|
11
9
|
_configPlugins = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
const withAndroidUserInterfaceStyle = config => {
|
|
19
15
|
return (0, _configPlugins().withStringsXml)(config, config => {
|
|
20
16
|
var _config$android$userI, _config$android;
|
|
21
|
-
|
|
22
17
|
const userInterfaceStyle = (_config$android$userI = (_config$android = config.android) === null || _config$android === void 0 ? void 0 : _config$android.userInterfaceStyle) !== null && _config$android$userI !== void 0 ? _config$android$userI : config.userInterfaceStyle;
|
|
23
|
-
|
|
24
18
|
if (userInterfaceStyle) {
|
|
25
|
-
_configPlugins().WarningAggregator.addWarningAndroid('userInterfaceStyle',
|
|
19
|
+
_configPlugins().WarningAggregator.addWarningAndroid('userInterfaceStyle',
|
|
20
|
+
// TODO: Maybe warn that they need a certain version of React Native as well?
|
|
26
21
|
'Install expo-system-ui in your project to enable this feature.');
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
return config;
|
|
30
24
|
});
|
|
31
25
|
};
|
|
32
|
-
|
|
33
26
|
exports.withAndroidUserInterfaceStyle = withAndroidUserInterfaceStyle;
|
|
34
27
|
//# sourceMappingURL=withAndroidUserInterfaceStyle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withAndroidUserInterfaceStyle.js","names":["withAndroidUserInterfaceStyle","config","withStringsXml","userInterfaceStyle","android","WarningAggregator","addWarningAndroid"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.ts"],"sourcesContent":["import { ConfigPlugin, WarningAggregator, withStringsXml } from '@expo/config-plugins';\n\nexport const withAndroidUserInterfaceStyle: ConfigPlugin<void> = (config) => {\n return withStringsXml(config, (config) => {\n const userInterfaceStyle = config.android?.userInterfaceStyle ?? config.userInterfaceStyle;\n if (userInterfaceStyle) {\n WarningAggregator.addWarningAndroid(\n 'userInterfaceStyle',\n // TODO: Maybe warn that they need a certain version of React Native as well?\n 'Install expo-system-ui in your project to enable this feature.'\n );\n }\n\n return config;\n });\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"withAndroidUserInterfaceStyle.js","names":["withAndroidUserInterfaceStyle","config","withStringsXml","userInterfaceStyle","android","WarningAggregator","addWarningAndroid"],"sources":["../../../../src/plugins/unversioned/expo-system-ui/withAndroidUserInterfaceStyle.ts"],"sourcesContent":["import { ConfigPlugin, WarningAggregator, withStringsXml } from '@expo/config-plugins';\n\nexport const withAndroidUserInterfaceStyle: ConfigPlugin<void> = (config) => {\n return withStringsXml(config, (config) => {\n const userInterfaceStyle = config.android?.userInterfaceStyle ?? config.userInterfaceStyle;\n if (userInterfaceStyle) {\n WarningAggregator.addWarningAndroid(\n 'userInterfaceStyle',\n // TODO: Maybe warn that they need a certain version of React Native as well?\n 'Install expo-system-ui in your project to enable this feature.'\n );\n }\n\n return config;\n });\n};\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,6BAAiD,GAAIC,MAAM,IAAK;EAC3E,OAAO,IAAAC,+BAAc,EAACD,MAAM,EAAGA,MAAM,IAAK;IAAA;IACxC,MAAME,kBAAkB,+CAAGF,MAAM,CAACG,OAAO,oDAAd,gBAAgBD,kBAAkB,yEAAIF,MAAM,CAACE,kBAAkB;IAC1F,IAAIA,kBAAkB,EAAE;MACtBE,kCAAiB,CAACC,iBAAiB,CACjC,oBAAoB;MACpB;MACA,gEAAgE,CACjE;IACH;IAEA,OAAOL,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;AAAC"}
|