removeFromHeaderSearchPaths.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = addToHeaderSearchPaths;
  6. var _mapHeaderSearchPaths = _interopRequireDefault(require("./mapHeaderSearchPaths"));
  7. function _cliTools() {
  8. const data = require("@react-native-community/cli-tools");
  9. _cliTools = function () {
  10. return data;
  11. };
  12. return data;
  13. }
  14. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15. /**
  16. * Copyright (c) Facebook, Inc. and its affiliates.
  17. *
  18. * This source code is licensed under the MIT license found in the
  19. * LICENSE file in the root directory of this source tree.
  20. *
  21. */
  22. /**
  23. * Given Xcode project and absolute path, it makes sure there are no headers referring to it
  24. */
  25. function addToHeaderSearchPaths(project, path) {
  26. _cliTools().logger.debug(`Removing ${path} from header search paths`);
  27. (0, _mapHeaderSearchPaths.default)(project, searchPaths => searchPaths.filter(searchPath => searchPath !== path));
  28. }
  29. //# sourceMappingURL=removeFromHeaderSearchPaths.js.map