Skip to content

Commit d42697b

Browse files
zertoshfacebook-github-bot
authored andcommitted
Run buildifier over BUCK and TARGETS files
Reviewed By: scottrice Differential Revision: D8163151 fbshipit-source-id: 700a77c09c6ab1bef8fd24a2a3133a4b50e3b3a3
1 parent 04028bf commit d42697b

File tree

22 files changed

+51
-51
lines changed
  • ReactAndroid/src
    • main
      • java/com/facebook
      • libraries
        • fbcore/src
          • main/java/com/facebook/common/logging
          • test/java/com/facebook/powermock
        • fresco/fresco-react-native
        • textlayoutbuilder
      • third-party
    • test/java/com/facebook/common/logging
  • ReactCommon/jschelpers

22 files changed

+51
-51
lines changed

Diff for: ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ load("//ReactNative:DEFS.bzl", "react_native_dep", "rn_android_library")
33
rn_android_library(
44
name = "holder",
55
srcs = glob(["*.java"]),
6-
exported_deps = [
7-
react_native_dep("java/com/facebook/debug/debugoverlay/model:model"),
8-
],
96
visibility = [
107
"PUBLIC",
118
],
129
deps = [
1310
react_native_dep("third-party/java/jsr-305:jsr-305"),
1411
],
12+
exported_deps = [
13+
react_native_dep("java/com/facebook/debug/debugoverlay/model:model"),
14+
],
1515
)

Diff for: ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ load("//ReactNative:DEFS.bzl", "react_native_dep", "rn_android_library")
33
rn_android_library(
44
name = "tags",
55
srcs = glob(["*.java"]),
6-
exported_deps = [
7-
react_native_dep("java/com/facebook/debug/debugoverlay/model:model"),
8-
],
96
visibility = [
107
"PUBLIC",
118
],
129
deps = [
1310
react_native_dep("third-party/java/jsr-305:jsr-305"),
1411
],
12+
exported_deps = [
13+
react_native_dep("java/com/facebook/debug/debugoverlay/model:model"),
14+
],
1515
)

Diff for: ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_dep", "react_native
33
rn_android_library(
44
name = "bridge",
55
srcs = glob(["**/*.java"]),
6-
exported_deps = [
7-
react_native_dep("java/com/facebook/jni:jni"),
8-
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
9-
react_native_dep("third-party/java/jsr-330:jsr-330"),
10-
],
116
proguard_config = "reactnative.pro",
127
provided_deps = [
138
react_native_dep("third-party/android/support/v4:lib-support-v4"),
@@ -29,4 +24,9 @@ rn_android_library(
2924
react_native_target("java/com/facebook/react/module/model:model"),
3025
react_native_target("java/com/facebook/react/uimanager/common:common"),
3126
] + ([react_native_target("jni/react/jni:jni")] if not IS_OSS_BUILD else []),
27+
exported_deps = [
28+
react_native_dep("java/com/facebook/jni:jni"),
29+
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
30+
react_native_dep("third-party/java/jsr-330:jsr-330"),
31+
],
3232
)

Diff for: ReactAndroid/src/main/java/com/facebook/react/common/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ rn_android_library(
1010
["**/*.java"],
1111
excludes = SUB_PROJECTS,
1212
),
13-
exported_deps = [
14-
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
15-
],
1613
provided_deps = [
1714
react_native_dep("third-party/android/support/v4:lib-support-v4"),
1815
],
@@ -26,6 +23,9 @@ rn_android_library(
2623
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
2724
react_native_dep("third-party/java/jsr-305:jsr-305"),
2825
],
26+
exported_deps = [
27+
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
28+
],
2929
)
3030

3131
rn_android_build_config(

Diff for: ReactAndroid/src/main/java/com/facebook/react/fabric/jsc/BUCK

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_dep", "react_native
33
rn_android_library(
44
name = "jsc",
55
srcs = glob(["**/*.java"]),
6-
exported_deps = [
7-
react_native_dep("java/com/facebook/jni:jni"),
8-
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
9-
],
106
provided_deps = [
117
react_native_dep("third-party/android/support/v4:lib-support-v4"),
128
],
@@ -21,4 +17,8 @@ rn_android_library(
2117
react_native_target("java/com/facebook/react/fabric:fabric"),
2218
react_native_target("java/com/facebook/react/fabric/jsc/jni:jni"),
2319
],
20+
exported_deps = [
21+
react_native_dep("java/com/facebook/jni:jni"),
22+
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
23+
],
2424
)

Diff for: ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ rn_android_library(
66
"AndroidInfoModule.java",
77
"ReactNativeVersion.java",
88
],
9-
exported_deps = [
10-
":systeminfo-moduleless",
11-
],
129
visibility = [
1310
"PUBLIC",
1411
],
@@ -18,6 +15,9 @@ rn_android_library(
1815
react_native_target("java/com/facebook/react/common:common"),
1916
react_native_target("java/com/facebook/react/module/annotations:annotations"),
2017
],
18+
exported_deps = [
19+
":systeminfo-moduleless",
20+
],
2121
)
2222

2323
rn_android_library(

Diff for: ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ rn_android_library(
1111
],
1212
excludes = ["DisplayMetricsHolder.java"],
1313
),
14-
exported_deps = [
15-
":DisplayMetrics",
16-
react_native_dep("third-party/java/jsr-305:jsr-305"),
17-
react_native_target("java/com/facebook/react/uimanager/common:common"),
18-
],
1914
provided_deps = [
2015
react_native_dep("third-party/android/support/v4:lib-support-v4"),
2116
react_native_dep("third-party/android/support-annotations:android-support-annotations"),
@@ -44,6 +39,11 @@ rn_android_library(
4439
react_native_target("java/com/facebook/react/uimanager/common:common"),
4540
react_native_target("res:uimanager"),
4641
],
42+
exported_deps = [
43+
":DisplayMetrics",
44+
react_native_dep("third-party/java/jsr-305:jsr-305"),
45+
react_native_target("java/com/facebook/react/uimanager/common:common"),
46+
],
4747
)
4848

4949
rn_android_library(

Diff for: ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ rn_android_library(
2626
["*.java"],
2727
excludes = IMAGE_EVENT_FILES,
2828
),
29-
exported_deps = [
30-
":imageevents",
31-
],
3229
provided_deps = [
3330
react_native_dep("third-party/android/support-annotations:android-support-annotations"),
3431
react_native_dep("third-party/android/support/v4:lib-support-v4"),
@@ -52,4 +49,7 @@ rn_android_library(
5249
react_native_target("java/com/facebook/react/uimanager/annotations:annotations"),
5350
react_native_target("java/com/facebook/react/views/imagehelper:withmultisource"),
5451
],
52+
exported_deps = [
53+
":imageevents",
54+
],
5555
)

Diff for: ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ rn_android_library(
1818
rn_android_library(
1919
name = "withmultisource",
2020
srcs = ["MultiSourceHelper.java"],
21-
exported_deps = [
22-
":imagehelper",
23-
],
2421
visibility = [
2522
"PUBLIC",
2623
],
@@ -29,4 +26,7 @@ rn_android_library(
2926
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
3027
react_native_dep("third-party/java/jsr-305:jsr-305"),
3128
],
29+
exported_deps = [
30+
":imagehelper",
31+
],
3232
)

Diff for: ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ load("//ReactNative:DEFS.bzl", "react_native_dep", "rn_android_library")
22

33
rn_android_library(
44
name = "logging",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
react_native_dep("libraries/fresco/fresco-react-native:fbcore"),
78
],
8-
visibility = ["//ReactAndroid/..."],
99
)

Diff for: ReactAndroid/src/main/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "powermock",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":javassist",
78
":mockito-all",
@@ -16,7 +17,6 @@ rn_android_library(
1617
":xpp3",
1718
":xstream",
1819
],
19-
visibility = ["//ReactAndroid/..."],
2020
)
2121

2222
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ remote_file(
2626

2727
rn_android_library(
2828
name = "imagepipeline",
29+
visibility = ["//ReactAndroid/..."],
2930
exported_deps = [
3031
":bolts",
3132
":imagepipeline-base",
3233
":imagepipeline-core",
3334
],
34-
visibility = ["//ReactAndroid/..."],
3535
)
3636

3737
rn_android_prebuilt_aar(

Diff for: ReactAndroid/src/main/libraries/textlayoutbuilder/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_android_prebuilt_aar",
22

33
rn_android_library(
44
name = "textlayoutbuilder",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":staticlayoutproxy",
78
":textlayoutbuilder-base",
89
],
9-
visibility = ["//ReactAndroid/..."],
1010
)
1111

1212
rn_android_prebuilt_aar(

Diff for: ReactAndroid/src/main/third-party/android/support/v7/appcompat-orig/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_android_resource", "rn_
1111

1212
rn_android_library(
1313
name = "appcompat",
14-
exported_deps = [
15-
":classes-for-react-native",
16-
],
1714
visibility = [
1815
"PUBLIC",
1916
],
2017
deps = [
2118
":res-for-appcompat",
2219
],
20+
exported_deps = [
21+
":classes-for-react-native",
22+
],
2323
)
2424

2525
# still used by appcompat library internally, so we need both during the build

Diff for: ReactAndroid/src/main/third-party/java/asm/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "asm",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":asm-analysis",
78
":asm-commons",
89
":asm-core",
910
":asm-tree",
1011
":asm-util",
1112
],
12-
visibility = ["//ReactAndroid/..."],
1313
)
1414

1515
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/third-party/java/fest/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "fest",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":fest-core",
78
":fest-util",
89
],
9-
visibility = ["//ReactAndroid/..."],
1010
)
1111

1212
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/third-party/java/junit/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "junit",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":hamcrest",
78
":junit-core",
89
],
9-
visibility = ["//ReactAndroid/..."],
1010
)
1111

1212
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/third-party/java/mockito/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "mockito",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":mockito-core",
78
":objenesis",
89
],
9-
visibility = ["//ReactAndroid/..."],
1010
)
1111

1212
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/third-party/java/robolectric3/robolectric/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ load("//ReactNative:DEFS.bzl", "react_native_dep", "rn_android_library", "rn_pre
22

33
rn_android_library(
44
name = "robolectric",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":android-all-4.1.2_r1-robolectric-0",
78
":bouncycastle",
@@ -17,7 +18,6 @@ rn_android_library(
1718
react_native_dep("third-party/java/asm:asm"),
1819
react_native_dep("third-party/java/sqlite:sqlite"),
1920
],
20-
visibility = ["//ReactAndroid/..."],
2121
)
2222

2323
rn_prebuilt_jar(

Diff for: ReactAndroid/src/main/third-party/java/sqlite/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "sqlite",
5+
visibility = ["//ReactAndroid/..."],
56
exported_deps = [
67
":sqlite4java",
78
],
8-
visibility = ["//ReactAndroid/..."],
99
)
1010

1111
rn_prebuilt_jar(

Diff for: ReactAndroid/src/test/java/com/facebook/common/logging/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ load("//ReactNative:DEFS.bzl", "react_native_dep", "rn_android_library")
33
rn_android_library(
44
name = "logging",
55
srcs = glob(["**/*.java"]),
6-
exported_deps = [
7-
react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"),
8-
],
96
visibility = [
107
"PUBLIC",
118
],
129
deps = [
1310
react_native_dep("third-party/java/jsr-305:jsr-305"),
1411
],
12+
exported_deps = [
13+
react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"),
14+
],
1515
)

Diff for: ReactCommon/jschelpers/BUCK

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ rn_xplat_cxx_library(
3434
"-fvisibility=hidden",
3535
"-std=c++1y",
3636
],
37-
exported_deps = [
38-
react_native_xplat_target("privatedata:privatedata"),
39-
],
4037
fbandroid_deps = ANDROID_JSC_INTERNAL_DEPS,
4138
fbobjc_deps = APPLE_JSC_INTERNAL_DEPS,
4239
force_static = True,
@@ -49,6 +46,9 @@ rn_xplat_cxx_library(
4946
"xplat//third-party/glog:glog",
5047
react_native_xplat_target("privatedata:privatedata"),
5148
],
49+
exported_deps = [
50+
react_native_xplat_target("privatedata:privatedata"),
51+
],
5252
)
5353

5454
rn_xplat_cxx_library(

0 commit comments

Comments
 (0)