GT2/Ejectable/node_modules/@react-native-community/cli-platform-ios/build/link/addSharedLibraries.js

35 lines
891 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = addSharedLibraries;
var _createGroupWithMessage = _interopRequireDefault(require("./createGroupWithMessage"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
function addSharedLibraries(project, libraries) {
if (!libraries.length) {
return;
} // Create a Frameworks group if necessary.
(0, _createGroupWithMessage.default)(project, 'Frameworks');
const target = project.getFirstTarget().uuid;
for (const name of libraries) {
project.addFramework(name, {
target
});
}
}
//# sourceMappingURL=addSharedLibraries.js.map