Skip to content

Commit

Permalink
Continue wrapping functions as we prepare for skylark
Browse files Browse the repository at this point in the history
Differential Revision: D6808010

fbshipit-source-id: f24e71558baed2c2da319e20e0faf66858eb27d5
  • Loading branch information
mzlee authored and facebook-github-bot committed Jan 25, 2018
1 parent df6c48c commit 869866c
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 59 deletions.
4 changes: 2 additions & 2 deletions RNTester/android/app/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("//ReactNative:DEFS", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target", "KEYSTORE_TARGET")

rn_android_binary(
name = "app",
keystore = "//keystores:debug",
keystore = KEYSTORE_TARGET,
manifest = "src/main/AndroidManifest.xml",
deps = [
":rntester-lib",
Expand Down
4 changes: 2 additions & 2 deletions ReactAndroid/src/androidTest/buck-runner/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_native_integration_tests_target", "react_native_target")
load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_native_integration_tests_target", "react_native_target", "KEYSTORE_TARGET")

# We are running instrumentation tests in simple mode: app code and instrumentation are in the same APK
# Currently you need to run these commands to execute tests:
Expand All @@ -9,7 +9,7 @@ load("//ReactNative:DEFS", "rn_android_binary", "react_native_dep", "react_nativ
# ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests
rn_android_binary(
name = "instrumentation-tests",
keystore = "//keystores:debug",
keystore = KEYSTORE_TARGET,
manifest = "AndroidManifest.xml",
deps = [
react_native_dep("android_res/com/facebook/catalyst/appcompat:appcompat"),
Expand Down
4 changes: 3 additions & 1 deletion ReactAndroid/src/main/jni/first-party/fb/jni/java/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
load("//ReactNative:DEFS", "react_native_dep")

java_library(
name = "java",
srcs = glob(["**/*.java"]),
visibility = ["PUBLIC"],
deps = [
"//java/com/facebook/proguard/annotations:annotations",
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
],
)
5 changes: 3 additions & 2 deletions ReactAndroid/src/main/jni/prebuilt/BUCK
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
load("//ReactNative:DEFS", "rn_prebuilt_native_library", "rn_android_prebuilt_aar")
# Temp workaround to get the build working e2e, Gradle builds them for us

prebuilt_native_library(
rn_prebuilt_native_library(
name = "reactnative-libs",
native_libs = "lib",
visibility = ["PUBLIC"],
)

android_prebuilt_aar(
rn_android_prebuilt_aar(
name = "android-jsc",
aar = ":android-jsc-aar",
visibility = ["PUBLIC"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
name = "powermock",
Expand All @@ -19,7 +19,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-core",
binary_jar = ":download-powermock-core",
visibility = ["//ReactAndroid/..."],
Expand All @@ -31,7 +31,7 @@ remote_file(
url = "mvn:org.powermock:powermock-core:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-api-mockito",
binary_jar = ":download-powermock-api-mockito",
visibility = ["//ReactAndroid/..."],
Expand All @@ -43,7 +43,7 @@ remote_file(
url = "mvn:org.powermock:powermock-api-mockito:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-api-support",
binary_jar = ":download-powermock-api-support",
visibility = ["//ReactAndroid/..."],
Expand All @@ -55,7 +55,7 @@ remote_file(
url = "mvn:org.powermock:powermock-api-support:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-module-junit4-rule",
binary_jar = ":download-powermock-module-junit4-rule",
visibility = ["//ReactAndroid/..."],
Expand All @@ -67,7 +67,7 @@ remote_file(
url = "mvn:org.powermock:powermock-module-junit4-rule:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-classloading-xstream",
binary_jar = ":download-powermock-classloading-xstream",
visibility = ["//ReactAndroid/..."],
Expand All @@ -79,7 +79,7 @@ remote_file(
url = "mvn:org.powermock:powermock-classloading-xstream:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-classloading-base",
binary_jar = ":download-powermock-classloading-base",
visibility = ["//ReactAndroid/..."],
Expand All @@ -91,7 +91,7 @@ remote_file(
url = "mvn:org.powermock:powermock-classloading-base:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "xstream",
binary_jar = ":download-xstream",
visibility = ["//ReactAndroid/..."],
Expand All @@ -103,7 +103,7 @@ remote_file(
url = "mvn:com.thoughtworks.xstream:xstream:jar:1.4.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "powermock-reflect",
binary_jar = ":download-powermock-reflect",
visibility = ["//ReactAndroid/..."],
Expand All @@ -115,7 +115,7 @@ remote_file(
url = "mvn:org.powermock:powermock-reflect:jar:1.6.2",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "javassist",
binary_jar = ":download-javassist",
visibility = ["//ReactAndroid/..."],
Expand All @@ -127,7 +127,7 @@ remote_file(
url = "mvn:org.javassist:javassist:jar:3.20.0-GA",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "mockito-all",
binary_jar = ":download-mockito-all",
visibility = ["//ReactAndroid/..."],
Expand All @@ -139,7 +139,7 @@ remote_file(
url = "mvn:org.mockito:mockito-all:jar:1.10.19",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "xmlpull",
binary_jar = ":download-xmlpull",
visibility = ["//ReactAndroid/..."],
Expand All @@ -151,7 +151,7 @@ remote_file(
url = "mvn:xmlpull:xmlpull:jar:1.1.3.1",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "xpp3",
binary_jar = ":download-xpp3",
visibility = ["//ReactAndroid/..."],
Expand Down
10 changes: 5 additions & 5 deletions ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_android_prebuilt_aar", "rn_prebuilt_jar")

android_prebuilt_aar(
rn_android_prebuilt_aar(
name = "fresco-react-native",
aar = ":fresco-binary-aar",
visibility = ["//ReactAndroid/..."],
Expand Down Expand Up @@ -34,7 +34,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

android_prebuilt_aar(
rn_android_prebuilt_aar(
name = "imagepipeline-base",
aar = ":imagepipeline-base-aar",
visibility = ["//ReactAndroid/..."],
Expand All @@ -46,7 +46,7 @@ remote_file(
url = "mvn:com.facebook.fresco:imagepipeline-base:aar:1.3.0",
)

android_prebuilt_aar(
rn_android_prebuilt_aar(
name = "imagepipeline-core",
aar = ":imagepipeline-aar",
visibility = ["//ReactAndroid/..."],
Expand All @@ -58,7 +58,7 @@ remote_file(
url = "mvn:com.facebook.fresco:imagepipeline:aar:1.3.0",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "bolts",
binary_jar = ":download-bolts",
visibility = ["//ReactAndroid/..."],
Expand Down
6 changes: 3 additions & 3 deletions ReactAndroid/src/main/libraries/textlayoutbuilder/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_android_prebuilt_aar", "rn_prebuilt_jar")

rn_android_library(
name = "textlayoutbuilder",
Expand All @@ -9,7 +9,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

android_prebuilt_aar(
rn_android_prebuilt_aar(
name = "textlayoutbuilder-base",
aar = ":textlayoutbuilder-base-aar",
visibility = ["//ReactAndroid/..."],
Expand All @@ -21,7 +21,7 @@ remote_file(
url = "mvn:com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:aar:1.0.0",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "staticlayoutproxy",
binary_jar = ":staticlayoutproxy-jar",
visibility = ["//ReactAndroid/..."],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "rn_android_resource")
load("//ReactNative:DEFS", "rn_android_library", "rn_android_resource", "rn_prebuilt_jar")

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

prebuilt_jar(
rn_prebuilt_jar(
name = "classes-for-react-native",
binary_jar = ":classes-unpacker-cmd",
visibility = ["//ReactAndroid/..."],
Expand Down
12 changes: 6 additions & 6 deletions ReactAndroid/src/main/third-party/java/asm/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
name = "asm",
Expand All @@ -12,7 +12,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

prebuilt_jar(
rn_prebuilt_jar(
name = "asm-core",
binary_jar = ":download-asm",
visibility = ["//ReactAndroid/..."],
Expand All @@ -24,7 +24,7 @@ remote_file(
url = "mvn:org.ow2.asm:asm:jar:5.0.1",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "asm-commons",
binary_jar = ":download-asm-commons",
visibility = ["//ReactAndroid/..."],
Expand All @@ -36,7 +36,7 @@ remote_file(
url = "mvn:org.ow2.asm:asm-commons:jar:5.0.1",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "asm-tree",
binary_jar = ":download-asm-tree",
visibility = ["//ReactAndroid/..."],
Expand All @@ -48,7 +48,7 @@ remote_file(
url = "mvn:org.ow2.asm:asm-tree:jar:5.0.1",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "asm-util",
binary_jar = ":download-asm-util",
visibility = ["//ReactAndroid/..."],
Expand All @@ -60,7 +60,7 @@ remote_file(
url = "mvn:org.ow2.asm:asm-util:jar:5.0.1",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "asm-analysis",
binary_jar = ":download-asm-analysis",
visibility = ["//ReactAndroid/..."],
Expand Down
6 changes: 3 additions & 3 deletions ReactAndroid/src/main/third-party/java/fest/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
name = "fest",
Expand All @@ -9,7 +9,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

prebuilt_jar(
rn_prebuilt_jar(
name = "fest-core",
binary_jar = ":fest-binary-jar",
visibility = ["//ReactAndroid/..."],
Expand All @@ -21,7 +21,7 @@ remote_file(
url = "mvn:org.easytesting:fest-assert-core:jar:2.0M10",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "fest-util",
binary_jar = ":fest-util-binary-jar",
visibility = ["//ReactAndroid/..."],
Expand Down
6 changes: 3 additions & 3 deletions ReactAndroid/src/main/third-party/java/junit/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
name = "junit",
Expand All @@ -9,7 +9,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

prebuilt_jar(
rn_prebuilt_jar(
name = "junit-core",
binary_jar = ":download-junit",
visibility = ["//ReactAndroid/..."],
Expand All @@ -21,7 +21,7 @@ remote_file(
url = "mvn:junit:junit:jar:4.12",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "hamcrest",
binary_jar = ":download-hamcrest",
visibility = ["//ReactAndroid/..."],
Expand Down
6 changes: 3 additions & 3 deletions ReactAndroid/src/main/third-party/java/mockito/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS", "rn_android_library", "rn_prebuilt_jar")

rn_android_library(
name = "mockito",
Expand All @@ -9,7 +9,7 @@ rn_android_library(
visibility = ["//ReactAndroid/..."],
)

prebuilt_jar(
rn_prebuilt_jar(
name = "mockito-core",
binary_jar = ":mockito-binary-jar",
visibility = ["//ReactAndroid/..."],
Expand All @@ -21,7 +21,7 @@ remote_file(
url = "mvn:org.mockito:mockito-core:jar:1.10.19",
)

prebuilt_jar(
rn_prebuilt_jar(
name = "objenesis",
binary_jar = ":objenesis-binary-jar",
visibility = ["//ReactAndroid/..."],
Expand Down
Loading

0 comments on commit 869866c

Please sign in to comment.