UNPKG

react-native-asset

Version:

Linking and unlinking of assets in your react-native app, works for fonts and sounds

17 lines (16 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTargetUUIDs = getTargetUUIDs; exports.getTargetByUUID = getTargetByUUID; /** * Get an array containing the UUID of each target in the project */ function getTargetUUIDs(project) { return project.getFirstProject().firstProject.targets.map((t) => t.value); } /** * Get a target by UUID */ function getTargetByUUID(project, uuid) { return project.pbxNativeTargetSection()[uuid]; }