forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cxxreact: executors: insert ID of segment reliably into the bundle path
Reviewed By: fromcelticpark Differential Revision: D7623232 fbshipit-source-id: df833d18f0445d52e3098b58aac347a2e9aa0040
- Loading branch information
1 parent
2e7dfd5
commit 5fd92f9
Showing
7 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
#include "JSCUtils.h" | ||
|
||
#include "RAMBundleRegistry.h" | ||
|
||
#include <folly/Conv.h> | ||
|
||
namespace facebook { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
|
||
#include "JSExecutor.h" | ||
|
||
#include "RAMBundleRegistry.h" | ||
|
||
#include <folly/Conv.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
std::string JSExecutor::getSyntheticBundlePath( | ||
uint32_t bundleId, | ||
const std::string& bundlePath) { | ||
if (bundleId == RAMBundleRegistry::MAIN_BUNDLE_ID) { | ||
return bundlePath; | ||
} | ||
return folly::to<std::string>("seg-", bundleId, ".js"); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters