Skip to content

Commit

Permalink
Skylarkify RN defs.
Browse files Browse the repository at this point in the history
Reviewed By: adamjernst

Differential Revision: D6934209

fbshipit-source-id: 59f50b739482a53473c157f9e0183024dc88dc67
  • Loading branch information
ttsugriy authored and facebook-github-bot committed Feb 8, 2018
1 parent a5e135a commit 79a63d0
Show file tree
Hide file tree
Showing 125 changed files with 305 additions and 280 deletions.
2 changes: 1 addition & 1 deletion RNTester/android/app/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target", "KEYSTORE_TARGET")
load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_android_binary", "rn_android_resource", "react_native_dep", "react_native_target", "KEYSTORE_TARGET")

rn_android_binary(
name = "app",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/androidTest/assets/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_resource")
load("//ReactNative:DEFS.bzl", "rn_android_resource")

rn_android_resource(
name = "assets",
Expand Down
2 changes: 1 addition & 1 deletion 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", "KEYSTORE_TARGET")
load("//ReactNative:DEFS.bzl", "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 Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_integration_tests_target", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_integration_tests_target", "react_native_target")

rn_android_library(
name = "testing",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "idledetection",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "network",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_integration_tests_target", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_integration_tests_target", "react_native_target")

rn_android_library(
name = "tests",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_resource", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_resource", "react_native_dep")

# used by ReactToolbarManager because of Gradle
# TODO t10182713 will be replaced with appcompat-orig when we stop using Gradle
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "yoga",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "model",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "holder",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "tags",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/jni/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "jni",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/perftest/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library")
load("//ReactNative:DEFS.bzl", "rn_android_library")

rn_android_library(
name = "perftest",
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.bzl", "rn_android_library")

rn_android_library(
name = "annotations",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "react",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "animated",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "animation",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target", "IS_OSS_BUILD")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target", "IS_OSS_BUILD")

rn_android_library(
name = "bridge",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/common/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "rn_android_build_config", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "rn_android_build_config", "react_native_dep")

SUB_PROJECTS = [
"network/**/*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "network",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "devsupport",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/flat/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")

rn_android_library(
name = "flat",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "jstasks",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "annotations",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "model",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_java_annotation_processor", "rn_java_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_java_annotation_processor", "rn_java_library", "react_native_dep", "react_native_target")

rn_java_annotation_processor(
name = "processing",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "accessibilityinfo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_target")

rn_android_library(
name = "appregistry",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "appstate",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "blob",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "camera",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "clipboard",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "common",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "core",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "datepicker",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "debug",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "deviceinfo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "dialog",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "fresco",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "i18nmanager",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "image",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "intent",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "location",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "netinfo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "network",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "permissions",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "share",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "statusbar",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "storage",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "systeminfo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "timepicker",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "toast",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "vibration",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "websocket",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "IS_OSS_BUILD", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "packagerconnection",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_java_annotation_processor", "rn_java_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_java_annotation_processor", "rn_java_library", "react_native_dep", "react_native_target")

rn_java_annotation_processor(
name = "processing",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/shell/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "shell",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/touch/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "touch",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")

rn_android_library(
name = "uimanager",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "annotations",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "util",
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/util/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_target")

rn_android_library(
name = "util",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "YOGA_TARGET", "react_native_dep", "react_native_target")

rn_android_library(
name = "art",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep", "react_native_target")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep", "react_native_target")

rn_android_library(
name = "checkbox",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//ReactNative:DEFS", "rn_android_library", "react_native_dep")
load("//ReactNative:DEFS.bzl", "rn_android_library", "react_native_dep")

rn_android_library(
name = "common",
Expand Down
Loading

0 comments on commit 79a63d0

Please sign in to comment.