1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4  value: true
5});
6exports.getUsesNonExemptEncryption = getUsesNonExemptEncryption;
7exports.setUsesNonExemptEncryption = setUsesNonExemptEncryption;
8exports.withUsesNonExemptEncryption = void 0;
9function _iosPlugins() {
10  const data = require("../plugins/ios-plugins");
11  _iosPlugins = function () {
12    return data;
13  };
14  return data;
15}
16const withUsesNonExemptEncryption = (0, _iosPlugins().createInfoPlistPluginWithPropertyGuard)(setUsesNonExemptEncryption, {
17  infoPlistProperty: 'ITSAppUsesNonExemptEncryption',
18  expoConfigProperty: 'ios.config.usesNonExemptEncryption'
19}, 'withUsesNonExemptEncryption');
20exports.withUsesNonExemptEncryption = withUsesNonExemptEncryption;
21function getUsesNonExemptEncryption(config) {
22  var _config$ios$config$us, _config$ios, _config$ios$config;
23  return (_config$ios$config$us = config === null || config === void 0 ? void 0 : (_config$ios = config.ios) === null || _config$ios === void 0 ? void 0 : (_config$ios$config = _config$ios.config) === null || _config$ios$config === void 0 ? void 0 : _config$ios$config.usesNonExemptEncryption) !== null && _config$ios$config$us !== void 0 ? _config$ios$config$us : null;
24}
25function setUsesNonExemptEncryption(config, {
26  ITSAppUsesNonExemptEncryption,
27  ...infoPlist
28}) {
29  const usesNonExemptEncryption = getUsesNonExemptEncryption(config);
30
31  // Make no changes if the key is left blank
32  if (usesNonExemptEncryption === null) {
33    return infoPlist;
34  }
35  return {
36    ...infoPlist,
37    ITSAppUsesNonExemptEncryption: usesNonExemptEncryption
38  };
39}
40//# sourceMappingURL=UsesNonExemptEncryption.js.map