1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const WarningAggregator_1 = require("../WarningAggregator");
|
4 | function getAdaptiveIcon(config) {
|
5 | var _a, _b, _c;
|
6 |
|
7 | return _c = (_b = (_a = config.android) === null || _a === void 0 ? void 0 : _a.adaptiveIcon) === null || _b === void 0 ? void 0 : _b.foregroundImage, (_c !== null && _c !== void 0 ? _c : null);
|
8 | }
|
9 | exports.getAdaptiveIcon = getAdaptiveIcon;
|
10 | async function setAdaptiveIconAsync(config, projectRoot) {
|
11 | let icon = getAdaptiveIcon(config);
|
12 | if (!icon) {
|
13 | return;
|
14 | }
|
15 | WarningAggregator_1.addWarningAndroid('android.adaptiveIcon', 'This is the image that your app uses on your home screen, you will need to configure it manually.');
|
16 | }
|
17 | exports.setAdaptiveIconAsync = setAdaptiveIconAsync;
|
18 |
|
\ | No newline at end of file |