Skip to content

Commit 869866c

Browse files
mzleefacebook-github-bot
authored andcommitted
Continue wrapping functions as we prepare for skylark
Differential Revision: D6808010 fbshipit-source-id: f24e71558baed2c2da319e20e0faf66858eb27d5
1 parent df6c48c commit 869866c

File tree

15 files changed

+72
-59
lines changed
  • RNTester/android/app
  • ReactAndroid/src
    • androidTest/buck-runner
    • main
      • jni
      • libraries
        • fbcore/src/test/java/com/facebook/powermock
        • fresco/fresco-react-native
        • textlayoutbuilder
      • third-party
  • ReactNative

15 files changed

+72
-59
lines changed

RNTester/android/app/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
load("//ReactNative:DEFS", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target", "KEYSTORE_TARGET")
22

33
rn_android_binary(
44
name = "app",
5-
keystore = "//keystores:debug",
5+
keystore = KEYSTORE_TARGET,
66
manifest = "src/main/AndroidManifest.xml",
77
deps = [
88
":rntester-lib",

ReactAndroid/src/androidTest/buck-runner/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_native_integration_tests_target", "react_native_target")
1+
load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_native_integration_tests_target", "react_native_target", "KEYSTORE_TARGET")
22

33
# We are running instrumentation tests in simple mode: app code and instrumentation are in the same APK
44
# Currently you need to run these commands to execute tests:
@@ -9,7 +9,7 @@ load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_nativ
99
# ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests
1010
rn_android_binary(
1111
name = "instrumentation-tests",
12-
keystore = "//keystores:debug",
12+
keystore = KEYSTORE_TARGET,
1313
manifest = "AndroidManifest.xml",
1414
deps = [
1515
react_native_dep("android_res/com/facebook/catalyst/appcompat:appcompat"),
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
load("//ReactNative:DEFS", "react_native_dep")
2+
13
java_library(
24
name = "java",
35
srcs = glob(["**/*.java"]),
46
visibility = ["PUBLIC"],
57
deps = [
6-
"//java/com/facebook/proguard/annotations:annotations",
8+
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
79
],
810
)

ReactAndroid/src/main/jni/prebuilt/BUCK

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
load("//ReactNative:DEFS", "rn_prebuilt_native_library", "rn_android_prebuilt_aar")
12
# Temp workaround to get the build working e2e, Gradle builds them for us
23

3-
prebuilt_native_library(
4+
rn_prebuilt_native_library(
45
name = "reactnative-libs",
56
native_libs = "lib",
67
visibility = ["PUBLIC"],
78
)
89

9-
android_prebuilt_aar(
10+
rn_android_prebuilt_aar(
1011
name = "android-jsc",
1112
aar = ":android-jsc-aar",
1213
visibility = ["PUBLIC"],

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_library")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "powermock",
@@ -19,7 +19,7 @@ rn_android_library(
1919
visibility = ["//ReactAndroid/..."],
2020
)
2121

22-
prebuilt_jar(
22+
rn_prebuilt_jar(
2323
name = "powermock-core",
2424
binary_jar = ":download-powermock-core",
2525
visibility = ["//ReactAndroid/..."],
@@ -31,7 +31,7 @@ remote_file(
3131
url = "mvn:org.powermock:powermock-core:jar:1.6.2",
3232
)
3333

34-
prebuilt_jar(
34+
rn_prebuilt_jar(
3535
name = "powermock-api-mockito",
3636
binary_jar = ":download-powermock-api-mockito",
3737
visibility = ["//ReactAndroid/..."],
@@ -43,7 +43,7 @@ remote_file(
4343
url = "mvn:org.powermock:powermock-api-mockito:jar:1.6.2",
4444
)
4545

46-
prebuilt_jar(
46+
rn_prebuilt_jar(
4747
name = "powermock-api-support",
4848
binary_jar = ":download-powermock-api-support",
4949
visibility = ["//ReactAndroid/..."],
@@ -55,7 +55,7 @@ remote_file(
5555
url = "mvn:org.powermock:powermock-api-support:jar:1.6.2",
5656
)
5757

58-
prebuilt_jar(
58+
rn_prebuilt_jar(
5959
name = "powermock-module-junit4-rule",
6060
binary_jar = ":download-powermock-module-junit4-rule",
6161
visibility = ["//ReactAndroid/..."],
@@ -67,7 +67,7 @@ remote_file(
6767
url = "mvn:org.powermock:powermock-module-junit4-rule:jar:1.6.2",
6868
)
6969

70-
prebuilt_jar(
70+
rn_prebuilt_jar(
7171
name = "powermock-classloading-xstream",
7272
binary_jar = ":download-powermock-classloading-xstream",
7373
visibility = ["//ReactAndroid/..."],
@@ -79,7 +79,7 @@ remote_file(
7979
url = "mvn:org.powermock:powermock-classloading-xstream:jar:1.6.2",
8080
)
8181

82-
prebuilt_jar(
82+
rn_prebuilt_jar(
8383
name = "powermock-classloading-base",
8484
binary_jar = ":download-powermock-classloading-base",
8585
visibility = ["//ReactAndroid/..."],
@@ -91,7 +91,7 @@ remote_file(
9191
url = "mvn:org.powermock:powermock-classloading-base:jar:1.6.2",
9292
)
9393

94-
prebuilt_jar(
94+
rn_prebuilt_jar(
9595
name = "xstream",
9696
binary_jar = ":download-xstream",
9797
visibility = ["//ReactAndroid/..."],
@@ -103,7 +103,7 @@ remote_file(
103103
url = "mvn:com.thoughtworks.xstream:xstream:jar:1.4.2",
104104
)
105105

106-
prebuilt_jar(
106+
rn_prebuilt_jar(
107107
name = "powermock-reflect",
108108
binary_jar = ":download-powermock-reflect",
109109
visibility = ["//ReactAndroid/..."],
@@ -115,7 +115,7 @@ remote_file(
115115
url = "mvn:org.powermock:powermock-reflect:jar:1.6.2",
116116
)
117117

118-
prebuilt_jar(
118+
rn_prebuilt_jar(
119119
name = "javassist",
120120
binary_jar = ":download-javassist",
121121
visibility = ["//ReactAndroid/..."],
@@ -127,7 +127,7 @@ remote_file(
127127
url = "mvn:org.javassist:javassist:jar:3.20.0-GA",
128128
)
129129

130-
prebuilt_jar(
130+
rn_prebuilt_jar(
131131
name = "mockito-all",
132132
binary_jar = ":download-mockito-all",
133133
visibility = ["//ReactAndroid/..."],
@@ -139,7 +139,7 @@ remote_file(
139139
url = "mvn:org.mockito:mockito-all:jar:1.10.19",
140140
)
141141

142-
prebuilt_jar(
142+
rn_prebuilt_jar(
143143
name = "xmlpull",
144144
binary_jar = ":download-xmlpull",
145145
visibility = ["//ReactAndroid/..."],
@@ -151,7 +151,7 @@ remote_file(
151151
url = "mvn:xmlpull:xmlpull:jar:1.1.3.1",
152152
)
153153

154-
prebuilt_jar(
154+
rn_prebuilt_jar(
155155
name = "xpp3",
156156
binary_jar = ":download-xpp3",
157157
visibility = ["//ReactAndroid/..."],

ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("//ReactNative:DEFS", "rn_android_library")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_android_prebuilt_aar", "rn_prebuilt_jar")
22

3-
android_prebuilt_aar(
3+
rn_android_prebuilt_aar(
44
name = "fresco-react-native",
55
aar = ":fresco-binary-aar",
66
visibility = ["//ReactAndroid/..."],
@@ -34,7 +34,7 @@ rn_android_library(
3434
visibility = ["//ReactAndroid/..."],
3535
)
3636

37-
android_prebuilt_aar(
37+
rn_android_prebuilt_aar(
3838
name = "imagepipeline-base",
3939
aar = ":imagepipeline-base-aar",
4040
visibility = ["//ReactAndroid/..."],
@@ -46,7 +46,7 @@ remote_file(
4646
url = "mvn:com.facebook.fresco:imagepipeline-base:aar:1.3.0",
4747
)
4848

49-
android_prebuilt_aar(
49+
rn_android_prebuilt_aar(
5050
name = "imagepipeline-core",
5151
aar = ":imagepipeline-aar",
5252
visibility = ["//ReactAndroid/..."],
@@ -58,7 +58,7 @@ remote_file(
5858
url = "mvn:com.facebook.fresco:imagepipeline:aar:1.3.0",
5959
)
6060

61-
prebuilt_jar(
61+
rn_prebuilt_jar(
6262
name = "bolts",
6363
binary_jar = ":download-bolts",
6464
visibility = ["//ReactAndroid/..."],

ReactAndroid/src/main/libraries/textlayoutbuilder/BUCK

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_library")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_android_prebuilt_aar", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "textlayoutbuilder",
@@ -9,7 +9,7 @@ rn_android_library(
99
visibility = ["//ReactAndroid/..."],
1010
)
1111

12-
android_prebuilt_aar(
12+
rn_android_prebuilt_aar(
1313
name = "textlayoutbuilder-base",
1414
aar = ":textlayoutbuilder-base-aar",
1515
visibility = ["//ReactAndroid/..."],
@@ -21,7 +21,7 @@ remote_file(
2121
url = "mvn:com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:aar:1.0.0",
2222
)
2323

24-
prebuilt_jar(
24+
rn_prebuilt_jar(
2525
name = "staticlayoutproxy",
2626
binary_jar = ":staticlayoutproxy-jar",
2727
visibility = ["//ReactAndroid/..."],

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_library", "rn_android_resource")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_android_resource", "rn_prebuilt_jar")
22

33
# This is a bit messy and hopefully a temporary thing
44
# The problem is that Gradle extracts appcompat resources into app namespace, com.facebook.react
@@ -30,7 +30,7 @@ rn_android_resource(
3030
visibility = ["//ReactAndroid/..."],
3131
)
3232

33-
prebuilt_jar(
33+
rn_prebuilt_jar(
3434
name = "classes-for-react-native",
3535
binary_jar = ":classes-unpacker-cmd",
3636
visibility = ["//ReactAndroid/..."],

ReactAndroid/src/main/third-party/java/asm/BUCK

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_library")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "asm",
@@ -12,7 +12,7 @@ rn_android_library(
1212
visibility = ["//ReactAndroid/..."],
1313
)
1414

15-
prebuilt_jar(
15+
rn_prebuilt_jar(
1616
name = "asm-core",
1717
binary_jar = ":download-asm",
1818
visibility = ["//ReactAndroid/..."],
@@ -24,7 +24,7 @@ remote_file(
2424
url = "mvn:org.ow2.asm:asm:jar:5.0.1",
2525
)
2626

27-
prebuilt_jar(
27+
rn_prebuilt_jar(
2828
name = "asm-commons",
2929
binary_jar = ":download-asm-commons",
3030
visibility = ["//ReactAndroid/..."],
@@ -36,7 +36,7 @@ remote_file(
3636
url = "mvn:org.ow2.asm:asm-commons:jar:5.0.1",
3737
)
3838

39-
prebuilt_jar(
39+
rn_prebuilt_jar(
4040
name = "asm-tree",
4141
binary_jar = ":download-asm-tree",
4242
visibility = ["//ReactAndroid/..."],
@@ -48,7 +48,7 @@ remote_file(
4848
url = "mvn:org.ow2.asm:asm-tree:jar:5.0.1",
4949
)
5050

51-
prebuilt_jar(
51+
rn_prebuilt_jar(
5252
name = "asm-util",
5353
binary_jar = ":download-asm-util",
5454
visibility = ["//ReactAndroid/..."],
@@ -60,7 +60,7 @@ remote_file(
6060
url = "mvn:org.ow2.asm:asm-util:jar:5.0.1",
6161
)
6262

63-
prebuilt_jar(
63+
rn_prebuilt_jar(
6464
name = "asm-analysis",
6565
binary_jar = ":download-asm-analysis",
6666
visibility = ["//ReactAndroid/..."],

ReactAndroid/src/main/third-party/java/fest/BUCK

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//ReactNative:DEFS", "rn_android_library")
1+
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")
22

33
rn_android_library(
44
name = "fest",
@@ -9,7 +9,7 @@ rn_android_library(
99
visibility = ["//ReactAndroid/..."],
1010
)
1111

12-
prebuilt_jar(
12+
rn_prebuilt_jar(
1313
name = "fest-core",
1414
binary_jar = ":fest-binary-jar",
1515
visibility = ["//ReactAndroid/..."],
@@ -21,7 +21,7 @@ remote_file(
2121
url = "mvn:org.easytesting:fest-assert-core:jar:2.0M10",
2222
)
2323

24-
prebuilt_jar(
24+
rn_prebuilt_jar(
2525
name = "fest-util",
2626
binary_jar = ":fest-util-binary-jar",
2727
visibility = ["//ReactAndroid/..."],

0 commit comments

Comments
 (0)