UNPKG

897 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const WarningAggregator_1 = require("../WarningAggregator");
4function getAdaptiveIcon(config) {
5 var _a, _b, _c;
6 // TODO: add support for applying adaptive icon config
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}
9exports.getAdaptiveIcon = getAdaptiveIcon;
10async 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}
17exports.setAdaptiveIconAsync = setAdaptiveIconAsync;
18//# sourceMappingURL=AdaptiveIcon.js.map
\No newline at end of file