Skip to content

Commit

Permalink
Move WebView Android files to FB internal
Browse files Browse the repository at this point in the history
Summary: This moves the Java files to FB internal and updates all the buck files

Reviewed By: TheSavior

Differential Revision: D14622521

fbshipit-source-id: a8d293e9f9e08868cca3ed2986a08d0db16dec15
  • Loading branch information
cpojer authored and facebook-github-bot committed Apr 2, 2019
1 parent 556aa93 commit 1ca9a95
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 1,001 deletions.
1 change: 0 additions & 1 deletion ReactAndroid/src/main/java/com/facebook/react/shell/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ rn_android_library(
react_native_target("java/com/facebook/react/views/toolbar:toolbar"),
react_native_target("java/com/facebook/react/views/view:view"),
react_native_target("java/com/facebook/react/views/viewpager:viewpager"),
react_native_target("java/com/facebook/react/views/webview:webview"),
react_native_target("java/com/facebook/react/module/annotations:annotations"),
react_native_target("res:shell"),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
import com.facebook.react.views.toolbar.ReactToolbarManager;
import com.facebook.react.views.view.ReactViewManager;
import com.facebook.react.views.viewpager.ReactViewPagerManager;
import com.facebook.react.views.webview.ReactWebViewManager;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -337,7 +336,6 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
viewManagers.add(new ReactSliderManager());
viewManagers.add(new ReactSwitchManager());
viewManagers.add(new ReactToolbarManager());
viewManagers.add(new ReactWebViewManager());
viewManagers.add(new SwipeRefreshLayoutManager());

// Native equivalents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected void onAfterUpdateTransaction(@Nonnull T view) {
/**
* Subclasses may use this method to receive events/commands directly from JS through the
* {@link UIManager}. Good example of such a command would be {@code scrollTo} request with
* coordinates for a {@link ScrollView} or {@code goBack} request for a {@link WebView} instance.
* coordinates for a {@link ScrollView} instance.
*
* @param root View instance that should receive the command
* @param commandId code of the command
Expand All @@ -144,18 +144,6 @@ public void receiveCommand(@Nonnull T root, int commandId, @Nullable ReadableArr
* map between names of the commands and IDs that are then used in {@link #receiveCommand} method
* whenever the command is dispatched for this particular {@link ViewManager}.
*
* As an example we may consider {@link ReactWebViewManager} that expose the following commands:
* goBack, goForward, reload. In this case the map returned from {@link #getCommandsMap} from
* {@link ReactWebViewManager} will look as follows:
* {
* "goBack": 1,
* "goForward": 2,
* "reload": 3,
* }
*
* Now assuming that "reload" command is dispatched through {@link UIManagerModule} we trigger
* {@link ReactWebViewManager#receiveCommand} passing "3" as {@code commandId} argument.
*
* @return map of string to int mapping of the expected commands
*/
public @Nullable Map<String, Integer> getCommandsMap() {
Expand Down
18 changes: 0 additions & 18 deletions ReactAndroid/src/main/java/com/facebook/react/views/webview/BUCK

This file was deleted.

Loading

0 comments on commit 1ca9a95

Please sign in to comment.