Skip to content

Commit

Permalink
Revert "Parameter for using JS bytecode when starting the editor"
Browse files Browse the repository at this point in the history
This reverts commit f667d41.
  • Loading branch information
hypest committed Apr 8, 2020
1 parent 853be91 commit e4d7887
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,14 @@ private ImagePipelineConfig getImagePipelineConfig(OkHttpClient client) {
}

@Deprecated
public void onCreateView(Context initContext, boolean useBytecode, boolean htmlModeEnabled,
public void onCreateView(Context initContext, boolean htmlModeEnabled,
Application application, boolean isDebug, boolean buildGutenbergFromSource,
boolean isNewPost, String localeString, Bundle translations, int colorBackground, boolean isDarkMode) {
onCreateView(initContext, useBytecode, htmlModeEnabled, application, isDebug, buildGutenbergFromSource, "post",
isNewPost, localeString, translations, colorBackground, isDarkMode);
onCreateView(initContext, htmlModeEnabled, application, isDebug, buildGutenbergFromSource, "post", isNewPost
, localeString, translations, colorBackground, isDarkMode);
}

public void onCreateView(Context initContext, boolean useBytecode, boolean htmlModeEnabled,
public void onCreateView(Context initContext, boolean htmlModeEnabled,
Application application, boolean isDebug, boolean buildGutenbergFromSource,
String postType, boolean isNewPost, String localeString, Bundle translations,
int colorBackground, boolean isDarkMode) {
Expand All @@ -376,7 +376,7 @@ public void onCreateView(Context initContext, boolean useBytecode, boolean htmlM
.setJavaScriptExecutorFactory(new HermesExecutorFactory())
.setInitialLifecycleState(LifecycleState.BEFORE_CREATE);
if (!buildGutenbergFromSource) {
builder.setBundleAssetName(useBytecode ? "index.android.bytecode" : "index.android.js");
builder.setBundleAssetName("index.android.bytecode");
}
mReactInstanceManager = builder.build();
mReactInstanceManager.addReactInstanceEventListener(context -> {
Expand Down

0 comments on commit e4d7887

Please sign in to comment.