This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

1 line
1.7 KiB
Plaintext
Raw Normal View History

2021-04-02 02:24:13 +03:00
{"version":3,"file":"Version.js","sourceRoot":"","sources":["../../src/ios/Version.ts"],"names":[],"mappings":";;AAEA,wDAA+D;AAGlD,QAAA,WAAW,GAAG,mCAAqB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAG,mCAAqB,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;AAExF,SAAgB,UAAU,CAAC,MAAmC;IAC5D,OAAO,MAAM,CAAC,OAAO,IAAI,OAAO,CAAC;AACnC,CAAC;AAFD,gCAEC;AAED,SAAgB,UAAU,CAAC,MAAmC,EAAE,SAAoB;IAClF,uCACK,SAAS,KACZ,0BAA0B,EAAE,UAAU,CAAC,MAAM,CAAC,IAC9C;AACJ,CAAC;AALD,gCAKC;AAED,SAAgB,cAAc,CAAC,MAA+B;;IAC5D,OAAO,OAAA,MAAM,CAAC,GAAG,0CAAE,WAAW,EAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC;AAChE,CAAC;AAFD,wCAEC;AAED,SAAgB,cAAc,CAAC,MAA+B,EAAE,SAAoB;IAClF,uCACK,SAAS,KACZ,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,IACvC;AACJ,CAAC;AALD,wCAKC","sourcesContent":["import { ExpoConfig } from '@expo/config-types';\n\nimport { createInfoPlistPlugin } from '../plugins/ios-plugins';\nimport { InfoPlist } from './IosConfig.types';\n\nexport const withVersion = createInfoPlistPlugin(setVersion, 'withVersion');\n\nexport const withBuildNumber = createInfoPlistPlugin(setBuildNumber, 'withBuildNumber');\n\nexport function getVersion(config: Pick<ExpoConfig, 'version'>) {\n return config.version || '0.0.0';\n}\n\nexport function setVersion(config: Pick<ExpoConfig, 'version'>, infoPlist: InfoPlist): InfoPlist {\n return {\n ...infoPlist,\n CFBundleShortVersionString: getVersion(config),\n };\n}\n\nexport function getBuildNumber(config: Pick<ExpoConfig, 'ios'>) {\n return config.ios?.buildNumber ? config.ios.buildNumber : '1';\n}\n\nexport function setBuildNumber(config: Pick<ExpoConfig, 'ios'>, infoPlist: InfoPlist): InfoPlist {\n return {\n ...infoPlist,\n CFBundleVersion: getBuildNumber(config),\n };\n}\n"]}