UNPKG

react-native-asset

Version:

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

16 lines (15 loc) 592 B
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as path from "../../deps/jsr.io/@std/path/1.1.4/mod.js"; import getBuildProperty from "./getBuildProperty.js"; export default function getPlistPath(project, sourceDir, targetUUID) { const plistFile = getBuildProperty(project, "INFOPLIST_FILE", targetUUID); if (!plistFile) { return null; } return path.join(sourceDir, plistFile.replace(/"/g, "").replace("$(SRCROOT)", "")); }