expo-sharing
Version:
Provides a way to share files directly with other compatible applications.
22 lines (21 loc) • 792 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addToPbxNativeTargetSection = addToPbxNativeTargetSection;
function addToPbxNativeTargetSection(xcodeProject, targetName, targetUuid, productFile, xcConfigurationList) {
const target = {
uuid: targetUuid,
pbxNativeTarget: {
isa: 'PBXNativeTarget',
name: targetName,
productName: targetName,
productReference: productFile.fileRef,
productType: `"com.apple.product-type.app-extension"`,
buildConfigurationList: xcConfigurationList.uuid,
buildPhases: [],
buildRules: [],
dependencies: [],
},
};
xcodeProject.addToPbxNativeTargetSection(target);
return target;
}