UNPKG

920 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function getUsesNonExemptEncryption(config) {
4 var _a, _b;
5 return ((_b = (_a = config.ios) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.hasOwnProperty('usesNonExemptEncryption')) ? !!config.ios.config.usesNonExemptEncryption
6 : null;
7}
8exports.getUsesNonExemptEncryption = getUsesNonExemptEncryption;
9function setUsesNonExemptEncryption(config, infoPlist) {
10 let usesNonExemptEncryption = getUsesNonExemptEncryption(config);
11 // Make no changes if the key is left blank
12 if (usesNonExemptEncryption === null) {
13 return infoPlist;
14 }
15 return Object.assign(Object.assign({}, infoPlist), { ITSAppUsesNonExemptEncryption: usesNonExemptEncryption });
16}
17exports.setUsesNonExemptEncryption = setUsesNonExemptEncryption;
18//# sourceMappingURL=UsesNonExemptEncryption.js.map
\No newline at end of file