UNPKG

959 BSource Map (JSON)View Raw
1{"version":3,"file":"Branch.js","sourceRoot":"","sources":["../../src/ios/Branch.ts"],"names":[],"mappings":";;AAGA,SAAgB,eAAe,CAAC,MAAkB;;IAChD,8BAAO,MAAM,CAAC,GAAG,0CAAE,MAAM,0CAAE,MAAM,0CAAE,MAAM,uCAAI,IAAI,EAAC;AACpD,CAAC;AAFD,0CAEC;AAED,SAAgB,eAAe,CAAC,MAAkB,EAAE,SAAoB;IACtE,IAAI,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAErC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,SAAS,CAAC;KAClB;IAED,uCACK,SAAS,KACZ,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;SACb,IACD;AACJ,CAAC;AAbD,0CAaC","sourcesContent":["import { InfoPlist } from './IosConfig.types';\nimport { ExpoConfig } from '../Config.types';\n\nexport function getBranchApiKey(config: ExpoConfig) {\n return config.ios?.config?.branch?.apiKey ?? null;\n}\n\nexport function setBranchApiKey(config: ExpoConfig, infoPlist: InfoPlist) {\n let apiKey = getBranchApiKey(config);\n\n if (apiKey === null) {\n return infoPlist;\n }\n\n return {\n ...infoPlist,\n branch_key: {\n live: apiKey,\n },\n };\n}\n"]}
\No newline at end of file