getAssetDestPathAndroid.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _path() {
  7. const data = _interopRequireDefault(require("path"));
  8. _path = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. var _assetPathUtils = _interopRequireDefault(require("./assetPathUtils"));
  14. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15. /**
  16. * Copyright (c) Facebook, Inc. and its affiliates.
  17. *
  18. * This source code is licensed under the MIT license found in the
  19. * LICENSE file in the root directory of this source tree.
  20. *
  21. */
  22. function getAssetDestPathAndroid(asset, scale) {
  23. const androidFolder = _assetPathUtils.default.getAndroidResourceFolderName(asset, scale);
  24. const fileName = _assetPathUtils.default.getAndroidResourceIdentifier(asset);
  25. return _path().default.join(androidFolder, `${fileName}.${asset.type}`);
  26. }
  27. var _default = getAssetDestPathAndroid;
  28. exports.default = _default;
  29. //# sourceMappingURL=getAssetDestPathAndroid.js.map