Skip to content

Commit dd016f3

Browse files
jkeljofacebook-github-bot
authored andcommitted
Automated fixups for Instagram
Reviewed By: dreiss Differential Revision: D6168048 fbshipit-source-id: 0e51319d93fd697db01ea3933f48cd06a6ffac12
1 parent bbc90b4 commit dd016f3

10 files changed

Lines changed: 23 additions & 22 deletions

File tree

ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ android_library(
1212
provided_deps = [
1313
react_native_dep("third-party/android/support/v4:lib-support-v4"),
1414
],
15+
required_for_source_only_abi = True,
1516
visibility = [
1617
"PUBLIC",
1718
],

ReactAndroid/src/main/java/com/facebook/react/common/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ android_library(
1616
provided_deps = [
1717
react_native_dep("third-party/android/support/v4:lib-support-v4"),
1818
],
19+
required_for_source_only_abi = True,
1920
visibility = [
2021
"PUBLIC",
2122
],

ReactAndroid/src/main/java/com/facebook/react/devsupport/WebsocketJavaScriptExecutor.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@
99

1010
package com.facebook.react.devsupport;
1111

12-
import javax.annotation.Nullable;
13-
14-
import java.util.HashMap;
15-
import java.util.concurrent.Semaphore;
16-
import java.util.concurrent.atomic.AtomicInteger;
17-
1812
import android.os.Handler;
1913
import android.os.Looper;
20-
2114
import com.facebook.infer.annotation.Assertions;
2215
import com.facebook.react.bridge.JavaJSExecutor;
16+
import java.util.HashMap;
17+
import java.util.concurrent.Semaphore;
18+
import java.util.concurrent.atomic.AtomicInteger;
19+
import javax.annotation.Nullable;
2320

2421
/**
2522
* Executes JS remotely via the react nodejs server as a proxy to a browser on the host machine.
@@ -160,8 +157,7 @@ public void close() {
160157
}
161158

162159
@Override
163-
public void loadApplicationScript(String sourceURL)
164-
throws ProxyExecutorException {
160+
public void loadApplicationScript(String sourceURL) throws JavaJSExecutor.ProxyExecutorException {
165161
JSExecutorCallbackFuture callback = new JSExecutorCallbackFuture();
166162
Assertions.assertNotNull(mWebSocketClient).loadApplicationScript(
167163
sourceURL,
@@ -176,7 +172,7 @@ public void loadApplicationScript(String sourceURL)
176172

177173
@Override
178174
public @Nullable String executeJSCall(String methodName, String jsonArgsArray)
179-
throws ProxyExecutorException {
175+
throws JavaJSExecutor.ProxyExecutorException {
180176
JSExecutorCallbackFuture callback = new JSExecutorCallbackFuture();
181177
Assertions.assertNotNull(mWebSocketClient).executeJSCall(
182178
methodName,

ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include_defs("//ReactAndroid/DEFS")
33
android_library(
44
name = "annotations",
55
srcs = glob(["**/*.java"]),
6+
required_for_source_only_abi = True,
67
visibility = [
78
"PUBLIC",
89
],

ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ android_library(
1414
provided_deps = [
1515
react_native_dep("third-party/android/support/v4:lib-support-v4"),
1616
],
17+
required_for_source_only_abi = True,
1718
visibility = [
1819
"PUBLIC",
1920
],

ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ include_defs("//ReactAndroid/DEFS")
33
android_library(
44
name = "annotations",
55
srcs = glob(["*.java"]),
6+
required_for_source_only_abi = True,
67
visibility = [
78
"PUBLIC",
89
],

ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/OpacityAnimation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
/* package */ class OpacityAnimation extends Animation {
1414

15-
static class OpacityAnimationListener implements AnimationListener {
15+
static class OpacityAnimationListener implements Animation.AnimationListener {
1616

1717
private final View mView;
1818
private boolean mLayerTypeChanged = false;

ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ android_library(
1111
react_native_dep("third-party/android/support-annotations:android-support-annotations"),
1212
react_native_dep("third-party/android/support/v4:lib-support-v4"),
1313
],
14+
required_for_source_only_abi = True,
1415
visibility = ["PUBLIC"],
1516
deps = [
1617
react_native_dep("third-party/java/jsr-305:jsr-305"),

ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public class ReactViewGroup extends ViewGroup implements
5454

5555
/**
5656
* This listener will be set for child views when removeClippedSubview property is enabled. When
57-
* children layout is updated, it will call {@link #updateSubviewClipStatus} to notify parent
58-
* view about that fact so that view can be attached/detached if necessary.
57+
* children layout is updated, it will call {@link #updateSubviewClipStatus} to notify parent view
58+
* about that fact so that view can be attached/detached if necessary.
5959
*
60-
* TODO(7728005): Attach/detach views in batch - once per frame in case when multiple children
60+
* <p>TODO(7728005): Attach/detach views in batch - once per frame in case when multiple children
6161
* update their layout.
6262
*/
63-
private static final class ChildrenLayoutChangeListener implements OnLayoutChangeListener {
63+
private static final class ChildrenLayoutChangeListener implements View.OnLayoutChangeListener {
6464

6565
private final ReactViewGroup mParent;
6666

@@ -396,7 +396,7 @@ protected void onAttachedToWindow() {
396396
}
397397

398398
@Override
399-
public void addView(View child, int index, LayoutParams params) {
399+
public void addView(View child, int index, ViewGroup.LayoutParams params) {
400400
// This will get called for every overload of addView so there is not need to override every method.
401401
mDrawingOrderHelper.handleAddView(child);
402402
setChildrenDrawingOrderEnabled(mDrawingOrderHelper.shouldEnableCustomDrawingOrder());
@@ -468,7 +468,8 @@ protected void dispatchSetPressed(boolean pressed) {
468468
addViewWithSubviewClippingEnabled(child, index, sDefaultLayoutParam);
469469
}
470470

471-
/*package*/ void addViewWithSubviewClippingEnabled(View child, int index, LayoutParams params) {
471+
/*package*/ void addViewWithSubviewClippingEnabled(
472+
View child, int index, ViewGroup.LayoutParams params) {
472473
Assertions.assertCondition(mRemoveClippedSubviews);
473474
Assertions.assertNotNull(mClippingRect);
474475
Assertions.assertNotNull(mAllChildren);

ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@
99

1010
package com.facebook.react.views.viewpager;
1111

12-
import java.util.ArrayList;
13-
import java.util.List;
14-
1512
import android.support.v4.view.PagerAdapter;
1613
import android.support.v4.view.ViewPager;
1714
import android.view.MotionEvent;
1815
import android.view.View;
1916
import android.view.ViewGroup;
20-
2117
import com.facebook.react.bridge.ReactContext;
2218
import com.facebook.react.uimanager.UIManagerModule;
2319
import com.facebook.react.uimanager.events.EventDispatcher;
2420
import com.facebook.react.uimanager.events.NativeGestureUtil;
21+
import java.util.ArrayList;
22+
import java.util.List;
2523

2624
/**
2725
* Wrapper view for {@link ViewPager}. It's forwarding calls to {@link ViewGroup#addView} to add
@@ -118,7 +116,7 @@ public boolean isViewFromObject(View view, Object object) {
118116
}
119117
}
120118

121-
private class PageChangeListener implements OnPageChangeListener {
119+
private class PageChangeListener implements ViewPager.OnPageChangeListener {
122120

123121
@Override
124122
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

0 commit comments

Comments
 (0)