addProjectToLibraries.js 727 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = addProjectToLibraries;
  6. /**
  7. * Copyright (c) Facebook, Inc. and its affiliates.
  8. *
  9. * This source code is licensed under the MIT license found in the
  10. * LICENSE file in the root directory of this source tree.
  11. *
  12. */
  13. /**
  14. * Given an array of xcodeproj libraries and pbxFile,
  15. * it appends it to that group
  16. *
  17. * Important: That function mutates `libraries` and it's not pure.
  18. * It's mainly due to limitations of `xcode` library.
  19. */
  20. function addProjectToLibraries(libraries, file) {
  21. return libraries.children.push({
  22. value: file.fileRef,
  23. comment: file.basename
  24. });
  25. }
  26. //# sourceMappingURL=addProjectToLibraries.js.map