UNPKG

1.11 kBSource Map (JSON)View Raw
1{"version":3,"file":"AdaptiveIcon.js","sourceRoot":"","sources":["../../src/android/AdaptiveIcon.ts"],"names":[],"mappings":";;AACA,4DAAyD;AAEzD,SAAgB,eAAe,CAAC,MAAkB;;IAChD,sDAAsD;IACtD,wBAAO,MAAM,CAAC,OAAO,0CAAE,YAAY,0CAAE,eAAe,uCAAI,IAAI,EAAC;AAC/D,CAAC;AAHD,0CAGC;AAEM,KAAK,UAAU,oBAAoB,CAAC,MAAkB,EAAE,WAAmB;IAChF,IAAI,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IAED,qCAAiB,CACf,sBAAsB,EACtB,mGAAmG,CACpG,CAAC;AACJ,CAAC;AAVD,oDAUC","sourcesContent":["import { ExpoConfig } from '../Config.types';\nimport { addWarningAndroid } from '../WarningAggregator';\n\nexport function getAdaptiveIcon(config: ExpoConfig) {\n // TODO: add support for applying adaptive icon config\n return config.android?.adaptiveIcon?.foregroundImage ?? null;\n}\n\nexport async function setAdaptiveIconAsync(config: ExpoConfig, projectRoot: string) {\n let icon = getAdaptiveIcon(config);\n if (!icon) {\n return;\n }\n\n addWarningAndroid(\n 'android.adaptiveIcon',\n 'This is the image that your app uses on your home screen, you will need to configure it manually.'\n );\n}\n"]}
\No newline at end of file