Skip to content

Commit

Permalink
Annotate targets with feature xplat/js/react-native-github/ReactAndro…
Browse files Browse the repository at this point in the history
…id/src/main/java/com/facebook/react/packagerconnection/BUCK -> xplat/js/react-native...

Summary: ...-github/ReactAndroid/src/main/java/com/facebook/react/views/commo

Reviewed By: jkeljo

Differential Revision: D35178656

fbshipit-source-id: bcd09e49f1b4625012ca9372eea9254a0955e9fa
  • Loading branch information
CodemodService Bot authored and facebook-github-bot committed Mar 28, 2022
1 parent 8eddec9 commit 64b7ac5
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -6,6 +7,7 @@ rn_android_library(
["**/*.java"],
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/processing/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_java_annotation_processor", "rn_java_library")

rn_java_annotation_processor(
Expand All @@ -15,6 +16,7 @@ rn_java_annotation_processor(
rn_java_library(
name = "processing-lib",
srcs = glob(["*.java"]),
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
source = "7",
target = "7",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -8,6 +9,7 @@ rn_android_library(
],
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = [
"supermodule:xplat/default/public.react_native.infra",
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_xplat_target", "rn_xplat_cxx_library")

rn_xplat_cxx_library(
Expand All @@ -13,6 +14,7 @@ rn_xplat_cxx_library(
fbandroid_labels = [
"supermodule:xplat/default/public.react_native.infra",
],
feature = ReactNative_CommonInfrastructurePlaceholde,
platforms = ANDROID,
preprocessor_flags = [
"-DLOG_TAG=\"ReactNative\"",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/shell/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "shell",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/surface/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "surface",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/touch/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "touch",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -9,6 +10,7 @@ rn_android_library(
exclude = ["CallInvokerHolderImpl.java"],
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
required_for_source_only_abi = True,
visibility = [
Expand Down Expand Up @@ -41,6 +43,7 @@ rn_android_library(
name = "callinvokerholder",
srcs = ["CallInvokerHolderImpl.java"],
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
required_for_source_only_abi = True,
visibility = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
Expand All @@ -6,6 +7,7 @@ rn_android_library(
["*.java"],
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
required_for_source_only_abi = True,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_shared_library_target", "react_native_xplat_target", "rn_xplat_cxx_library")

rn_xplat_cxx_library(
Expand All @@ -12,6 +13,7 @@ rn_xplat_cxx_library(
"ReactCommon/TurboModuleManagerDelegate.h": "ReactCommon/TurboModuleManagerDelegate.h",
},
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [
Expand Down Expand Up @@ -47,6 +49,7 @@ rn_xplat_cxx_library(
fbandroid_deps = [
FBJNI_TARGET,
],
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preferred_linkage = "static",
Expand Down
4 changes: 4 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library")

INTERFACES_FILES = [
Expand All @@ -13,6 +14,7 @@ rn_android_library(
name = "interfaces",
srcs = glob(INTERFACES_FILES),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down Expand Up @@ -46,6 +48,7 @@ rn_android_library(
exported_provided_deps = [
react_native_dep("third-party/android/androidx:annotation"),
],
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down Expand Up @@ -94,6 +97,7 @@ rn_android_library(
"DisplayMetricsHolder.java",
],
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "annotations",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
required_for_source_only_abi = True,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "common",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob")

rn_xplat_cxx_library(
Expand All @@ -12,6 +13,7 @@ rn_xplat_cxx_library(
prefix = "react/uimanager/jni",
),
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "util",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/util/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "util",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "common",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down

0 comments on commit 64b7ac5

Please sign in to comment.