From 8eddec9ff413534aae8b9cb8b61a03d098eec238 Mon Sep 17 00:00:00 2001 From: CodemodService Bot <> Date: Mon, 28 Mar 2022 13:05:14 -0700 Subject: [PATCH] Annotate targets with feature xplat/js/react-native-github/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK -> xplat/js/react-native-github/ReactCommon/callinvoker/BUCK Reviewed By: jkeljo Differential Revision: D35178416 fbshipit-source-id: 17e4228f6792048edd2e927ed7a3447a977a1183 --- .../src/main/java/com/facebook/react/views/drawer/BUCK | 2 ++ ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK | 3 +++ .../src/main/java/com/facebook/react/views/imagehelper/BUCK | 3 +++ ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/progressbar/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/scroll/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/slider/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/swiperefresh/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/switchview/BUCK | 2 ++ ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK | 2 ++ .../main/java/com/facebook/react/views/text/frescosupport/BUCK | 2 ++ .../src/main/java/com/facebook/react/views/textinput/BUCK | 2 ++ .../main/java/com/facebook/react/views/unimplementedview/BUCK | 2 ++ ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK | 2 ++ ReactAndroid/src/main/jni/react/jni/BUCK | 2 ++ ReactCommon/butter/BUCK | 2 ++ ReactCommon/callinvoker/BUCK | 2 ++ 17 files changed, 36 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK index a921e7eedcb..b789281cc5e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK @@ -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_root_target", "react_native_target", "rn_android_library") rn_android_library( name = "drawer", 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/views/image/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK index 40f0d2f5592..ecafdec432c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/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") IMAGE_EVENT_FILES = [ @@ -8,6 +9,7 @@ rn_android_library( name = "imageevents", srcs = IMAGE_EVENT_FILES, autoglob = False, + feature = ReactNative_CommonInfrastructurePlaceholde, is_androidx = True, labels = ["supermodule:xplat/default/public.react_native.infra"], provided_deps = [ @@ -33,6 +35,7 @@ rn_android_library( exclude = IMAGE_EVENT_FILES, ), 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/views/imagehelper/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK index 3776c3389f8..e15738346e9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/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", "rn_android_library") rn_android_library( @@ -7,6 +8,7 @@ rn_android_library( exclude = ["MultiSourceHelper.java"], ), autoglob = False, + feature = ReactNative_CommonInfrastructurePlaceholde, is_androidx = True, labels = ["supermodule:xplat/default/public.react_native.infra"], visibility = [ @@ -23,6 +25,7 @@ rn_android_library( name = "withmultisource", srcs = ["MultiSourceHelper.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/views/modal/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK index 3eb01b3a51d..be6bc1500e6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK @@ -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_root_target", "react_native_target", "rn_android_library") rn_android_library( name = "modal", 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/views/progressbar/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK index ca914a3c796..c2b00179ff6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK @@ -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_root_target", "react_native_target", "rn_android_library") rn_android_library( name = "progressbar", srcs = glob(["*.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/views/scroll/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK index 4cfccd38148..922ad2f7f93 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK @@ -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 = "scroll", 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/views/slider/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK index 46109dc64b3..7885491e170 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK @@ -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_root_target", "react_native_target", "rn_android_library") rn_android_library( name = "slider", srcs = glob(["*.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/views/swiperefresh/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK index 73fe27d801b..395fbe35741 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/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 = "swiperefresh", 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/views/switchview/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK index 6042b28c9bb..834da8d599e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK @@ -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_root_target", "react_native_target", "rn_android_library") rn_android_library( name = "switchview", 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/views/text/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK index cf4fbdd8970..4d08db34a28 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK @@ -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 = "text", 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, diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK index 38985bbf96b..1c3782c0019 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK @@ -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 = "frescosupport", srcs = glob(["*.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/views/textinput/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK index b8de4f2fe89..899358d583a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK @@ -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 = "textinput", 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, diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK index 62b23d28001..bf0899dc2e0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/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 = "unimplementedview", 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/views/view/BUCK b/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK index b8cf424594b..f7112bacc3f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/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( @@ -7,6 +8,7 @@ rn_android_library( "*.kt", ]), autoglob = False, + feature = ReactNative_CommonInfrastructurePlaceholde, is_androidx = True, labels = ["supermodule:xplat/default/public.react_native.infra"], language = "KOTLIN", diff --git a/ReactAndroid/src/main/jni/react/jni/BUCK b/ReactAndroid/src/main/jni/react/jni/BUCK index c2a91196bb2..f7446e53c10 100644 --- a/ReactAndroid/src/main/jni/react/jni/BUCK +++ b/ReactAndroid/src/main/jni/react/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", "IS_OSS_BUILD", "react_native_target", "react_native_xplat_dep", "react_native_xplat_target", "rn_xplat_cxx_library") EXPORTED_HEADERS = [ @@ -41,6 +42,7 @@ rn_xplat_cxx_library( compiler_flags_enable_exceptions = True, compiler_flags_enable_rtti = True, # dynamic_cast used within ReadableNative* fbandroid_allow_jni_merging = True, + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.infra"], platforms = ANDROID, preprocessor_flags = [ diff --git a/ReactCommon/butter/BUCK b/ReactCommon/butter/BUCK index fa584cee8eb..7b63ab83128 100644 --- a/ReactCommon/butter/BUCK +++ b/ReactCommon/butter/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -31,6 +32,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/callinvoker/BUCK b/ReactCommon/callinvoker/BUCK index d6ff5cdb39a..d2c71c210a1 100644 --- a/ReactCommon/callinvoker/BUCK +++ b/ReactCommon/callinvoker/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "rn_xplat_cxx_library", "subdir_glob") rn_xplat_cxx_library( @@ -10,6 +11,7 @@ rn_xplat_cxx_library( ], prefix = "ReactCommon", ), + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.infra"], platforms = (ANDROID, APPLE, CXX), preferred_linkage = "static",