diff --git a/Libraries/RCTRequired/BUCK b/Libraries/RCTRequired/BUCK index 53eb8a475d3..532e121b322 100644 --- a/Libraries/RCTRequired/BUCK +++ b/Libraries/RCTRequired/BUCK @@ -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"], ) diff --git a/React/CoreModules/BUCK b/React/CoreModules/BUCK index 130dd99cf73..0181ff05260 100644 --- a/React/CoreModules/BUCK +++ b/React/CoreModules/BUCK @@ -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", diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK index d8e68b3f29a..6bd91134499 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK b/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK index 13c5da59066..60df0ed2e9e 100644 --- a/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK b/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK index 2133f0f6b99..782a0a82acd 100644 --- a/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK b/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK index 239cf64ce75..4ee57780677 100644 --- a/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK @@ -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)", diff --git a/ReactAndroid/src/main/java/com/facebook/react/BUCK b/ReactAndroid/src/main/java/com/facebook/react/BUCK index a32feeb61c9..0b00581691f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK b/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK index 4bb711211fc..481e812fe88 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK b/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK index 0f54a3c0b0b..d04f84eaa19 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/BUCK b/ReactAndroid/src/main/java/com/facebook/react/common/BUCK index 710a6095cb2..99da97e928c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/common/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK b/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK index a552d6027fe..77861aff8d5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK @@ -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 = [], diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK b/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK index c2ac7a7ffbc..3148e88bec1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK b/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK index 2eca2adf3f7..c580b47c159 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/react/config/BUCK b/ReactAndroid/src/main/java/com/facebook/react/config/BUCK index f5ea5a7dd80..f811aec3505 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/config/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/config/BUCK @@ -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", diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK index f47c5129460..e9441d5f36b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK index df7dee67bd6..94bf566c563 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK @@ -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 = [ diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK b/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK index 6cfc6093e29..f57f4fc0b50 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK @@ -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 = [