Annotate targets with feature xplat/js/react-native-github/Libraries/RCTRequired/BUCK -> xplat/js/react-native-github/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK

Reviewed By: jkeljo

Differential Revision: D35178374

fbshipit-source-id: be4ad27928a1b9260a9d6321c9705b30aebe04d6
This commit is contained in:
CodemodService Bot 2022-03-28 13:11:16 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 64b7ac5959
Коммит b6e72c5922
17 изменённых файлов: 37 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "fb_apple_library")
fb_apple_library(
@ -9,6 +10,7 @@ fb_apple_library(
complete_nullability = True,
contacts = ["oncall+react_native@xmail.facebook.com"],
extension_api_only = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
frameworks = ["Foundation"],
labels = ["supermodule:xplat/default/public.react_native.infra"],
)

Просмотреть файл

@ -4,6 +4,7 @@ load(
"@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl",
"react_module_plugin_providers",
)
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
rn_apple_library(
name = "CoreModulesApple",
@ -30,6 +31,7 @@ rn_apple_library(
],
exported_preprocessor_flags = rn_extra_build_flags(),
extension_api_only = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
frameworks = [
"Foundation",
"UIKit",

Просмотреть файл

@ -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 = "network",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",

Просмотреть файл

@ -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 = "holder",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",

Просмотреть файл

@ -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 = "tags",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",

Просмотреть файл

@ -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_dep", "react_native_target", "react_native_xplat_dep", "rn_android_library", "rn_xplat_cxx_library")
rn_android_library(
@ -13,6 +14,7 @@ rn_android_library(
name = "hermes_samplingprofiler",
srcs = ["HermesSamplingProfiler.java"],
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = ["PUBLIC"],
deps = [
@ -34,6 +36,7 @@ rn_xplat_cxx_library(
compiler_flags_enable_exceptions = True, # TODO: is this necessary?
compiler_flags_enable_rtti = True, # TODO: is this necessary?
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
soname = "libjsijniprofiler.$(ext)",

Просмотреть файл

@ -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 = "react",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [

Просмотреть файл

@ -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_root_target", "react_native_target", "rn_android_library")
rn_android_library(
@ -6,6 +7,7 @@ rn_android_library(
"*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [

Просмотреть файл

@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "IS_OSS_BUILD", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_android_library")
INTERFACES = [
@ -21,6 +22,7 @@ rn_android_library(
exclude = INTERFACES,
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
proguard_config = "reactnative.pro",
@ -67,6 +69,7 @@ rn_android_library(
name = "interfaces",
srcs = glob(INTERFACES),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
proguard_config = "reactnative.pro",

Просмотреть файл

@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "HERMES_BYTECODE_VERSION", "react_native_dep", "rn_android_build_config", "rn_android_library")
SUB_PROJECTS = [
@ -12,6 +13,7 @@ rn_android_library(
exclude = SUB_PROJECTS,
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [

Просмотреть файл

@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "FBJNI_TARGET", "react_native_dep", "react_native_target", "rn_android_library")
rn_android_library(
@ -6,6 +7,7 @@ rn_android_library(
"*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [],

Просмотреть файл

@ -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", "subdir_glob")
rn_xplat_cxx_library(
@ -12,6 +13,7 @@ rn_xplat_cxx_library(
prefix = "react/common/mapbuffer",
),
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [

Просмотреть файл

@ -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 = "network",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",

Просмотреть файл

@ -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 = "config",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",

Просмотреть файл

@ -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_root_target", "react_native_target", "rn_android_library")
rn_android_library(
name = "devsupport",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
manifest = "AndroidManifest.xml",
@ -48,6 +50,7 @@ rn_android_library(
name = "interfaces",
srcs = glob(["interfaces/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [

Просмотреть файл

@ -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")
rn_android_library(
@ -9,6 +10,7 @@ rn_android_library(
"mounting/**/*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [

Просмотреть файл

@ -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(
@ -12,6 +13,7 @@ rn_xplat_cxx_library(
prefix = "react/fabric",
),
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [