findManifest.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = findManifest;
  6. function _glob() {
  7. const data = _interopRequireDefault(require("glob"));
  8. _glob = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _path() {
  14. const data = _interopRequireDefault(require("path"));
  15. _path = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21. /**
  22. * Copyright (c) Facebook, Inc. and its affiliates.
  23. *
  24. * This source code is licensed under the MIT license found in the
  25. * LICENSE file in the root directory of this source tree.
  26. *
  27. */
  28. function findManifest(folder) {
  29. const manifestPath = _glob().default.sync(_path().default.join('**', 'AndroidManifest.xml'), {
  30. cwd: folder,
  31. ignore: ['node_modules/**', '**/build/**', '**/debug/**', 'Examples/**', 'examples/**']
  32. })[0];
  33. return manifestPath ? _path().default.join(folder, manifestPath) : null;
  34. }
  35. //# sourceMappingURL=findManifest.js.map