UNPKG

1.84 kBSource Map (JSON)View Raw
1{"version":3,"file":"Name.js","sourceRoot":"","sources":["../../src/ios/Name.ts"],"names":[],"mappings":";;AAGA,SAAgB,OAAO,CAAC,MAAkB;IACxC,OAAO,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9D,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,cAAc,CAAC,YAAiC,EAAE,SAAoB;IACpF,IAAI,IAAI,GAAkB,IAAI,CAAC;IAC/B,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;QACpC,IAAI,GAAG,YAAY,CAAC;KACrB;SAAM;QACL,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;KAC9B;IAED,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,SAAS,CAAC;KAClB;IAED,uCACK,SAAS,KACZ,mBAAmB,EAAE,IAAI,IACzB;AACJ,CAAC;AAhBD,wCAgBC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,MAAkB,EAAE,SAAoB;IAC9D,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3B,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,SAAS,CAAC;KAClB;IAED,uCACK,SAAS,KACZ,YAAY,EAAE,IAAI,IAClB;AACJ,CAAC;AAXD,0BAWC","sourcesContent":["import { InfoPlist } from './IosConfig.types';\nimport { ExpoConfig } from '../Config.types';\n\nexport function getName(config: ExpoConfig) {\n return typeof config.name === 'string' ? config.name : null;\n}\n\n/**\n * CFBundleDisplayName is used for most things: the name on the home screen, in\n * notifications, and others.\n */\nexport function setDisplayName(configOrName: ExpoConfig | string, infoPlist: InfoPlist) {\n let name: string | null = null;\n if (typeof configOrName === 'string') {\n name = configOrName;\n } else {\n name = getName(configOrName);\n }\n\n if (!name) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n CFBundleDisplayName: name,\n };\n}\n\n/**\n * CFBundleName is recommended to be 16 chars or less and is used in lists, eg:\n * sometimes on the App Store\n */\nexport function setName(config: ExpoConfig, infoPlist: InfoPlist) {\n let name = getName(config);\n\n if (!name) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n CFBundleName: name,\n };\n}\n"]}
\No newline at end of file