UNPKG

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