1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const WarningAggregator_1 = require("../WarningAggregator");
|
4 | function getIcons(config) {
|
5 | var _a;
|
6 |
|
7 |
|
8 | if (config.icon || ((_a = config.ios) === null || _a === void 0 ? void 0 : _a.icon)) {
|
9 | return true;
|
10 | }
|
11 | else {
|
12 | return false;
|
13 | }
|
14 | }
|
15 | exports.getIcons = getIcons;
|
16 | function setIconsAsync(config, projectRoot) {
|
17 | let icon = getIcons(config);
|
18 | if (!icon) {
|
19 | return;
|
20 | }
|
21 | WarningAggregator_1.addWarningIOS('icon', 'This is the image that your app uses on your home screen, you will need to configure it manually.');
|
22 | }
|
23 | exports.setIconsAsync = setIconsAsync;
|
24 |
|
\ | No newline at end of file |