UNPKG

832 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const WarningAggregator_1 = require("../WarningAggregator");
4function getIcon(config) {
5 var _a;
6 // Until we add support applying icon config we just test if the user has configured the icon
7 // so we can warn
8 if (config.icon || ((_a = config.android) === null || _a === void 0 ? void 0 : _a.icon)) {
9 return true;
10 }
11 else {
12 return false;
13 }
14}
15exports.getIcon = getIcon;
16async function setIconAsync(config, projectRoot) {
17 let icon = getIcon(config);
18 if (!icon) {
19 return;
20 }
21 WarningAggregator_1.addWarningAndroid('icon', 'This is the image that your app uses on your home screen, you will need to configure it manually.');
22}
23exports.setIconAsync = setIconAsync;
24//# sourceMappingURL=Icon.js.map
\No newline at end of file