// Copyright 2004-present Facebook. All Rights Reserved. #include "JSIndexedRAMBundleRegistry.h" #include #include #include "oss-compat-util.h" namespace facebook { namespace react { std::unique_ptr JSIndexedRAMBundleRegistry::bundleById(uint32_t index) const { return folly::make_unique(bundlePathById(index).c_str()); } std::string JSIndexedRAMBundleRegistry::bundlePathById(uint32_t index) const { return m_baseDirectoryPath + "/js-bundles/" + toString(index) + ".jsbundle"; } } // namespace react } // namespace facebook