diff --git a/BUCK b/BUCK deleted file mode 100644 index 03765d98a4d487..00000000000000 --- a/BUCK +++ /dev/null @@ -1,1511 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/apple:fb_apple_test.bzl", "fb_apple_test") -load("//tools/build_defs/apple:flag_defs.bzl", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode", "get_static_library_ios_flags") -load("//tools/build_defs/apple/plugins:plugin_defs.bzl", "plugin") -load("//tools/build_defs/oss:metro_defs.bzl", "rn_library") -load( - "//tools/build_defs/oss:rn_codegen_defs.bzl", - "rn_codegen", - "rn_codegen_components", -) -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "IOS", - "RCT_IMAGE_DATA_DECODER_SOCKET", - "RCT_IMAGE_URL_LOADER_SOCKET", - "RCT_URL_REQUEST_HANDLER_SOCKET", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_react_native_ios_target_sdk_version", - "react_cxx_module_plugin_provider", - "react_fabric_component_plugin_provider", - "react_module_plugin_providers", - "react_native_root_target", - "react_native_xplat_dep", - "react_native_xplat_target", - "rn_apple_library", - "rn_apple_xplat_cxx_library", - "rn_extra_build_flags", - "rn_xplat_cxx_library", - "subdir_glob", -) -load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -RCTCXXBRIDGE_PUBLIC_HEADERS = { - "React/" + x: "packages/react-native/React/CxxBridge/" + x - for x in [ - "JSCExecutorFactory.h", - "NSDataBigString.h", - "RCTCxxBridgeDelegate.h", - "RCTJSIExecutorRuntimeInstaller.h", - "RCTMessageThread.h", - ] -} - -fb_native.genrule( - name = "codegen_rn_components_schema_rncore", - srcs = glob( - [ - "packages/**/*NativeComponent.js", - ], - exclude = [ - "**/__*__/**", - - # Subfolders with their own BUCK files, referenced below - "packages/rn-tester/**", - ], - ) + [ - react_native_root_target("packages/rn-tester:nativecomponent-srcs"), - ], - out = "schema-rncore.json", - cmd = "$(exe {}) $OUT $SRCS".format(react_native_root_target("packages/react-native-codegen:write_to_json")), - labels = ["uses_hg"], -) - -rn_codegen_components( - name = "rncore", - schema_target = ":codegen_rn_components_schema_rncore", -) - -rn_apple_xplat_cxx_library( - name = "RCTCxxBridge", - srcs = glob([ - "packages/react-native/React/CxxBridge/*.mm", - ]), - headers = subdir_glob( - [ - ( - "packages/react-native/React/CxxBridge", - "*.h", - ), - ], - exclude = RCTCXXBRIDGE_PUBLIC_HEADERS.values(), - prefix = "React", - ), - header_namespace = "", - exported_headers = RCTCXXBRIDGE_PUBLIC_HEADERS, - compiler_flags = [ - "-fobjc-arc-exceptions", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - exported_preprocessor_flags = rn_extra_build_flags(), - fbobjc_enable_exceptions = True, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - # Used via objc_lookupClass in RCTBridge. Semantics are meant to be "if - # it's linked in your app, transparently use it". - labels = [ - "depslint_never_remove", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + [ - "-DWITH_FBSYSTRACE=1", - "-DRCT_USE_HERMES=0", # This is the default. - ], - visibility = ["PUBLIC"], - deps = [ - ":RCTCxxModule", - ":RCTCxxUtils", - ":ReactInternal", - "//fbobjc/Libraries/FBReactKit:RCTFBSystrace", - react_native_root_target("packages/react-native/React/CoreModules:CoreModules"), - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("cxxreact:jsbigstring"), - react_native_xplat_target("jsc:JSCRuntime"), - react_native_xplat_target("jsiexecutor:jsiexecutor"), - react_native_xplat_target("reactperflogger:reactperflogger"), - ], -) - -RCTCXXMODULE_PUBLIC_HEADERS = { - "React/" + x: "packages/react-native/React/CxxModule/" + x - for x in [ - "RCTCxxMethod.h", - "RCTCxxModule.h", - "RCTCxxUtils.h", - ] -} - -rn_apple_xplat_cxx_library( - name = "RCTCxxModule", - srcs = glob([ - "packages/react-native/React/CxxModule/*.mm", - ]), - headers = subdir_glob( - [ - ( - "packages/react-native/React/CxxModule", - "*.h", - ), - ], - exclude = RCTCXXMODULE_PUBLIC_HEADERS.values(), - prefix = "React", - ), - header_namespace = "", - exported_headers = RCTCXXMODULE_PUBLIC_HEADERS, - compiler_flags = [ - "-fobjc-arc-exceptions", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbobjc_enable_exceptions = True, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + ["-DWITH_FBSYSTRACE=1"], - visibility = ["PUBLIC"], - deps = [ - ":RCTCxxUtils", - ":ReactInternal", - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_target("cxxreact:module"), - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("reactperflogger:reactperflogger"), - react_native_xplat_dep("jsi:jsi"), - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTCxxUtils", - srcs = glob([ - "packages/react-native/React/CxxUtils/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/React/CxxUtils", - "*.h", - ), - ], - exclude = RCTCXXMODULE_PUBLIC_HEADERS.values(), - prefix = "React", - ), - apple_sdks = (IOS,), - contacts = ["oncall+react_native@xmail.facebook.com"], - fbobjc_enable_exceptions = True, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - "//xplat/folly:dynamic", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTCxxLogUtils", - srcs = glob([ - "packages/react-native/React/CxxLogUtils/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/React/CxxLogUtils", - "*.h", - ), - ], - prefix = "React", - ), - contacts = ["oncall+react_native@xmail.facebook.com"], - fbobjc_enable_exceptions = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:ReactInternal", - react_native_xplat_target("logger:logger"), - ], -) - -RCTLIB_PATH = "packages/react-native/Libraries/" - -RCTBASE_PATH = "packages/react-native/React/Base/" - -RCTDEVSUPPORT_PATH = "packages/react-native/React/DevSupport/" - -RCTMODULES_PATH = "packages/react-native/React/Modules/" - -RCTVIEWS_PATH = "packages/react-native/React/Views/" - -REACT_PUBLIC_HEADERS = { - "React/RCTAnimationType.h": RCTVIEWS_PATH + "RCTAnimationType.h", - "React/RCTAssert.h": RCTBASE_PATH + "RCTAssert.h", - "React/RCTAutoInsetsProtocol.h": RCTVIEWS_PATH + "RCTAutoInsetsProtocol.h", - "React/RCTBorderCurve.h": RCTVIEWS_PATH + "RCTBorderCurve.h", - "React/RCTBorderDrawing.h": RCTVIEWS_PATH + "RCTBorderDrawing.h", - "React/RCTBorderStyle.h": RCTVIEWS_PATH + "RCTBorderStyle.h", - "React/RCTBridge+Private.h": RCTBASE_PATH + "RCTBridge+Private.h", - "React/RCTBridge.h": RCTBASE_PATH + "RCTBridge.h", - "React/RCTBridgeConstants.h": RCTBASE_PATH + "RCTBridgeConstants.h", - "React/RCTBridgeDelegate.h": RCTBASE_PATH + "RCTBridgeDelegate.h", - "React/RCTBridgeMethod.h": RCTBASE_PATH + "RCTBridgeMethod.h", - "React/RCTBridgeModule.h": RCTBASE_PATH + "RCTBridgeModule.h", - "React/RCTBridgeModuleDecorator.h": RCTBASE_PATH + "RCTBridgeModuleDecorator.h", - "React/RCTBundleManager.h": RCTBASE_PATH + "RCTBundleManager.h", - "React/RCTBundleURLProvider.h": RCTBASE_PATH + "RCTBundleURLProvider.h", - "React/RCTComponent.h": RCTVIEWS_PATH + "RCTComponent.h", - "React/RCTComponentData.h": RCTVIEWS_PATH + "RCTComponentData.h", - "React/RCTComponentEvent.h": RCTBASE_PATH + "RCTComponentEvent.h", - "React/RCTConstants.h": RCTBASE_PATH + "RCTConstants.h", - "React/RCTConvert.h": RCTBASE_PATH + "RCTConvert.h", - "React/RCTCxxConvert.h": RCTBASE_PATH + "RCTCxxConvert.h", - "React/RCTDefines.h": RCTBASE_PATH + "RCTDefines.h", - "React/RCTDevLoadingViewProtocol.h": RCTDEVSUPPORT_PATH + "RCTDevLoadingViewProtocol.h", - "React/RCTDevLoadingViewSetEnabled.h": RCTDEVSUPPORT_PATH + "RCTDevLoadingViewSetEnabled.h", - "React/RCTDisplayLink.h": RCTBASE_PATH + "RCTDisplayLink.h", - "React/RCTDynamicTypeRamp.h": RCTLIB_PATH + "Text/Text/RCTDynamicTypeRamp.h", - "React/RCTErrorCustomizer.h": RCTBASE_PATH + "RCTErrorCustomizer.h", - "React/RCTErrorInfo.h": RCTBASE_PATH + "RCTErrorInfo.h", - # NOTE: RCTEventDispatcher.h is exported from CoreModules:CoreModulesApple - "React/RCTEventDispatcherProtocol.h": RCTBASE_PATH + "RCTEventDispatcherProtocol.h", - "React/RCTEventEmitter.h": RCTMODULES_PATH + "RCTEventEmitter.h", - "React/RCTFont.h": RCTVIEWS_PATH + "RCTFont.h", - "React/RCTFrameUpdate.h": RCTBASE_PATH + "RCTFrameUpdate.h", - "React/RCTI18nUtil.h": RCTMODULES_PATH + "RCTI18nUtil.h", - "React/RCTImageSource.h": RCTBASE_PATH + "RCTImageSource.h", - "React/RCTInitializing.h": RCTBASE_PATH + "RCTInitializing.h", - "React/RCTInspector.h": "packages/react-native/React/Inspector/RCTInspector.h", - "React/RCTInspectorDevServerHelper.h": RCTDEVSUPPORT_PATH + "RCTInspectorDevServerHelper.h", - "React/RCTInspectorPackagerConnection.h": "packages/react-native/React/Inspector/RCTInspectorPackagerConnection.h", - "React/RCTInvalidating.h": RCTBASE_PATH + "RCTInvalidating.h", - "React/RCTJSScriptLoaderModule.h": RCTBASE_PATH + "RCTJSScriptLoaderModule.h", - "React/RCTJSStackFrame.h": RCTBASE_PATH + "RCTJSStackFrame.h", - "React/RCTJSThread.h": RCTBASE_PATH + "RCTJSThread.h", - "React/RCTJavaScriptExecutor.h": RCTBASE_PATH + "RCTJavaScriptExecutor.h", - "React/RCTJavaScriptLoader.h": RCTBASE_PATH + "RCTJavaScriptLoader.h", - "React/RCTKeyCommands.h": RCTBASE_PATH + "RCTKeyCommands.h", - "React/RCTLayout.h": RCTVIEWS_PATH + "RCTLayout.h", - "React/RCTLayoutAnimation.h": RCTMODULES_PATH + "RCTLayoutAnimation.h", - "React/RCTLayoutAnimationGroup.h": RCTMODULES_PATH + "RCTLayoutAnimationGroup.h", - "React/RCTLog.h": RCTBASE_PATH + "RCTLog.h", - "React/RCTManagedPointer.h": RCTBASE_PATH + "RCTManagedPointer.h", - "React/RCTMockDef.h": RCTBASE_PATH + "RCTMockDef.h", - "React/RCTModalHostViewController.h": RCTVIEWS_PATH + "RCTModalHostViewController.h", - "React/RCTModalHostViewManager.h": RCTVIEWS_PATH + "RCTModalHostViewManager.h", - "React/RCTModalManager.h": RCTVIEWS_PATH + "RCTModalManager.h", - "React/RCTModuleData.h": RCTBASE_PATH + "RCTModuleData.h", - "React/RCTModuleMethod.h": RCTBASE_PATH + "RCTModuleMethod.h", - "React/RCTMultipartStreamReader.h": RCTBASE_PATH + "RCTMultipartStreamReader.h", - "React/RCTNullability.h": RCTBASE_PATH + "RCTNullability.h", - "React/RCTPLTag.h": RCTBASE_PATH + "RCTPLTag.h", - "React/RCTPackagerClient.h": RCTDEVSUPPORT_PATH + "RCTPackagerClient.h", - "React/RCTPackagerConnection.h": RCTDEVSUPPORT_PATH + "RCTPackagerConnection.h", - "React/RCTPerformanceLogger.h": RCTBASE_PATH + "RCTPerformanceLogger.h", - "React/RCTPerformanceLoggerLabels.h": RCTBASE_PATH + "RCTPerformanceLoggerLabels.h", - "React/RCTPointerEvents.h": RCTVIEWS_PATH + "RCTPointerEvents.h", - "React/RCTProfile.h": "packages/react-native/React/Profiler/RCTProfile.h", - "React/RCTPushNotificationManager.h": RCTLIB_PATH + "PushNotificationIOS/RCTPushNotificationManager.h", - "React/RCTReconnectingWebSocket.h": RCTLIB_PATH + "WebSocket/RCTReconnectingWebSocket.h", - "React/RCTRedBoxExtraDataViewController.h": RCTMODULES_PATH + "RCTRedBoxExtraDataViewController.h", - "React/RCTRedBoxSetEnabled.h": RCTBASE_PATH + "RCTRedBoxSetEnabled.h", - "React/RCTRefreshableProtocol.h": RCTVIEWS_PATH + "RefreshControl/RCTRefreshableProtocol.h", - "React/RCTReloadCommand.h": RCTBASE_PATH + "RCTReloadCommand.h", - "React/RCTRootContentView.h": RCTBASE_PATH + "RCTRootContentView.h", - "React/RCTRootShadowView.h": RCTVIEWS_PATH + "RCTRootShadowView.h", - "React/RCTRootView.h": RCTBASE_PATH + "RCTRootView.h", - "React/RCTRootViewDelegate.h": RCTBASE_PATH + "RCTRootViewDelegate.h", - "React/RCTScrollEvent.h": RCTVIEWS_PATH + "ScrollView/RCTScrollEvent.h", - "React/RCTScrollView.h": RCTVIEWS_PATH + "ScrollView/RCTScrollView.h", - "React/RCTScrollableProtocol.h": RCTVIEWS_PATH + "ScrollView/RCTScrollableProtocol.h", - "React/RCTShadowView+Layout.h": RCTVIEWS_PATH + "RCTShadowView+Layout.h", - "React/RCTShadowView.h": RCTVIEWS_PATH + "RCTShadowView.h", - "React/RCTSurface.h": RCTBASE_PATH + "Surface/RCTSurface.h", - "React/RCTSurfaceDelegate.h": RCTBASE_PATH + "Surface/RCTSurfaceDelegate.h", - "React/RCTSurfaceHostingProxyRootView.h": RCTBASE_PATH + "Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h", - "React/RCTSurfaceHostingView.h": RCTBASE_PATH + "Surface/SurfaceHostingView/RCTSurfaceHostingView.h", - "React/RCTSurfacePresenterStub.h": RCTMODULES_PATH + "RCTSurfacePresenterStub.h", - "React/RCTSurfaceProtocol.h": RCTBASE_PATH + "Surface/RCTSurfaceProtocol.h", - "React/RCTSurfaceRootShadowView.h": RCTBASE_PATH + "Surface/RCTSurfaceRootShadowView.h", - "React/RCTSurfaceRootShadowViewDelegate.h": RCTBASE_PATH + "Surface/RCTSurfaceRootShadowViewDelegate.h", - "React/RCTSurfaceRootView.h": RCTBASE_PATH + "Surface/RCTSurfaceRootView.h", - "React/RCTSurfaceSizeMeasureMode.h": RCTBASE_PATH + "Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h", - "React/RCTSurfaceStage.h": RCTBASE_PATH + "Surface/RCTSurfaceStage.h", - "React/RCTSurfaceView+Internal.h": RCTBASE_PATH + "Surface/RCTSurfaceView+Internal.h", - "React/RCTSurfaceView.h": RCTBASE_PATH + "Surface/RCTSurfaceView.h", - "React/RCTTextDecorationLineType.h": RCTVIEWS_PATH + "RCTTextDecorationLineType.h", - "React/RCTTouchHandler.h": RCTBASE_PATH + "RCTTouchHandler.h", - "React/RCTTurboModuleRegistry.h": RCTBASE_PATH + "RCTTurboModuleRegistry.h", - "React/RCTUIManager.h": RCTMODULES_PATH + "RCTUIManager.h", - "React/RCTUIManagerObserverCoordinator.h": RCTMODULES_PATH + "RCTUIManagerObserverCoordinator.h", - "React/RCTUIManagerUtils.h": RCTMODULES_PATH + "RCTUIManagerUtils.h", - "React/RCTUIUtils.h": "packages/react-native/React/UIUtils/RCTUIUtils.h", - "React/RCTURLRequestDelegate.h": RCTBASE_PATH + "RCTURLRequestDelegate.h", - "React/RCTURLRequestHandler.h": RCTBASE_PATH + "RCTURLRequestHandler.h", - "React/RCTUtils.h": RCTBASE_PATH + "RCTUtils.h", - "React/RCTUtilsUIOverride.h": RCTBASE_PATH + "RCTUtilsUIOverride.h", - "React/RCTVersion.h": RCTBASE_PATH + "RCTVersion.h", - "React/RCTView.h": RCTVIEWS_PATH + "RCTView.h", - "React/RCTViewManager.h": RCTVIEWS_PATH + "RCTViewManager.h", - "React/RCTViewUtils.h": RCTVIEWS_PATH + "RCTViewUtils.h", - "React/RCTWrapperViewController.h": RCTVIEWS_PATH + "RCTWrapperViewController.h", - "React/UIView+React.h": RCTVIEWS_PATH + "UIView+React.h", -} - -REACT_COMPONENTVIEWS_BASE_FILES = [ - "packages/react-native/React/Fabric/Mounting/ComponentViews/Image/*.mm", - "packages/react-native/React/Fabric/RCTImageResponseObserverProxy.mm", - "packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm", -] - -rn_apple_xplat_cxx_library( - name = "ReactInternal", - srcs = glob( - [ - "packages/react-native/React/Base/**/*.m", - "packages/react-native/React/Base/**/*.mm", - "packages/react-native/React/DevSupport/**/*.m", - "packages/react-native/React/DevSupport/**/*.mm", - "packages/react-native/React/Inspector/**/*.m", - "packages/react-native/React/Inspector/**/*.mm", - "packages/react-native/React/Modules/**/*.m", - "packages/react-native/React/Modules/**/*.mm", - "packages/react-native/React/Profiler/**/*.m", - "packages/react-native/React/Profiler/**/*.mm", - "packages/react-native/React/Profiler/**/*.S", - "packages/react-native/React/UIUtils/*.m", - "packages/react-native/React/Views/**/*.m", - "packages/react-native/React/Views/**/*.mm", - "packages/react-native/Libraries/ActionSheetIOS/*.m", - "packages/react-native/Libraries/WebSocket/*.m", - ], - ), - headers = glob( - [ - "packages/react-native/React/Base/**/*.h", - "packages/react-native/React/DevSupport/**/*.h", - "packages/react-native/React/Inspector/**/*.h", - "packages/react-native/React/Modules/**/*.h", - "packages/react-native/React/Profiler/**/*.h", - "packages/react-native/React/Views/**/*.h", - "packages/react-native/React/UIUtils/**/*.h", - "packages/react-native/Libraries/ActionSheetIOS/*.h", - "packages/react-native/Libraries/WebSocket/*.h", - ], - ), - header_namespace = "", - exported_headers = REACT_PUBLIC_HEADERS, - compiler_flags = [ - "-Wno-error=unguarded-availability-new", - "-Wno-unknown-warning-option", - "-Wno-global-constructors", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - exported_preprocessor_flags = rn_extra_build_flags(), - fbobjc_enable_exceptions = True, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/CFNetwork.framework", - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - "$SDKROOT/System/Library/Frameworks/CoreLocation.framework", - "$SDKROOT/System/Library/Frameworks/CoreText.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/MapKit.framework", - "$SDKROOT/System/Library/Frameworks/QuartzCore.framework", - "$SDKROOT/System/Library/Frameworks/Security.framework", - "$SDKROOT/System/Library/Frameworks/SystemConfiguration.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - "$SDKROOT/System/Library/Frameworks/UserNotifications.framework", - "$SDKROOT/System/Library/Frameworks/WebKit.framework", - ], - labels = [ - "depslint_never_add", - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platform_preprocessor_flags = [( - "linux", - ["-D PIC_MODIFIER=@PLT"], - )], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags(), - visibility = [ - "//fbobjc/Apps/Internal/SparkLabs/...", - "//fbobjc/Apps/Internal/Venice/...", - "//fbobjc/Apps/Wilde/FBMarketplaceModule/...", - "//fbobjc/Apps/Wilde/FBReactModule2/...", - "//fbobjc/Libraries/FBQPLMetadataProviders/...", - "//fbobjc/Libraries/FBReactKit/...", - "//fbobjc/Libraries/FBiOSSecurityUtils/...", - "//fbobjc/Libraries/RCTPrerendering/...", - "//fbobjc/VendorLib/react-native-maps:react-native-maps", - "//xplat/js:", - "//xplat/js/react-native-github/packages/react-native/React/...", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/nativemodule/core:", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/nativemodule/samples:", - "//xplat/js/react-native-github/packages/rn-tester:", - "//xplat/rtc/manul/...", - ], - deps = [ - YOGA_CXX_TARGET, - "//fbobjc/VendorLib/SocketRocket:SocketRocket", - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("reactperflogger:reactperflogger"), - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTFabric", - srcs = glob( - [ - "packages/react-native/React/Fabric/**/*.cpp", - "packages/react-native/React/Fabric/**/*.m", - "packages/react-native/React/Fabric/**/*.mm", - ], - exclude = glob(REACT_COMPONENTVIEWS_BASE_FILES), - ), - headers = glob( - [ - "packages/react-native/React/Fabric/**/*.h", - ], - ), - header_namespace = "", - exported_headers = { - "React/RCTComponentViewDescriptor.h": "packages/react-native/React/Fabric/Mounting/RCTComponentViewDescriptor.h", - "React/RCTComponentViewFactory.h": "packages/react-native/React/Fabric/Mounting/RCTComponentViewFactory.h", - "React/RCTComponentViewRegistry.h": "packages/react-native/React/Fabric/Mounting/RCTComponentViewRegistry.h", - "React/RCTFabricSurface.h": "packages/react-native/React/Fabric/Surface/RCTFabricSurface.h", - "React/RCTFabricSurfaceHostingProxyRootView.h": "packages/react-native/React/Fabric/Surface/RCTFabricSurfaceHostingProxyRootView.h", - "React/RCTGenericDelegateSplitter.h": "packages/react-native/React/Fabric/Utils/RCTGenericDelegateSplitter.h", - "React/RCTLegacyViewManagerInteropComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h", - "React/RCTLocalizationProvider.h": "packages/react-native/React/Fabric/RCTLocalizationProvider.h", - "React/RCTModalHostViewComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h", - "React/RCTMountingManager.h": "packages/react-native/React/Fabric/Mounting/RCTMountingManager.h", - "React/RCTMountingManagerDelegate.h": "packages/react-native/React/Fabric/Mounting/RCTMountingManagerDelegate.h", - "React/RCTMountingTransactionObserving.h": "packages/react-native/React/Fabric/Mounting/RCTMountingTransactionObserving.h", - "React/RCTParagraphComponentAccessibilityProvider.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h", - "React/RCTParagraphComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h", - "React/RCTPrimitives.h": "packages/react-native/React/Fabric/RCTPrimitives.h", - "React/RCTRootComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h", - "React/RCTScheduler.h": "packages/react-native/React/Fabric/RCTScheduler.h", - "React/RCTScrollViewComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h", - "React/RCTSurfacePresenter.h": "packages/react-native/React/Fabric/RCTSurfacePresenter.h", - "React/RCTSurfacePresenterBridgeAdapter.h": "packages/react-native/React/Fabric/RCTSurfacePresenterBridgeAdapter.h", - "React/RCTSurfaceRegistry.h": "packages/react-native/React/Fabric/RCTSurfaceRegistry.h", - "React/RCTSurfaceTouchHandler.h": "packages/react-native/React/Fabric/RCTSurfaceTouchHandler.h", - }, - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbobjc_enable_exceptions = True, - fbobjc_target_sdk_version = get_react_native_ios_target_sdk_version(), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/QuartzCore.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - header_path_prefix = "React", - labels = [ - "disable_plugins_only_validation", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - plugins = [ - react_fabric_component_plugin_provider("SafeAreaView", "RCTSafeAreaViewCls"), - react_fabric_component_plugin_provider("ScrollView", "RCTScrollViewCls"), - react_fabric_component_plugin_provider("PullToRefreshView", "RCTPullToRefreshViewCls"), - react_fabric_component_plugin_provider("ActivityIndicatorView", "RCTActivityIndicatorViewCls"), - react_fabric_component_plugin_provider("Switch", "RCTSwitchCls"), - react_fabric_component_plugin_provider("UnimplementedNativeView", "RCTUnimplementedNativeViewCls"), - react_fabric_component_plugin_provider("Paragraph", "RCTParagraphCls"), - react_fabric_component_plugin_provider("TextInput", "RCTTextInputCls"), - react_fabric_component_plugin_provider("InputAccessoryView", "RCTInputAccessoryCls"), - react_fabric_component_plugin_provider("View", "RCTViewCls"), - ], - plugins_header = "FBRCTFabricComponentsPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + [ - "-DWITH_FBSYSTRACE=1", - "-DLOG_TAG=\"ReactNative\"", - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ] + rn_extra_build_flags(), - tests = [ - ":MountingTests", - ":TextTests", - ], - visibility = ["PUBLIC"], - deps = [ - ":RCTFabricComponentViewsBase", - "//fbobjc/Libraries/FBReactKit/RCTFabricComponent/RCTFabricComponentPlugin:RCTFabricComponentPlugin", - "//xplat/js/react-native-github:RCTCxxBridge", - "//xplat/js/react-native-github:RCTCxxLogUtils", - "//xplat/js/react-native-github:RCTCxxUtils", - "//xplat/js/react-native-github:RCTImage", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:RCTText", - "//xplat/js/react-native-github:ReactInternal", - react_native_xplat_target("react/renderer/attributedstring:attributedstring"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/componentregistry/native:native"), - react_native_xplat_target("react/renderer/textlayoutmanager:textlayoutmanager"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - YOGA_CXX_TARGET, - react_native_xplat_target("react/config:config"), - react_native_xplat_target("cxxreact:bridge"), - ], - exported_deps = [ - react_native_xplat_target("react/renderer/animations:animations"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/safeareaview:safeareaview"), - react_native_xplat_target("react/renderer/components/modal:modal"), - react_native_xplat_target("react/renderer/components/unimplementedview:unimplementedview"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/components/legacyviewmanagerinterop:legacyviewmanagerinterop"), - react_native_xplat_target("react/renderer/components/textinput/iostextinput:iostextinput"), - react_native_xplat_target("react/renderer/components/inputaccessory:inputaccessory"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/scheduler:scheduler"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) - -rn_apple_library( - name = "RCTTypeSafety", - srcs = glob([ - "packages/react-native/Libraries/TypeSafety/**/*.mm", - ]), - exported_headers = glob( - [ - "packages/react-native/Libraries/TypeSafety/**/*.h", - ], - ), - autoglob = False, - complete_nullability = True, - contacts = ["oncall+react_native@xmail.facebook.com"], - disable_infer_precompiled_header = True, - extension_api_only = True, - frameworks = [ - "Foundation", - ], - inherited_buck_flags = get_static_library_ios_flags(), - labels = [ - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - reexport_all_header_dependencies = True, - deps = [ - ":ReactInternalApple", - "//xplat/folly:optionalApple", - "//xplat/js/react-native-github/packages/react-native/Libraries/FBLazyVector:FBLazyVector", - ], -) - -yarn_workspace( - name = "yarn-workspace", - srcs = [ - "package.json", - ], - visibility = ["PUBLIC"], -) - -fb_apple_test( - name = "TextTestsApple", - srcs = ["packages/react-native/React/Tests/Text/RCTParagraphComponentViewTests.mm"], - frameworks = [ - "$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework", - ], - oncall = "react_native", - deps = [ - ":RCTFabricApple", - react_native_xplat_target("react/renderer/element:elementApple"), - "//xplat/js/react-native-github:RCTFabricComponentViewsBaseApple", - "//xplat/js/react-native-github:RCTTextApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/attributedstring:attributedstringApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/componentregistry:componentregistryApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop:legacyviewmanagerinteropApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/text:textApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/textinput/iostextinput:iostextinputApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/scheduler:schedulerApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/textlayoutmanager:textlayoutmanagerApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/runtimeexecutor:runtimeexecutorApple", - ], -) - -fb_apple_test( - name = "MountingTestsApple", - srcs = ["packages/react-native/React/Tests/Mounting/RCTComponentViewRegistryTests.mm"], - frameworks = [ - "$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework", - ], - oncall = "react_native", - deps = [ - ":ImageView", - ":RCTFabricApple", - "//xplat/js/react-native-github:RCTFabricComponentViewsBaseApple", - "//xplat/js/react-native-github:RCTTextApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/attributedstring:attributedstringApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/componentregistry:componentregistryApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop:legacyviewmanagerinteropApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/textinput/iostextinput:iostextinputApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/scheduler:schedulerApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/textlayoutmanager:textlayoutmanagerApple", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/runtimeexecutor:runtimeexecutorApple", - ], -) - -rn_apple_library( - name = "ImageView", - autoglob = False, - compiler_flags = ["-Wall"], - contacts = ["oncall+react_native@xmail.facebook.com"], - labels = [ - "disable_plugins_only_validation", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - plugins = [react_fabric_component_plugin_provider("Image", "RCTImageCls")], - visibility = ["PUBLIC"], - exported_deps = [ - ":RCTFabricComponentViewsBaseApple", - ], -) - -# Reduce the RCTFabric target by moving OSS RCTViewComponentViews here, so that -# eventually we can move all of React/Fabric/Mounting/ComponentViews/* here. -# Ideally, each component view gets its own target, and each target uses react_fabric_component_plugin_provider. -# For each component, an app can import the base component view, or an app-specific subclass. -# i.e. Apps depend on "ImageView" target for RCTImageComponentView.h, and "FBReactImageView" target for FBReactImageComponentView.h -rn_apple_xplat_cxx_library( - name = "RCTFabricComponentViewsBase", - srcs = glob(REACT_COMPONENTVIEWS_BASE_FILES), - header_namespace = "", - exported_headers = { - "React/RCTComponentViewProtocol.h": "packages/react-native/React/Fabric/Mounting/RCTComponentViewProtocol.h", - "React/RCTConversions.h": "packages/react-native/React/Fabric/RCTConversions.h", - "React/RCTImageComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.h", - "React/RCTImageResponseDelegate.h": "packages/react-native/React/Fabric/RCTImageResponseDelegate.h", - "React/RCTImageResponseObserverProxy.h": "packages/react-native/React/Fabric/RCTImageResponseObserverProxy.h", - "React/RCTTouchableComponentViewProtocol.h": "packages/react-native/React/Fabric/RCTTouchableComponentViewProtocol.h", - "React/RCTViewComponentView.h": "packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h", - "React/UIView+ComponentViewProtocol.h": "packages/react-native/React/Fabric/Mounting/UIView+ComponentViewProtocol.h", - }, - compiler_flags = ["-Wall"], - contacts = ["oncall+react_native@xmail.facebook.com"], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:RCTImage", - "//xplat/js/react-native-github:RCTLinking", - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - ], -) - -rn_library( - name = "react-native", - srcs = [ - "packages/react-native/package.json", - "packages/react-native/index.js", - ] + glob( - [ - "packages/react-native/Libraries/**/*.js", - "packages/react-native/Libraries/NewAppScreen/**/*.png", - "packages/react-native/Libraries/LogBox/**/*.png", - "packages/virtualized-lists/**/*.js", - "packages/virtualized-lists/**/*.json", - ], - exclude = [ - "**/__*__/**", - "**/gulpfile.js", - "packages/react-native/Libraries/Components/Switch/SwitchSchema.js", - "**/*._reactvr.js", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js:node_modules__abort_19controller", - "//xplat/js:node_modules__anser", - "//xplat/js:node_modules__base64_19js", - "//xplat/js:node_modules__deprecated_19react_19native_19prop_19types", - "//xplat/js:node_modules__event_19target_19shim", - "//xplat/js:node_modules__flow_19enums_19runtime", - "//xplat/js:node_modules__invariant", - "//xplat/js:node_modules__memoize_19one", - "//xplat/js:node_modules__nullthrows", - "//xplat/js:node_modules__pretty_19format", - "//xplat/js:node_modules__promise", - "//xplat/js:node_modules__react_19devtools_19core", - "//xplat/js:node_modules__react_19refresh", - "//xplat/js:node_modules__react_19shallow_19renderer", - "//xplat/js:node_modules__regenerator_19runtime", - "//xplat/js:node_modules__stacktrace_19parser", - "//xplat/js:node_modules__whatwg_19fetch", - "//xplat/js/RKJSModules/Libraries/Polyfills:Polyfills", - "//xplat/js/RKJSModules/Libraries/React:React", - "//xplat/js/RKJSModules/vendor/react:react", - "//xplat/js/RKJSModules/vendor/react-test-renderer:react-test-renderer", - "//xplat/js/RKJSModules/vendor/scheduler:scheduler", - "//xplat/js/react-native-github/packages/assets:assets", - "//xplat/js/react-native-github/packages/normalize-color:normalize-color", - "//xplat/js/react-native-github/packages/polyfills:polyfills", - "//xplat/js/tools/metro/packages/metro-runtime/src/modules:modules", - "//xplat/js/tools/metro/packages/metro-runtime/src/polyfills:polyfills", - ], -) - -rn_codegen( - name = "FBReactNativeSpec", - android_package_name = "com.facebook.fbreact.specs", - codegen_modules = True, - codegen_src_prefix = "packages/react-native/Libraries/", - ios_assume_nonnull = False, - library_labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - native_module_spec_name = "FBReactNativeSpec", -) - -# TODO: Merge this into FBReactNativeSpec -rn_codegen( - name = "FBReactNativeComponentSpec", - codegen_components = True, - codegen_src_prefix = "packages/react-native/Libraries/", - ios_assume_nonnull = False, - library_labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], -) - -rn_apple_library( - name = "RCTAnimationApple", - srcs = glob([ - "packages/react-native/Libraries/NativeAnimation/**/*.m", - "packages/react-native/Libraries/NativeAnimation/**/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/NativeAnimation/**/*.h", - ], - ), - header_namespace = "", - exported_headers = glob( - [ - "packages/react-native/Libraries/NativeAnimation/*.h", - "packages/react-native/Libraries/NativeAnimation/Drivers/*.h", - "packages/react-native/Libraries/NativeAnimation/Nodes/*.h", - ], - ), - autoglob = False, - frameworks = [ - "Foundation", - "QuartzCore", - "UIKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "extension_api_allow_unsafe_unavailable_usages", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - plugins = - react_module_plugin_providers( - name = "NativeAnimatedModule", - native_class_func = "RCTNativeAnimatedModuleCls", - ) + react_module_plugin_providers( - name = "NativeAnimatedTurboModule", - native_class_func = "RCTNativeAnimatedTurboModuleCls", - ), - plugins_header = "FBRCTAnimationPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) - -rn_apple_library( - name = "RCTBlobApple", - srcs = glob([ - "packages/react-native/Libraries/Blob/*.m", - "packages/react-native/Libraries/Blob/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/Blob/*.h", - ], - ), - exported_headers = glob( - [ - "packages/react-native/Libraries/Blob/*.h", - ], - ), - autoglob = False, - enable_exceptions = True, - frameworks = [ - "Foundation", - "UIKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - plugins = - react_module_plugin_providers( - name = "FileReaderModule", - native_class_func = "RCTFileReaderModuleCls", - ) + react_module_plugin_providers( - name = "BlobModule", - native_class_func = "RCTBlobManagerCls", - ) + [ - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "BlobModule", - ), - ], - plugins_header = "FBRCTBlobPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - ":RCTNetworkApple", - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - "//xplat/js/react-native-github/packages/react-native/React/CoreModules:CoreModulesApple", - "//xplat/jsi:jsiApple", - ], -) - -rn_apple_library( - name = "RCTLinkingApple", - srcs = glob([ - "packages/react-native/Libraries/LinkingIOS/*.m", - "packages/react-native/Libraries/LinkingIOS/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/LinkingIOS/*.h", - ], - ), - exported_headers = glob( - [ - "packages/react-native/Libraries/LinkingIOS/*.h", - ], - ), - autoglob = False, - enable_exceptions = True, - frameworks = [ - "Foundation", - "UIKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "extension_api_allow_unsafe_unavailable_usages", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - plugins = - react_module_plugin_providers( - name = "LinkingManager", - native_class_func = "RCTLinkingManagerCls", - ), - plugins_header = "FBRCTLinkingPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - "//xplat/jsi:jsiApple", - ], -) - -rn_apple_library( - name = "RCTPushNotificationApple", - srcs = glob([ - "packages/react-native/Libraries/PushNotificationIOS/*.m", - "packages/react-native/Libraries/PushNotificationIOS/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/PushNotificationIOS/*.h", - ], - ), - exported_headers = glob( - [ - "packages/react-native/Libraries/PushNotificationIOS/*.h", - ], - ), - autoglob = False, - enable_exceptions = True, - frameworks = [ - "Foundation", - "UIKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "extension_api_allow_unsafe_unavailable_usages", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - plugins = - react_module_plugin_providers( - name = "PushNotificationManager", - native_class_func = "RCTPushNotificationManagerCls", - ), - plugins_header = "FBRCTPushNotificationPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:ReactInternalApple", - "//xplat/jsi:jsiApple", - ], -) - -rn_apple_library( - name = "RCTImageApple", - srcs = glob([ - "packages/react-native/Libraries/Image/*.m", - "packages/react-native/Libraries/Image/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/Image/*.h", - ], - ), - exported_headers = glob( - [ - "packages/react-native/Libraries/Image/*.h", - ], - ), - autoglob = False, - frameworks = [ - "AVFoundation", - "Accelerate", - "CoreMedia", - "Foundation", - "ImageIO", - "MobileCoreServices", - "QuartzCore", - "UIKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "extension_api_allow_unsafe_unavailable_usages", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - plugins = - react_module_plugin_providers( - name = "GIFImageDecoder", - native_class_func = "RCTGIFImageDecoderCls", - ) + react_module_plugin_providers( - name = "ImageEditingManager", - native_class_func = "RCTImageEditingManagerCls", - ) + react_module_plugin_providers( - name = "ImageLoader", - native_class_func = "RCTImageLoaderCls", - ) + react_module_plugin_providers( - name = "ImageStoreManager", - native_class_func = "RCTImageStoreManagerCls", - ) + react_module_plugin_providers( - name = "LocalAssetImageLoader", - native_class_func = "RCTLocalAssetImageLoaderCls", - ) + [ - plugin( - RCT_IMAGE_DATA_DECODER_SOCKET, - name = "GIFImageDecoder", - ), - plugin( - RCT_IMAGE_URL_LOADER_SOCKET, - name = "LocalAssetImageLoader", - ), - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "ImageLoader", - ), - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "ImageStoreManager", - ), - ], - plugins_header = "FBRCTImagePlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - ":RCTNetworkApple", - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) - -RCTNETWORK_PUBLIC_HEADERS = [ - "packages/react-native/Libraries/Network/RCTNetworkTask.h", - "packages/react-native/Libraries/Network/RCTNetworking.h", -] - -rn_apple_library( - name = "RCTNetworkApple", - srcs = glob([ - "packages/react-native/Libraries/Network/*.m", - "packages/react-native/Libraries/Network/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/Network/*.h", - ], - exclude = RCTNETWORK_PUBLIC_HEADERS, - ), - exported_headers = RCTNETWORK_PUBLIC_HEADERS, - autoglob = False, - enable_exceptions = True, - frameworks = [ - "CoreTelephony", - "Foundation", - "MobileCoreServices", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "extension_api_allow_unsafe_unavailable_usages", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - plugins = - react_module_plugin_providers( - name = "Networking", - native_class_func = "RCTNetworkingCls", - ) + react_module_plugin_providers( - name = "DataRequestHandler", - native_class_func = "RCTDataRequestHandlerCls", - ) + react_module_plugin_providers( - name = "FileRequestHandler", - native_class_func = "RCTFileRequestHandlerCls", - ) + react_module_plugin_providers( - name = "HTTPRequestHandler", - native_class_func = "RCTHTTPRequestHandlerCls", - ) + [ - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "DataRequestHandler", - ), - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "FileRequestHandler", - ), - plugin( - RCT_URL_REQUEST_HANDLER_SOCKET, - name = "HTTPRequestHandler", - ), - ], - plugins_header = "FBRCTNetworkPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) - -rn_apple_library( - name = "RCTSettingsApple", - srcs = glob([ - "packages/react-native/Libraries/Settings/*.m", - "packages/react-native/Libraries/Settings/*.mm", - ]), - exported_headers = glob( - [ - "packages/react-native/Libraries/Settings/*.h", - ], - ), - autoglob = False, - extension_api_only = True, - frameworks = [ - "Foundation", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - ], - plugins = react_module_plugin_providers( - name = "SettingsManager", - native_class_func = "RCTSettingsManagerCls", - ), - plugins_header = "FBRCTSettingsPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTText", - srcs = glob([ - "packages/react-native/Libraries/Text/**/*.m", - "packages/react-native/Libraries/Text/**/*.mm", - ]), - headers = glob( - [ - "packages/react-native/Libraries/Text/**/*.h", - ], - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/Libraries/Text", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/BaseText", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/RawText", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/Text", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/TextInput", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/TextInput/Multiline", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/TextInput/Singleline", - "*.h", - ), - ( - "packages/react-native/Libraries/Text/VirtualText", - "*.h", - ), - ], - prefix = "React", - ), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - YOGA_CXX_TARGET, - ], -) - -rn_apple_library( - name = "RCTVibrationApple", - srcs = glob([ - "packages/react-native/Libraries/Vibration/**/*.m", - "packages/react-native/Libraries/Vibration/**/*.mm", - ]), - exported_headers = glob( - [ - "packages/react-native/Libraries/Vibration/*.h", - ], - ), - autoglob = False, - frameworks = [ - "AudioToolbox", - "Foundation", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", - "disable_plugins_only_validation", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - plugins = react_module_plugin_providers( - name = "Vibration", - native_class_func = "RCTVibrationCls", - ), - plugins_header = "FBRCTVibrationPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTWrapper", - srcs = glob([ - "packages/react-native/Libraries/Wrapper/*.m", - "packages/react-native/Libraries/Wrapper/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/Libraries/Wrapper", - "*.h", - ), - ], - prefix = "RCTWrapper", - ), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTWrapperExample", - srcs = glob([ - "packages/react-native/Libraries/Wrapper/Example/*.m", - "packages/react-native/Libraries/Wrapper/Example/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/Libraries/Wrapper/Example", - "*.h", - ), - ], - prefix = "RCTWrapperExample", - ), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - labels = [ - "depslint_never_remove", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - ":RCTWrapper", - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTSurfaceHostingComponent", - srcs = glob([ - "packages/react-native/Libraries/SurfaceHostingComponent/**/*.m", - "packages/react-native/Libraries/SurfaceHostingComponent/**/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/Libraries/SurfaceHostingComponent", - "*.h", - ), - ], - prefix = "RCTSurfaceHostingComponent", - ), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - labels = [ - "depslint_never_remove", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - "//fbobjc/Libraries/MobileUI/ComponentKit:ComponentKit", - "//xplat/js/react-native-github:RCTFabric", - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTSurfaceBackedComponent", - srcs = glob([ - "packages/react-native/Libraries/SurfaceBackedComponent/**/*.m", - "packages/react-native/Libraries/SurfaceBackedComponent/**/*.mm", - ]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ( - "packages/react-native/Libraries/SurfaceBackedComponent", - "*.h", - ), - ], - prefix = "RCTSurfaceBackedComponent", - ), - frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - labels = [ - "depslint_never_remove", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = ["PUBLIC"], - deps = [ - ":RCTSurfaceHostingComponent", - "//fbobjc/Libraries/MobileUI/ComponentKit:ComponentKit", - "//xplat/js/react-native-github:RCTFabric", - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - ], -) - -rn_apple_xplat_cxx_library( - name = "RCTMapView_RNHeader", - header_namespace = "", - exported_headers = { - "React/RCTConvert+CoreLocation.h": RCTVIEWS_PATH + "RCTConvert+CoreLocation.h", - }, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = [ - "//fbobjc/Libraries/FBReactKit:RCTMapView", - "//fbobjc/VendorLib/react-native-maps:react-native-maps", - ], -) - -rn_xplat_cxx_library( - name = "RCTWebPerformance", - srcs = glob( - [ - "packages/react-native/Libraries/WebPerformance/**/*.cpp", - ], - exclude = ["packages/react-native/Libraries/WebPerformance/__tests__/*"], - ), - header_namespace = "", - exported_headers = subdir_glob( - [("packages/react-native/Libraries/WebPerformance", "*.h")], - prefix = "RCTWebPerformance", - ), - compiler_flags_enable_exceptions = True, - compiler_flags_enable_rtti = True, - labels = [ - "depslint_never_remove", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE), - plugins = [ - react_cxx_module_plugin_provider( - name = "NativePerformanceCxx", - function = "NativePerformanceModuleProvider", - ), - react_cxx_module_plugin_provider( - name = "NativePerformanceObserverCxx", - function = "NativePerformanceObserverModuleProvider", - ), - ], - visibility = ["PUBLIC"], - deps = [ - ":FBReactNativeSpecJSI", - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("cxxreact:bridge"), - ], -) - -fb_xplat_cxx_test( - name = "RCTWebPerformance_tests", - srcs = glob([ - "packages/react-native/Libraries/WebPerformance/__tests__/*.cpp", - ]), - headers = glob(["packages/react-native/Libraries/WebPerformance/__tests__/*.h"]), - header_namespace = "", - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - platforms = (ANDROID, APPLE), - deps = [ - ":RCTWebPerformance", - "//xplat/third-party/gmock:gmock", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/IntegrationTests/BUCK b/IntegrationTests/BUCK deleted file mode 100644 index 0ac92a5c69e38a..00000000000000 --- a/IntegrationTests/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbsource//tools/build_defs:js_library_glob.bzl", "js_library_glob") -load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library") - -# This file was generated by running -# js1 build buckfiles - -rn_library( - name = "IntegrationTests", - srcs = js_library_glob( - [ - "**/*", - ], - excludes = [ - "**/__*__/**", - "**/*.command", - "**/*.md", - "websocket_integration_test_server.js", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - skip_processors = True, - visibility = ["PUBLIC"], - deps = [ - "//xplat/js:node_modules__invariant", - "//xplat/js:node_modules__nullthrows", - "//xplat/js/RKJSModules/vendor/react:react", - "//xplat/js/react-native-github:react-native", - "//xplat/js/react-native-github/packages/assets:assets", - ], -) diff --git a/packages/assets/BUCK b/packages/assets/BUCK deleted file mode 100644 index df68edf8b3a969..00000000000000 --- a/packages/assets/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") -load("@fbsource//xplat/js:JS_DEFS.bzl", "rn_library") - -rn_library( - name = "assets", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - skip_processors = True, - visibility = ["PUBLIC"], -) - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - [ - "**/*.js", - "**/*.json", - ], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/babel-plugin-codegen/BUCK b/packages/babel-plugin-codegen/BUCK deleted file mode 100644 index 8fd38289431bdb..00000000000000 --- a/packages/babel-plugin-codegen/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/eslint-config-react-native-community/BUCK b/packages/eslint-config-react-native-community/BUCK deleted file mode 100644 index 8fd38289431bdb..00000000000000 --- a/packages/eslint-config-react-native-community/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/eslint-plugin-react-native-community/BUCK b/packages/eslint-plugin-react-native-community/BUCK deleted file mode 100644 index 8fd38289431bdb..00000000000000 --- a/packages/eslint-plugin-react-native-community/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/eslint-plugin-specs/BUCK b/packages/eslint-plugin-specs/BUCK deleted file mode 100644 index 8fd38289431bdb..00000000000000 --- a/packages/eslint-plugin-specs/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/normalize-color/BUCK b/packages/normalize-color/BUCK deleted file mode 100644 index faaff9e880b021..00000000000000 --- a/packages/normalize-color/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") -load("@fbsource//xplat/js:JS_DEFS.bzl", "rn_library") - -rn_library( - name = "normalize-color", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - skip_processors = True, - visibility = ["PUBLIC"], -) - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - [ - "**/*.js", - "**/*.json", - ], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/polyfills/BUCK b/packages/polyfills/BUCK deleted file mode 100644 index b3881484a9599e..00000000000000 --- a/packages/polyfills/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") -load("@fbsource//xplat/js:JS_DEFS.bzl", "relative_path_to_js_root", "rn_library") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - [ - "**/*.js", - "**/*.json", - ], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - ], - ), - visibility = ["PUBLIC"], -) - -rn_library( - name = "polyfills", - base_path = relative_path_to_js_root() + "node_modules/@react-native/js-polyfills/", - is_polyfill = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - node_modules_check_enabled = False, - skip_processors = True, # Don't anticipate routes or fbicon here - visibility = ["PUBLIC"], - deps = [], -) diff --git a/packages/react-native-codegen/BUCK b/packages/react-native-codegen/BUCK deleted file mode 100644 index b976bba975828a..00000000000000 --- a/packages/react-native-codegen/BUCK +++ /dev/null @@ -1,108 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "IOS", "YOGA_TARGET", "react_native_root_target", "react_native_target", "rn_android_library", "rn_xplat_cxx_library") -load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") -load(":DEFS.bzl", "rn_codegen_cli", "rn_codegen_components", "rn_codegen_modules") - -rn_codegen_cli() - -fb_native.genrule( - name = "codegen_tests_schema", - srcs = glob( - [ - "**/e2e/__test_fixtures__/components/*NativeComponent.js", - "**/e2e/__test_fixtures__/modules/Native*.js", - ], - ), - out = "schema-codegen_tests.json", - cmd = "$(exe {}) $OUT $SRCS".format(react_native_root_target("packages/react-native-codegen:write_to_json")), -) - -rn_codegen_components( - name = "codegen_tests", - schema_target = ":codegen_tests_schema", -) - -rn_codegen_modules( - name = "FBReactNativeTestSpec", - android_package_name = "com.facebook.fbreact.specs", - ios_assume_nonnull = False, - schema_target = ":codegen_tests_schema", -) - -rn_android_library( - name = "rn_codegen_library_java", - srcs = glob( - ["buck_tests/*.java"], - ), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ":generated_components_java-codegen_tests", - ], -) - -rn_xplat_cxx_library( - name = "rn_codegen_library", - srcs = ["buck_tests/emptyFile.cpp"], - headers = [], - platforms = (ANDROID, APPLE), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - ":generated_components-codegen_tests", - ], -) - -rn_xplat_cxx_library( - name = "rn_codegen_library_mm", - srcs = ["buck_tests/emptyFile.mm"], - headers = [], - apple_sdks = (IOS,), - platforms = APPLE, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - ":FBReactNativeTestSpec", - ":generated_components-codegen_tests", - ], -) - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["src/**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/react-native-codegen/DEFS.bzl b/packages/react-native-codegen/DEFS.bzl deleted file mode 100644 index b8ab7b8313665a..00000000000000 --- a/packages/react-native-codegen/DEFS.bzl +++ /dev/null @@ -1,562 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -load("//tools/build_defs:buckconfig.bzl", "read_bool") -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "IOS", - "MACOSX", - "WINDOWS", - "YOGA_CXX_TARGET", - "YOGA_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "is_catalyst_build", - "is_rn_desktop", - "react_native_dep", - "react_native_desktop_root_target", - "react_native_root_target", - "react_native_target", - "react_native_xplat_shared_library_target", - "react_native_xplat_target", - "react_native_xplat_target_apple", - "rn_android_library", - "rn_apple_library", - "rn_xplat_cxx_library", -) -load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace_binary") - -# Call this in the react-native-codegen/BUCK file -def rn_codegen_cli(): - yarn_workspace_binary( - name = "write_to_json", - main = "src/cli/combine/combine-js-to-schema-cli.js", - root = "//xplat/js:workspace", - visibility = ["PUBLIC"], - deps = [ - ":yarn-workspace", - ], - ) - yarn_workspace_binary( - name = "generate_all_from_schema", - main = "src/cli/generators/generate-all.js", - root = "//xplat/js:workspace", - visibility = ["PUBLIC"], - deps = [ - ":yarn-workspace", - ], - ) - -def rn_codegen_modules( - name, - android_package_name, - ios_assume_nonnull, - library_labels = [], - schema_target = ""): - generate_fixtures_rule_name = "{}-codegen-modules".format(name) - generate_module_hobjcpp_name = "{}-codegen-modules-hobjcpp".format(name) - generate_module_mm_name = "{}-codegen-modules-mm".format(name) - generate_module_java_name = "{}-codegen-modules-java".format(name) - generate_module_java_zip_name = "{}-codegen-modules-java_zip".format(name) - generate_module_jni_h_name = "{}-codegen-modules-jni_h".format(name) - generate_module_jni_cpp_name = "{}-codegen-modules-jni_cpp".format(name) - - fb_native.genrule( - name = generate_fixtures_rule_name, - srcs = native.glob(["src/generators/**/*.js"]), - out = "codegenfiles-{}".format(name), - cmd = "$(exe {generator_script}) $(location {schema_target}) {library_name} $OUT {android_package_name} {ios_assume_nonnull}".format( - android_package_name = android_package_name, - generator_script = react_native_root_target("packages/react-native-codegen:generate_all_from_schema"), - ios_assume_nonnull = ios_assume_nonnull, - library_name = name, - schema_target = schema_target, - ), - labels = ["codegen_rule", "uses_local_filesystem_abspaths"], - ) - - ################## - # Android handling - ################## - fb_native.genrule( - name = generate_module_java_name, - out = "src", - cmd = "mkdir -p $OUT/{spec_path} && cp -r $(location {generator_target})/java/{spec_path}/* $OUT/{spec_path}/".format( - generator_target = ":" + generate_fixtures_rule_name, - spec_path = android_package_name.replace(".", "/"), - ), - labels = ["codegen_rule"], - ) - - fb_native.zip_file( - name = generate_module_java_zip_name, - srcs = [":{}".format(generate_module_java_name)], - out = "{}.src.zip".format(generate_module_java_zip_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_module_jni_h_name, - out = "{}.h".format(name), - cmd = "cp $(location :{})/jni/{}.h $OUT".format(generate_fixtures_rule_name, name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_module_jni_cpp_name, - out = "{}-generated.cpp".format(name), - cmd = "cp $(location :{})/jni/{}-generated.cpp $OUT".format(generate_fixtures_rule_name, name), - labels = ["codegen_rule"], - ) - - rn_android_library( - name = "{}".format(name), - srcs = [ - ":{}".format(generate_module_java_zip_name), - ], - autoglob = False, - labels = library_labels + ["codegen_rule"], - language = "JAVA", - required_for_source_only_abi = True, - visibility = ["PUBLIC"], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/jsr-330:jsr-330"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - ], - exported_deps = [ - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], - ) - - rn_xplat_cxx_library( - name = "{}-jni".format(name), - srcs = [ - ":{}".format(generate_module_jni_cpp_name), - ], - headers = [ - ":{}".format(generate_module_jni_h_name), - ], - header_namespace = "", - exported_headers = { - "{}/{}.h".format(name, name): ":{}".format(generate_module_jni_h_name), - }, - force_static = True, - labels = library_labels + ["codegen_rule"], - platforms = (ANDROID,), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [], - exported_deps = [ - react_native_xplat_shared_library_target("jsi:jsi"), - react_native_xplat_target("react/nativemodule/core:core"), - ], - ) - - ############## - # macOS and iOS handling - ############## - # iOS Buck build isn't fully working in OSS, so let's skip it for OSS for now. - fb_native.genrule( - name = generate_module_hobjcpp_name, - out = "{}.h".format(name), - cmd = "cp $(location :{})/{}/{}.h $OUT".format(generate_fixtures_rule_name, name, name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_module_mm_name, - out = "{}-generated.mm".format(name), - cmd = "cp $(location :{})/{}/{}-generated.mm $OUT".format(generate_fixtures_rule_name, name, name), - labels = ["codegen_rule"], - ) - - MOBILE_DEPS = [ - "//xplat/js/react-native-github:RCTTypeSafety", - "//xplat/js/react-native-github/packages/react-native/Libraries/RCTRequired:RCTRequired", - react_native_xplat_target_apple("react/nativemodule/core:core"), - ] - rn_apple_library( - name = "{}Apple".format(name), - srcs = [ - ":{}".format(generate_module_mm_name), - ], - headers = [ - ":{}".format(generate_module_hobjcpp_name), - ], - header_namespace = "", - exported_headers = { - "{}/{}.h".format(name, name): ":{}".format(generate_module_hobjcpp_name), - }, - autoglob = False, - compiler_flags = [ - "-Wno-unused-private-field", - ], - extension_api_only = True, - ios_exported_deps = MOBILE_DEPS, - labels = library_labels + ["codegen_rule"], - macosx_exported_deps = MOBILE_DEPS if is_catalyst_build() else [ - react_native_desktop_root_target(":RCTTypeSafetyAppleMac"), - react_native_desktop_root_target(":RCTRequiredAppleMac"), - react_native_desktop_root_target(":nativemoduleAppleMac"), - ], - sdks = (IOS, MACOSX), - visibility = ["PUBLIC"], - ) - -def rn_codegen_components( - name = "", - schema_target = "", - library_labels = []): - generate_fixtures_rule_name = "generate_fixtures_components-{}".format(name) - generate_component_descriptor_h_name = "generate_component_descriptor_h-{}".format(name) - generate_component_hobjcpp_name = "generate_component_hobjcpp-{}".format(name) - generate_event_emitter_cpp_name = "generate_event_emitter_cpp-{}".format(name) - generate_event_emitter_h_name = "generate_event_emitter_h-{}".format(name) - generate_props_cpp_name = "generate_props_cpp-{}".format(name) - generate_props_h_name = "generated_props_h-{}".format(name) - generate_state_cpp_name = "generate_state_cpp-{}".format(name) - generate_state_h_name = "generated_state_h-{}".format(name) - generate_tests_cpp_name = "generate_tests_cpp-{}".format(name) - generate_shadow_node_cpp_name = "generated_shadow_node_cpp-{}".format(name) - generate_shadow_node_h_name = "generated_shadow_node_h-{}".format(name) - copy_generated_java_files = "copy_generated_java_files-{}".format(name) - copy_generated_cxx_files = "copy_generated_cxx_files-{}".format(name) - zip_generated_java_files = "zip_generated_java_files-{}".format(name) - zip_generated_cxx_files = "zip_generated_cxx_files-{}".format(name) - - fb_native.genrule( - name = generate_fixtures_rule_name, - srcs = native.glob(["src/generators/**/*.js"]), - out = "codegenfiles-{}".format(name), - cmd = "$(exe {}) $(location {}) {} $OUT".format(react_native_root_target("packages/react-native-codegen:generate_all_from_schema"), schema_target, name), - labels = ["codegen_rule", "uses_local_filesystem_abspaths"], - ) - - fb_native.genrule( - name = generate_component_descriptor_h_name, - out = "ComponentDescriptors.h", - cmd = "cp $(location :{})/ComponentDescriptors.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_component_hobjcpp_name, - out = "RCTComponentViewHelpers.h", - cmd = "cp $(location :{})/RCTComponentViewHelpers.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_event_emitter_cpp_name, - out = "EventEmitters.cpp", - cmd = "cp $(location :{})/EventEmitters.cpp $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_event_emitter_h_name, - out = "EventEmitters.h", - cmd = "cp $(location :{})/EventEmitters.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_props_cpp_name, - out = "Props.cpp", - cmd = "cp $(location :{})/Props.cpp $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_state_cpp_name, - out = "States.cpp", - cmd = "cp $(location :{})/States.cpp $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_tests_cpp_name, - out = "Tests.cpp", - cmd = "cp $(location :{})/Tests.cpp $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_props_h_name, - out = "Props.h", - cmd = "cp $(location :{})/Props.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_state_h_name, - out = "States.h", - cmd = "cp $(location :{})/States.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = copy_generated_java_files, - out = "java", - # TODO: support different package name internally. - # Right now, it's hardcoded to `com.facebook.react.viewmanagers`. - cmd = "mkdir -p $OUT/com/facebook/react/viewmanagers && cp -R $(location :{})/java/com/facebook/react/viewmanagers/* $OUT/com/facebook/react/viewmanagers".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = copy_generated_cxx_files, - out = "cxx", - # The command below is filtering C++ iOS files, this will be refactored when C++ codegen is finished. - cmd = "mkdir -p $OUT && find $(location :{}) -not -path '*/rncore*' -not -path '*Tests*' -not -path '*NativeModules*' -not -path '*RCTComponentViewHelpers*' -type f \\( -iname \\*.h -o -iname \\*.cpp \\) -print0 -exec cp {{}} $OUT \\;".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.zip_file( - name = zip_generated_cxx_files, - srcs = [":{}".format(copy_generated_cxx_files)], - out = "{}.src.zip".format(zip_generated_cxx_files), - labels = ["codegen_rule"], - visibility = ["PUBLIC"], - ) - - fb_native.zip_file( - name = zip_generated_java_files, - srcs = [":{}".format(copy_generated_java_files)], - out = "{}.src.zip".format(zip_generated_java_files), - labels = ["codegen_rule"], - visibility = ["PUBLIC"], - ) - - fb_native.genrule( - name = generate_shadow_node_cpp_name, - out = "ShadowNodes.cpp", - cmd = "cp $(location :{})/ShadowNodes.cpp $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_shadow_node_h_name, - out = "ShadowNodes.h", - cmd = "cp $(location :{})/ShadowNodes.h $OUT".format(generate_fixtures_rule_name), - labels = ["codegen_rule"], - ) - - ############## - # iOS handling - ############## - # iOS Buck build isn't fully working in OSS, so let's skip it for OSS for now. - if is_running_buck_project(): - rn_xplat_cxx_library(name = "generated_components-{}".format(name), visibility = ["PUBLIC"]) - else: - MOBILE_DEPS = [ - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/renderer/components/view:view"), - ] - rn_xplat_cxx_library( - name = "generated_components-{}".format(name), - srcs = [ - ":{}".format(generate_event_emitter_cpp_name), - ":{}".format(generate_props_cpp_name), - ":{}".format(generate_state_cpp_name), - ":{}".format(generate_shadow_node_cpp_name), - ], - headers = [ - ":{}".format(generate_component_descriptor_h_name), - ":{}".format(generate_event_emitter_h_name), - ":{}".format(generate_props_h_name), - ":{}".format(generate_state_h_name), - ":{}".format(generate_shadow_node_h_name), - ], - header_namespace = "react/renderer/components/{}".format(name), - exported_headers = { - "ComponentDescriptors.h": ":{}".format(generate_component_descriptor_h_name), - "EventEmitters.h": ":{}".format(generate_event_emitter_h_name), - "Props.h": ":{}".format(generate_props_h_name), - "RCTComponentViewHelpers.h": ":{}".format(generate_component_hobjcpp_name), - "ShadowNodes.h": ":{}".format(generate_shadow_node_h_name), - "States.h": ":{}".format(generate_state_h_name), - }, - fbobjc_compiler_flags = get_apple_compiler_flags(), - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - ios_exported_headers = { - "ComponentViewHelpers.h": ":{}".format(generate_component_hobjcpp_name), - }, - ios_headers = [ - ":{}".format(generate_component_hobjcpp_name), - ], - labels = library_labels + ["codegen_rule"], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":generated_tests-{}".format(name)], - visibility = ["PUBLIC"], - fbandroid_deps = MOBILE_DEPS, - ios_deps = MOBILE_DEPS, - macosx_deps = [react_native_desktop_root_target(":renderer_headers")] if is_rn_desktop() else MOBILE_DEPS, - ) - - # Tests - fb_xplat_cxx_test( - name = "generated_tests-{}".format(name), - # TODO T96844980: Fix and enable generated_tests-codegen_testsAndroid - srcs = [] if ANDROID else [ - ":{}".format(generate_tests_cpp_name), - ], - apple_sdks = (IOS, MACOSX), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbandroid_use_instrumentation_test = True, - labels = library_labels + ["codegen_rule"], - platforms = (ANDROID, APPLE, CXX), - fbandroid_deps = [react_native_xplat_target("react/renderer/core:core")], - ios_deps = [ - react_native_xplat_target("react/renderer/core:core"), - ], - macosx_deps = ([react_native_desktop_root_target(":renderer_headers")] if is_rn_desktop() else [ - react_native_xplat_target("react/renderer/core:core"), - ]), - deps = [ - YOGA_CXX_TARGET, - "//xplat/third-party/gmock:gtest", - ":generated_components-{}".format(name), - ], - ) - - ################## - # Android handling - ################## - if is_running_buck_project(): - rn_android_library(name = "generated_components_java-{}".format(name), autoglob = False, language = "JAVA") - else: - rn_android_library( - name = "generated_components_java-{}".format(name), - srcs = [ - ":{}".format(zip_generated_java_files), - ], - autoglob = False, - labels = library_labels + ["codegen_rule"], - language = "JAVA", - visibility = ["PUBLIC"], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/uimanager:interfaces"), - ], - ) - - rn_android_library( - name = "generated_components_cxx-{}".format(name), - srcs = [ - ":{}".format(zip_generated_cxx_files), - ], - autoglob = False, - labels = library_labels + ["codegen_rule"], - language = "JAVA", - visibility = ["PUBLIC"], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/turbomodule/core:core"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], - ) - -def rn_codegen_cxx_modules( - name = "", - schema_target = "", - library_labels = []): - generate_fixtures_rule_name = "generate_fixtures_cxx-{}".format(name) - generate_module_h_name = "generate_module_h-{}".format(name) - generate_module_cpp_name = "generate_module_cpp-{}".format(name) - - fb_native.genrule( - name = generate_fixtures_rule_name, - srcs = native.glob(["src/generators/**/*.js"]), - out = "codegenfiles-{}".format(name), - cmd = "$(exe {}) $(location {}) {} $OUT {}".format(react_native_root_target("packages/react-native-codegen:generate_all_from_schema"), schema_target, name, name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_module_h_name, - out = "{}JSI.h".format(name), - cmd = "cp $(location :{})/{}JSI.h $OUT".format(generate_fixtures_rule_name, name), - cmd_exe = "copy $(location :{})\\{}JSI.h $OUT".format(generate_fixtures_rule_name, name), - labels = ["codegen_rule"], - ) - - fb_native.genrule( - name = generate_module_cpp_name, - out = "{}JSI-generated.cpp".format(name), - cmd = "cp $(location :{})/{}JSI-generated.cpp $OUT".format(generate_fixtures_rule_name, name), - cmd_exe = "copy $(location :{})\\{}JSI-generated.cpp $OUT".format(generate_fixtures_rule_name, name), - labels = ["codegen_rule"], - ) - - if is_running_buck_project(): - rn_xplat_cxx_library(name = "{}JSI".format(name), visibility = ["PUBLIC"]) - else: - rn_xplat_cxx_library( - name = "{}JSI".format(name), - srcs = [ - ":{}".format(generate_module_cpp_name), - ], - headers = [ - ":{}".format(generate_module_h_name), - ], - header_namespace = "", - exported_headers = { - "{}/{}JSI.h".format(name, name): ":{}".format(generate_module_h_name), - }, - fbandroid_exported_deps = [ - react_native_xplat_target("react/nativemodule/core:core"), - ], - fbobjc_compiler_flags = get_apple_compiler_flags(), - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - ios_exported_deps = [ - react_native_xplat_target("react/nativemodule/core:core"), - ], - labels = library_labels + ["codegen_rule"], - macosx_exported_deps = [react_native_xplat_target("react/nativemodule/core:core")] if is_catalyst_build() else [react_native_desktop_root_target(":bridging")], - platforms = (ANDROID, APPLE, CXX, WINDOWS), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - windows_exported_deps = [ - react_native_desktop_root_target(":bridging"), - ], - ) - -def is_running_buck_project(): - return read_bool("fbandroid", "is_running_buck_project", False) diff --git a/packages/react-native-gradle-plugin/BUCK b/packages/react-native-gradle-plugin/BUCK deleted file mode 100644 index 8fd38289431bdb..00000000000000 --- a/packages/react-native-gradle-plugin/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/Libraries/FBLazyVector/BUCK b/packages/react-native/Libraries/FBLazyVector/BUCK deleted file mode 100644 index 515bf0d95019c1..00000000000000 --- a/packages/react-native/Libraries/FBLazyVector/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "rn_apple_library") - -rn_apple_library( - name = "FBLazyVector", - exported_headers = [ - "FBLazyVector/FBLazyIterator.h", - "FBLazyVector/FBLazyVector.h", - ], - autoglob = False, - complete_nullability = True, - contacts = ["oncall+react_native@xmail.facebook.com"], - enable_exceptions = False, - extension_api_only = True, - frameworks = [], - labels = [ - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - link_whole = False, - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/Libraries/RCTRequired/BUCK b/packages/react-native/Libraries/RCTRequired/BUCK deleted file mode 100644 index 8e01b7215a56fb..00000000000000 --- a/packages/react-native/Libraries/RCTRequired/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "rn_apple_library") - -rn_apple_library( - name = "RCTRequired", - exported_headers = [ - "RCTRequired/RCTRequired.h", - ], - autoglob = False, - complete_nullability = True, - contacts = ["oncall+react_native@xmail.facebook.com"], - disable_infer_precompiled_header = True, - extension_api_only = True, - frameworks = ["Foundation"], - labels = [ - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], -) diff --git a/packages/react-native/React/CoreModules/BUCK b/packages/react-native/React/CoreModules/BUCK deleted file mode 100644 index 3aece1b87d474f..00000000000000 --- a/packages/react-native/React/CoreModules/BUCK +++ /dev/null @@ -1,133 +0,0 @@ -load("@fbsource//tools/build_defs/apple:flag_defs.bzl", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode") -load("@fbsource//tools/build_defs/oss:rn_defs.bzl", "react_native_xplat_target", "rn_apple_library", "rn_extra_build_flags") -load( - "@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl", - "react_module_plugin_providers", -) - -rn_apple_library( - name = "CoreModulesApple", - srcs = glob( - [ - "**/*.m", - "**/*.mm", - ], - ), - exported_headers = glob(["**/*.h"]), - autoglob = False, - compiler_flags = [ - "-Wno-error=unguarded-availability-new", - "-Wno-unknown-warning-option", - "-Wno-unused-property-ivar", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - enable_exceptions = True, - exported_preprocessor_flags = rn_extra_build_flags(), - extension_api_only = True, - frameworks = [ - "Foundation", - "UIKit", - "UserNotifications", - "WebKit", - ], - header_path_prefix = "React", - labels = [ - "depslint_never_remove", # Some old NativeModule still relies on +load unfortunately. - "disable_plugins_only_validation", - "fbios_link_group:xplat/default/public.react_native.infra", - "pfh:ReactNative_CommonInfrastructurePlaceholder", - "talkios_link_group:xplat/default/public.react_native.infra", - ], - link_whole = True, - platform_preprocessor_flags = [( - "linux", - ["-D PIC_MODIFIER=@PLT"], - )], - plugins = - react_module_plugin_providers( - name = "AccessibilityManager", - native_class_func = "RCTAccessibilityManagerCls", - ) + react_module_plugin_providers( - name = "Appearance", - native_class_func = "RCTAppearanceCls", - ) + react_module_plugin_providers( - name = "DeviceInfo", - native_class_func = "RCTDeviceInfoCls", - ) + react_module_plugin_providers( - name = "ExceptionsManager", - native_class_func = "RCTExceptionsManagerCls", - ) + react_module_plugin_providers( - name = "PlatformConstants", - native_class_func = "RCTPlatformCls", - ) + react_module_plugin_providers( - name = "Clipboard", - native_class_func = "RCTClipboardCls", - ) + react_module_plugin_providers( - name = "I18nManager", - native_class_func = "RCTI18nManagerCls", - ) + react_module_plugin_providers( - name = "SourceCode", - native_class_func = "RCTSourceCodeCls", - ) + react_module_plugin_providers( - name = "ActionSheetManager", - native_class_func = "RCTActionSheetManagerCls", - ) + react_module_plugin_providers( - name = "AlertManager", - native_class_func = "RCTAlertManagerCls", - ) + react_module_plugin_providers( - name = "Timing", - native_class_func = "RCTTimingCls", - ) + react_module_plugin_providers( - name = "StatusBarManager", - native_class_func = "RCTStatusBarManagerCls", - ) + react_module_plugin_providers( - name = "KeyboardObserver", - native_class_func = "RCTKeyboardObserverCls", - ) + react_module_plugin_providers( - name = "AppState", - native_class_func = "RCTAppStateCls", - ) + react_module_plugin_providers( - name = "PerfMonitor", - native_class_func = "RCTPerfMonitorCls", - ) + react_module_plugin_providers( - name = "DevMenu", - native_class_func = "RCTDevMenuCls", - ) + react_module_plugin_providers( - name = "DevSettings", - native_class_func = "RCTDevSettingsCls", - ) + react_module_plugin_providers( - name = "RedBox", - native_class_func = "RCTRedBoxCls", - ) + react_module_plugin_providers( - name = "LogBox", - native_class_func = "RCTLogBoxCls", - ) + react_module_plugin_providers( - name = "WebSocketExecutor", - native_class_func = "RCTWebSocketExecutorCls", - ) + react_module_plugin_providers( - name = "WebSocketModule", - native_class_func = "RCTWebSocketModuleCls", - ) + react_module_plugin_providers( - name = "DevLoadingView", - native_class_func = "RCTDevLoadingViewCls", - ) + react_module_plugin_providers( - name = "EventDispatcher", - native_class_func = "RCTEventDispatcherCls", - ), - plugins_header = "FBCoreModulesPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - reexport_all_header_dependencies = True, - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbufferApple"), - ], - exported_deps = [ - "//xplat/js/react-native-github:FBReactNativeSpecApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:RCTSettingsApple", - "//xplat/js/react-native-github:ReactInternalApple", - ], -) diff --git a/packages/react-native/ReactAndroid/libs/BUCK b/packages/react-native/ReactAndroid/libs/BUCK deleted file mode 100644 index 88ec9e47a4380f..00000000000000 --- a/packages/react-native/ReactAndroid/libs/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_prebuilt_aar") - -rn_android_prebuilt_aar( - name = "appcompat", - aar = ":appcompat-binary-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "appcompat-binary-aar", - sha1 = "132586ec59604a86703796851a063a0ac61f697b", - url = "mvn:com.android.support:appcompat-v7:aar:28.0.0", -) - -rn_android_prebuilt_aar( - name = "android-jsc", - aar = ":android-jsc-aar", -) - -fb_native.remote_file( - name = "android-jsc-aar", - sha1 = "880cedd93f43e0fc841f01f2fa185a63d9230f85", - url = "mvn:org.webkit:android-jsc:aar:r174650", -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/assets/BUCK b/packages/react-native/ReactAndroid/src/androidTest/assets/BUCK deleted file mode 100644 index 6bead0a25d6abb..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/assets/BUCK +++ /dev/null @@ -1,7 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_resource") - -rn_android_resource( - name = "assets", - assets = ".", - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/buck-runner/BUCK b/packages/react-native/ReactAndroid/src/androidTest/buck-runner/BUCK deleted file mode 100644 index d8fc2604af7f4a..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/buck-runner/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "KEYSTORE_TARGET", "react_native_dep", "react_native_integration_tests_target", "react_native_target", "rn_android_binary") - -# 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: -# -# node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js -# gradle :ReactAndroid:packageReactNdkLibsForBuck -# buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests -# ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests -rn_android_binary( - name = "instrumentation-tests", - keystore = KEYSTORE_TARGET, - manifest = "AndroidManifest.xml", - use_split_dex = True, - deps = [ - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_integration_tests_target("assets:assets"), - react_native_integration_tests_target("java/com/facebook/react/tests:tests"), - react_native_target("java/com/facebook/react/devsupport:devsupport"), - react_native_target("jni/prebuilt:android-jsc"), - react_native_target("jni/prebuilt:reactnative-libs"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK deleted file mode 100644 index 0361100d9af447..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_android_toplevel_dep", "react_native_dep", "react_native_integration_tests_target", "react_native_target", "rn_android_library") - -rn_android_library( - name = "testing", - srcs = glob( - ["*.java"], - exclude = [ - "idledetection/**/*.java", - "network/**/*.java", - ], - ), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("java/com/facebook/hermes/reactexecutor:reactexecutor"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/buck-android-support:buck-android-support"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_android_toplevel_dep("third-party/java/mockito2:mockito2"), - react_native_dep("third-party/android/androidx:test-runner"), - react_native_integration_tests_target("java/com/facebook/react/testing/idledetection:idledetection"), - react_native_integration_tests_target("java/com/facebook/react/testing/network:network"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/fabric:fabric"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/debug:interfaces"), - react_native_target("java/com/facebook/react/shell:shell"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK deleted file mode 100644 index 3823068318f1bb..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "idledetection", - srcs = glob(["**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:test-runner"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK deleted file mode 100644 index 5453d40738fcfd..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK deleted file mode 100644 index 54f4763170717b..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +++ /dev/null @@ -1,40 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "react_native_dep", - "react_native_integration_tests_target", - "react_native_target", - "rn_android_library", -) - -rn_android_library( - name = "rule", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:test-espresso-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/android/androidx:test-rules"), - react_native_dep("third-party/android/androidx:test-runner"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_integration_tests_target("java/com/facebook/react/testing:testing"), - react_native_integration_tests_target("java/com/facebook/react/testing/idledetection:idledetection"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/shell:shell"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_dep("java/com/facebook/testing/instrumentation:instrumentation"), - react_native_dep("java/com/facebook/testing/instrumentation/base:base"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK deleted file mode 100644 index 7ea49417c7719b..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +++ /dev/null @@ -1,41 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_integration_tests_target", "react_native_target", "rn_android_library") - -rn_android_library( - name = "tests", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_integration_tests_target("java/com/facebook/react/testing:testing"), - react_native_integration_tests_target("java/com/facebook/react/testing/idledetection:idledetection"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/appstate:appstate"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/deviceinfo:deviceinfo"), - react_native_target("java/com/facebook/react/modules/share:share"), - react_native_target("java/com/facebook/react/modules/systeminfo:systeminfo"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager/util:util"), - react_native_target("java/com/facebook/react/views/progressbar:progressbar"), - react_native_target("java/com/facebook/react/views/scroll:scroll"), - react_native_target("java/com/facebook/react/views/swiperefresh:swiperefresh"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/textinput:textinput"), - react_native_target("java/com/facebook/react/views/view:view"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK b/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK deleted file mode 100644 index d2c70f7c498aec..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "react_native_dep", - "react_native_integration_tests_target", - "react_native_target", - "rn_android_library", -) - -rn_android_library( - name = "core", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - deps = [ - react_native_dep("third-party/android/androidx:test-espresso-core"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/android/androidx:test-rules"), - react_native_dep("third-party/android/androidx:test-runner"), - react_native_integration_tests_target("java/com/facebook/react/testing:testing"), - react_native_integration_tests_target("java/com/facebook/react/testing/rule:rule"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/shell:shell"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_dep("java/com/facebook/fbreact/testing:testing"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/androidTest/js/BUCK b/packages/react-native/ReactAndroid/src/androidTest/js/BUCK deleted file mode 100644 index c7b68b54681994..00000000000000 --- a/packages/react-native/ReactAndroid/src/androidTest/js/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//tools/build_defs:js_library_glob.bzl", "js_library_glob") -load("//tools/build_defs/oss:metro_defs.bzl", "rn_library") - -# This file was generated by running -# js1 build buckfiles - -rn_library( - name = "js", - srcs = js_library_glob( - [ - "**/*", - ], - excludes = [ - "**/__*__/**", - "**/*.command", - "**/*.md", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - skip_processors = True, - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/RKJSModules/vendor/react:react", - "//xplat/js/react-native-github:react-native", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/BUCK deleted file mode 100644 index 052fc03d85cc99..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "yoga", - srcs = glob(["yoga/**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = ["PUBLIC"], - deps = [ - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/BUCK deleted file mode 100644 index 470bb622e09e37..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "model", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK deleted file mode 100644 index 0b84d157401198..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "holder", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], - exported_deps = [ - react_native_dep("java/com/facebook/debug/debugoverlay/model:model"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK deleted file mode 100644 index 407456dfcddfed..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "tags", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], - exported_deps = [ - react_native_dep("java/com/facebook/debug/debugoverlay/model:model"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK deleted file mode 100644 index ece68a4cdd3c6e..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "instrumentation", - srcs = ["HermesMemoryDumper.java"], - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], -) - -rn_android_library( - name = "hermes_samplingprofiler", - srcs = ["HermesSamplingProfiler.java"], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = ["PUBLIC"], - deps = [ - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("libraries/fbjni:java"), - react_native_target("jni/react/hermes/instrumentation:jni_hermes_samplingprofiler"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/BUCK deleted file mode 100644 index 2c954374c38dcf..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/BUCK +++ /dev/null @@ -1,40 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "reactexecutor", - srcs = [ - "HermesExecutor.java", - "HermesExecutorFactory.java", - ], - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/hermes/instrumentation:instrumentation"), - react_native_target("java/com/facebook/hermes/instrumentation:hermes_samplingprofiler"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("jni/react/hermes/reactexecutor:jni"), - ":runtimeconfig", - ], -) - -rn_android_library( - name = "runtimeconfig", - srcs = [ - "RuntimeConfig.java", - ], - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/hermes/instrumentation:instrumentation"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/unicode/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/unicode/BUCK deleted file mode 100644 index d514e29d330cf1..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/unicode/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "unicode", - srcs = glob(["**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/perftest/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/perftest/BUCK deleted file mode 100644 index dee506eb491ad6..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/perftest/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_library") - -rn_android_library( - name = "perftest", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK deleted file mode 100644 index 31a5b0ee89b2f8..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_library", "rn_prebuilt_jar") - -rn_prebuilt_jar( - name = "yoga-annotations", - binary_jar = ":annotations-binary.jar", - visibility = ["PUBLIC"], -) - -fb_native.remote_file( - name = "annotations-binary.jar", - sha1 = "fcbbb39052e6490eaaf6a6959c49c3a4fbe87c63", - url = "mvn:com.facebook.yoga:proguard-annotations:jar:1.19.0", -) - -rn_android_library( - name = "annotations", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - proguard_config = "proguard_annotations.pro", - visibility = [ - "PUBLIC", - ], - exported_deps = [ - ":yoga-annotations", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/BUCK deleted file mode 100644 index 0c327fd5a43c59..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/BUCK +++ /dev/null @@ -1,60 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -oncall("react_native") - -rn_android_library( - name = "react", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("java/com/facebook/hermes/reactexecutor:reactexecutor"), - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:autofill"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/debug/tags:tags"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/devsupport:devsupport"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/jscexecutor:jscexecutor"), - react_native_target("java/com/facebook/react/jstasks:jstasks"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/modules/appearance:appearance"), - react_native_target("java/com/facebook/react/modules/appregistry:appregistry"), - react_native_target("java/com/facebook/react/modules/debug:debug"), - react_native_target("java/com/facebook/react/modules/debug:interfaces"), - react_native_target("java/com/facebook/react/modules/deviceinfo:deviceinfo"), - react_native_target("java/com/facebook/react/modules/devtoolssettings:devtoolssettings"), - react_native_target("java/com/facebook/react/modules/fabric:fabric"), - react_native_target("java/com/facebook/react/modules/systeminfo:systeminfo"), - react_native_target("java/com/facebook/react/modules/toast:toast"), - react_native_target("java/com/facebook/react/surface:surface"), - react_native_target("java/com/facebook/react/turbomodule/core:core"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/views/imagehelper:imagehelper"), - react_native_target("java/com/facebook/react/views/traceupdateoverlay:traceupdateoverlay"), - ], - exported_deps = [ - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/packagerconnection:packagerconnection"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK deleted file mode 100644 index 9a9a1dbbea057c..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -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 = "animated", - srcs = glob([ - "*.java", - ]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/view:view"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK deleted file mode 100644 index 5a62bfc6d34498..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK +++ /dev/null @@ -1,93 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_android_library") - -INTERFACES = [ - "Dynamic.java", - "ReadableMap.java", - "ReadableMapKeySetIterator.java", - "WritableArray.java", - "WritableMap.java", - "NativeModule.java", - "JSInstance.java", - "ReadableArray.java", - "ReadableType.java", - "NativeArrayInterface.java", - "LifecycleEventListener.java", -] - -rn_android_library( - name = "bridge", - srcs = glob( - ["**/*.java"], - exclude = INTERFACES, - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - proguard_config = "reactnative.pro", - required_for_source_only_abi = True, - tests = [ - react_native_tests_target("java/com/facebook/react/bridge:bridge"), - ], - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("java/com/facebook/debug/debugoverlay/model:model"), - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/debug/tags:tags"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/turbomodule/core:callinvokerholder"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/uimanager/common:common"), - react_native_target("jni/react/jni:jni"), - ], - exported_deps = [ - react_native_dep("libraries/fbjni:java"), - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - react_native_dep("third-party/java/jsr-330:jsr-330"), - react_native_target("java/com/facebook/react/bridge:interfaces"), - ], -) - -rn_android_library( - name = "interfaces", - srcs = glob(INTERFACES), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - proguard_config = "reactnative.pro", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/debug/tags:tags"), - ], - exported_deps = [ - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - react_native_dep("third-party/java/jsr-330:jsr-330"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/BUCK deleted file mode 100644 index 211017b73eabe8..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +++ /dev/null @@ -1,47 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_build_config", "rn_android_library") - -SUB_PROJECTS = [ - "network/**/*", - "mapbuffer/**/*", -] - -rn_android_library( - name = "common", - srcs = glob( - ["**/*.java"], - exclude = SUB_PROJECTS, - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - ":build_config", - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], - exported_deps = [ - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - ], -) - -rn_android_build_config( - name = "build_config", - package = "com.facebook.react", - values = [ - "boolean IS_INTERNAL_BUILD = true", - ], - visibility = [ - "PUBLIC", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK deleted file mode 100644 index 590e127eaef7f9..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "FBJNI_TARGET", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "mapbuffer", - srcs = glob([ - "*.java", - "*.kt", - ]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "KOTLIN", - pure_kotlin = False, - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - FBJNI_TARGET, - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_target("jni/react/mapbuffer:jni"), - react_native_dep("libraries/fbjni:java"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_target("java/com/facebook/react/common:common"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - # dependencies used for systraces - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK deleted file mode 100644 index 102eae06fefb11..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "network", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/BUCK deleted file mode 100644 index 959e44f7c85617..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/config/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "config", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK deleted file mode 100644 index 716332abd65aea..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +++ /dev/null @@ -1,64 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - manifest = "AndroidManifest.xml", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/debug/tags:tags"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/network:network"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/debug:debug"), - react_native_target("java/com/facebook/react/modules/debug:interfaces"), - react_native_target("java/com/facebook/react/modules/systeminfo:systeminfo"), - react_native_target("java/com/facebook/react/packagerconnection:packagerconnection"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/util:util"), - react_native_target("res:devsupport"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) - -rn_android_library( - name = "interfaces", - srcs = glob(["interfaces/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/modules/debug:interfaces"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK deleted file mode 100644 index 1b06bd1152a24d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +++ /dev/null @@ -1,49 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "fabric", - srcs = glob([ - "*.java", - "events/**/*.java", - "jsi/*.java", - "mounting/**/*.java", - ]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "KOTLIN", - pure_kotlin = False, - required_for_source_only_abi = True, - source = "8", - target = "8", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/debug/tags:tags"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/mapbuffer:mapbuffer"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/common:common"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("jni/react/fabric:jni"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK deleted file mode 100644 index bae4c2c5df0b74..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "jscexecutor", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("jni/react/jscexecutor:jni"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK deleted file mode 100644 index 953751ea32f1f0..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "jstasks", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/modules/appregistry:appregistry"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK deleted file mode 100644 index a2320c0e97461c..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "annotations", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:interfaces"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/BUCK deleted file mode 100644 index 263a790af22473..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/model/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "model", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/processing/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/processing/BUCK deleted file mode 100644 index 486997e369d2a6..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/processing/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -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( - name = "processing", - does_not_affect_abi = True, - processor_class = "com.facebook.react.module.processing.ReactModuleSpecProcessor", - visibility = [ - "PUBLIC", - ], - deps = [ - ":processing-lib", - ], -) - -rn_java_library( - name = "processing-lib", - srcs = glob(["*.java"]), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - source = "8", - target = "8", - deps = [ - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/javapoet:javapoet"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK deleted file mode 100644 index 6d272ba2cd6ac9..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -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 = "accessibilityinfo", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK deleted file mode 100644 index 044b4c8d0941a1..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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 = "appearance", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/BUCK deleted file mode 100644 index 194cad5d24da87..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_target", "rn_android_library") - -rn_android_library( - name = "appregistry", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK deleted file mode 100644 index 3b32ccead2992a..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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 = "appstate", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK deleted file mode 100644 index 12033d09793080..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -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 = "blob", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/network:network"), - react_native_target("java/com/facebook/react/modules/websocket:websocket"), - react_native_target("jni/react/reactnativeblob:jni"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK deleted file mode 100644 index 6489f72dd6d029..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -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 = "camera", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK deleted file mode 100644 index 232b7b914af167..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -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 = "clipboard", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK deleted file mode 100644 index c7f0867606b8c0..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "common", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK deleted file mode 100644 index adfb5a46fc1582..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -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 = "core", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/jstasks:jstasks"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/util:util"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK deleted file mode 100644 index a0f564e9d97eaf..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +++ /dev/null @@ -1,46 +0,0 @@ -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 = "debug", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/debug:interfaces"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) - -rn_android_library( - name = "interfaces", - srcs = glob(["interfaces/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK deleted file mode 100644 index cd88a53d271375..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -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 = "deviceinfo", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/BUCK deleted file mode 100644 index 3df9b66264fdd5..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -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 = "devloading", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:devsupport"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/BUCK deleted file mode 100644 index 3778bce519eee0..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -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 = "devtoolssettings", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK deleted file mode 100644 index 0030fa611cc3f3..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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 = "dialog", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/BUCK deleted file mode 100644 index b0e1db4088853e..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_target", "rn_android_library") - -rn_android_library( - name = "fabric", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK deleted file mode 100644 index d54fe7286d1fa7..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK +++ /dev/null @@ -1,41 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "fresco", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline-okhttp3"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3-urlconnection"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/network:network"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], - exported_deps = [ - react_native_target("java/com/facebook/react/modules/common:common"), - react_native_target("java/com/facebook/react/bridge:interfaces"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK deleted file mode 100644 index 7a4d6e02d2d4e8..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -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 = "i18nmanager", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_root_target(":FBReactNativeSpec"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK deleted file mode 100644 index b396cabccea98d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -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 = "image", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/modules/fresco:fresco"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/views/imagehelper:imagehelper"), - react_native_target("java/com/facebook/react/views/image:image"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK deleted file mode 100644 index a72f21ee44619e..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -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 = "intent", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK deleted file mode 100644 index 05173e9e1f5353..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -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 = "network", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3-urlconnection"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/network:network"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK deleted file mode 100644 index 6f0db9877bd6f8..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -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 = "permissions", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK deleted file mode 100644 index 0bcc6be310e062..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -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 = "share", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK deleted file mode 100644 index fdb3e21fea3c5d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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 = "sound", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK deleted file mode 100644 index 4d7079efac0b9c..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -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 = "statusbar", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK deleted file mode 100644 index e35b947dbc09b2..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +++ /dev/null @@ -1,53 +0,0 @@ -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 = "systeminfo", - srcs = [ - "AndroidInfoModule.java", - "ReactNativeVersion.java", - ], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("res:systeminfo"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ":systeminfo-moduleless", - ], -) - -rn_android_library( - name = "systeminfo-moduleless", - srcs = [ - "AndroidInfoHelpers.java", - ], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("java/com/facebook/react/common:common"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("res:systeminfo"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK deleted file mode 100644 index d1660ab7f20dc3..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -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 = "toast", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK deleted file mode 100644 index f584ea54ef8b20..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -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 = "vibration", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - ], - exported_deps = [react_native_root_target(":FBReactNativeSpec")], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK deleted file mode 100644 index cd32f6785935a5..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -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 = "websocket", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/network:network"), - ], - exported_deps = [ - react_native_root_target(":FBReactNativeSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/BUCK deleted file mode 100644 index 53f9c52773026a..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "packagerconnection", - srcs = glob( - ["**/*.java"], - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbjni:java"), - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react/modules/systeminfo:systeminfo-moduleless"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/processing/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/processing/BUCK deleted file mode 100644 index 2849438e0980bb..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/processing/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_java_annotation_processor", "rn_java_library") - -rn_java_annotation_processor( - name = "processing", - does_not_affect_abi = True, - processor_class = "com.facebook.react.processing.ReactPropertyProcessor", - visibility = [ - "PUBLIC", - ], - deps = [ - ":processing-lib", - ], -) - -rn_java_library( - name = "processing-lib", - srcs = glob(["*.java"]), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - source = "7", - target = "7", - deps = [ - YOGA_TARGET, - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/javapoet:javapoet"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK deleted file mode 100644 index af677fa38cc4c0..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "reactperflogger", - srcs = glob( - [ - "*.java", - ], - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("libraries/fbjni:java"), - react_native_target("jni/react/reactperflogger:jni"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK deleted file mode 100644 index 5621dd31762a68..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +++ /dev/null @@ -1,69 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/animated:animated"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:devsupport"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("java/com/facebook/react/modules/accessibilityinfo:accessibilityinfo"), - react_native_target("java/com/facebook/react/modules/appearance:appearance"), - react_native_target("java/com/facebook/react/modules/appstate:appstate"), - react_native_target("java/com/facebook/react/modules/blob:blob"), - react_native_target("java/com/facebook/react/modules/camera:camera"), - react_native_target("java/com/facebook/react/modules/clipboard:clipboard"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/debug:debug"), - react_native_target("java/com/facebook/react/modules/devtoolssettings:devtoolssettings"), - react_native_target("java/com/facebook/react/modules/dialog:dialog"), - react_native_target("java/com/facebook/react/modules/fresco:fresco"), - react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), - react_native_target("java/com/facebook/react/modules/image:image"), - react_native_target("java/com/facebook/react/modules/intent:intent"), - react_native_target("java/com/facebook/react/modules/network:network"), - react_native_target("java/com/facebook/react/modules/permissions:permissions"), - react_native_target("java/com/facebook/react/modules/share:share"), - react_native_target("java/com/facebook/react/modules/sound:sound"), - react_native_target("java/com/facebook/react/modules/statusbar:statusbar"), - react_native_target("java/com/facebook/react/modules/toast:toast"), - react_native_target("java/com/facebook/react/modules/vibration:vibration"), - react_native_target("java/com/facebook/react/modules/websocket:websocket"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/views/drawer:drawer"), - react_native_target("java/com/facebook/react/views/image:image"), - react_native_target("java/com/facebook/react/views/modal:modal"), - react_native_target("java/com/facebook/react/views/progressbar:progressbar"), - react_native_target("java/com/facebook/react/views/scroll:scroll"), - react_native_target("java/com/facebook/react/views/swiperefresh:swiperefresh"), - react_native_target("java/com/facebook/react/views/switchview:switchview"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/text/frescosupport:frescosupport"), - react_native_target("java/com/facebook/react/views/textinput:textinput"), - react_native_target("java/com/facebook/react/views/unimplementedview:unimplementedview"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("res:shell"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/BUCK deleted file mode 100644 index 844452139758c7..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/surface/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK deleted file mode 100644 index e8949030a88133..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "touch", - srcs = glob(["**/*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/BUCK deleted file mode 100644 index 6fd897c5e74785..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/BUCK +++ /dev/null @@ -1,60 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "core", - srcs = glob( - [ - "*.java", - ], - exclude = ["CallInvokerHolderImpl.java"], - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("java/com/facebook/proguard/annotations:annotations"), - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/reactperflogger:reactperflogger"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/react/bridge:interfaces"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/model:model"), - react_native_target("jni/react/turbomodule:jni"), - ":callinvokerholder", - ], - exported_deps = [ - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], -) - -rn_android_library( - name = "callinvokerholder", - srcs = ["CallInvokerHolderImpl.java"], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_dep("libraries/fbjni:java"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BUCK deleted file mode 100644 index d0f58b83e98be3..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "interfaces", - srcs = glob( - ["*.java"], - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("java/com/facebook/react/bridge:interfaces"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK deleted file mode 100644 index 2a7d2fab4cf14d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +++ /dev/null @@ -1,112 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library") - -INTERFACES_FILES = [ - "BaseViewManagerDelegate.java", - "BaseViewManagerInterface.java", - "ViewManagerDelegate.java", - "ViewProps.java", - "Spacing.java", - "FloatUtil.java", -] - -rn_android_library( - name = "interfaces", - srcs = glob(INTERFACES_FILES), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) - -rn_android_library( - name = "uimanager", - srcs = glob( - [ - "*.java", - "debug/*.java", - "events/*.java", - "layoutanimation/*.java", - ], - exclude = [ - "DisplayMetricsHolder.java", - ] + INTERFACES_FILES, - ), - autoglob = False, - exported_provided_deps = [ - react_native_dep("third-party/android/androidx:annotation"), - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - ":DisplayMetrics", - YOGA_TARGET, - react_native_dep("java/com/facebook/systrace:systrace"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_target("java/com/facebook/debug/holder:holder"), - react_native_target("java/com/facebook/debug/tags:tags"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/mapbuffer:mapbuffer"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager/util:util"), - react_native_target("jni/react/uimanager:jni"), - react_native_target("res:uimanager"), - ], - exported_deps = [ - ":DisplayMetrics", - ":interfaces", - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/uimanager/common:common"), - ], -) - -rn_android_library( - name = "DisplayMetrics", - srcs = [ - "DisplayMetricsHolder.java", - ], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK deleted file mode 100644 index 74f9d99132977e..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "annotations", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/BUCK deleted file mode 100644 index 7e66ae0369c061..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "common", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/BUCK deleted file mode 100644 index 67849ff191f742..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/BUCK deleted file mode 100644 index bfcbd4be218f98..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/util/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/BUCK deleted file mode 100644 index 005d554f342ca6..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "common", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK deleted file mode 100644 index 5579a691eddf52..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:drawerlayout"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_root_target(":generated_components_java-FBReactNativeComponentSpec"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/scroll:scroll"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK deleted file mode 100644 index eecd39d1a30a49..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +++ /dev/null @@ -1,67 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library") - -IMAGE_EVENT_FILES = [ - "ImageLoadEvent.java", -] - -rn_android_library( - name = "imageevents", - srcs = IMAGE_EVENT_FILES, - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = ["PUBLIC"], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], -) - -rn_android_library( - name = "image", - srcs = glob( - ["*.java"], - exclude = IMAGE_EVENT_FILES, - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/fresco:fresco"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/util:util"), - react_native_target("java/com/facebook/react/views/imagehelper:withmultisource"), - ], - exported_deps = [ - ":imageevents", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK deleted file mode 100644 index ed0986c2e1e3c5..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK +++ /dev/null @@ -1,44 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "imagehelper", - srcs = glob( - ["*.java"], - exclude = ["MultiSourceHelper.java"], - ), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], -) - -rn_android_library( - name = "withmultisource", - srcs = ["MultiSourceHelper.java"], - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], - exported_deps = [ - ":imagehelper", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK deleted file mode 100644 index c3c06690b6f666..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_root_target(":generated_components_java-FBReactNativeComponentSpec"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/common:common"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("res:modal"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK deleted file mode 100644 index ba2f92b743d10d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_root_target(":generated_components_java-FBReactNativeComponentSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK deleted file mode 100644 index 0a80d6182190bc..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK deleted file mode 100644 index 700d8bd2ebe4b8..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/android/androidx:swiperefreshlayout"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/scroll:scroll"), - ], - exported_deps = [ - react_native_root_target(":generated_components_java-FBReactNativeComponentSpec"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK deleted file mode 100644 index 7c8001fc4c16af..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_root_target(":generated_components_java-FBReactNativeComponentSpec"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK deleted file mode 100644 index 5a074c2ec2f258..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "KOTLIN", - pure_kotlin = False, - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/mapbuffer:mapbuffer"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK deleted file mode 100644 index 7f8afcb93b4f78..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK +++ /dev/null @@ -1,33 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/fresco:fresco"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/image:image"), - react_native_target("java/com/facebook/react/views/text:text"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK deleted file mode 100644 index b5fb5c0014cfcf..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +++ /dev/null @@ -1,39 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "KOTLIN", - pure_kotlin = False, - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/android/androidx:autofill"), - react_native_dep("third-party/android/androidx:core"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/imagehelper:imagehelper"), - react_native_target("java/com/facebook/react/views/scroll:scroll"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/common/mapbuffer:mapbuffer"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("java/com/facebook/react/config:config"), - ], - exported_deps = [ - react_native_dep("third-party/android/androidx:appcompat"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/traceupdateoverlay/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/traceupdateoverlay/BUCK deleted file mode 100644 index 832e27f97d2ce3..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/traceupdateoverlay/BUCK +++ /dev/null @@ -1,29 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -oncall("react_native") - -rn_android_library( - name = "traceupdateoverlay", - srcs = glob(["*.java"]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/util:util"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK deleted file mode 100644 index c7a9106c115a7a..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -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, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:appcompat"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK deleted file mode 100644 index e78142ec301112..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK +++ /dev/null @@ -1,39 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library") - -rn_android_library( - name = "view", - srcs = glob([ - "*.java", - "*.kt", - ]), - autoglob = False, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - language = "KOTLIN", - pure_kotlin = False, - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/infer-annotations:infer-annotations"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/mapbuffer:mapbuffer"), - react_native_target("java/com/facebook/react/config:config"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/i18nmanager:i18nmanager"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/common:common"), - react_native_target("res:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/systrace/BUCK b/packages/react-native/ReactAndroid/src/main/java/com/facebook/systrace/BUCK deleted file mode 100644 index a3c16292a2c99c..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/systrace/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "systrace", - srcs = glob(["*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:tracing"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/fb/BUCK b/packages/react-native/ReactAndroid/src/main/jni/first-party/fb/BUCK deleted file mode 100644 index 44fef2c4b67665..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/fb/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "JNI_TARGET", "oss_cxx_library", "subdir_glob") - -# This target is only used in open source -oss_cxx_library( - name = "jni", - srcs = glob([ - "*.cpp", - "jni/*.cpp", - "lyra/*.cpp", - ]), - header_namespace = "", - exported_headers = subdir_glob([ - ("include", "fb/**/*.h"), - ("include", "fbjni/**/*.h"), - ("include", "jni/*.h"), - ]), - compiler_flags = [ - "-fno-omit-frame-pointer", - "-fexceptions", - "-Wall", - "-Werror", - "-std=c++17", - "-DDISABLE_CPUCAP", - "-DDISABLE_XPLAT", - ], - linker_flags = [ - "-llog", - ], - preferred_linkage = "static", - soname = "libfb.$(ext)", - visibility = ["PUBLIC"], - deps = [ - JNI_TARGET, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK b/packages/react-native/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK deleted file mode 100644 index fdbcf95fdbf457..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/fbgloginit/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "GLOG_DEP", "cxx_library") - -cxx_library( - name = "fbgloginit", - srcs = [ - "glog_init.cpp", - ], - header_namespace = "", - exported_headers = ["fb/glog_init.h"], - compiler_flags = [ - "-fexceptions", - "-fno-omit-frame-pointer", - ], - linker_flags = [ - "-llog", - ], - visibility = ["PUBLIC"], - deps = [ - GLOG_DEP, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK b/packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK deleted file mode 100644 index d7f0b0fcab1275..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/jni-hack/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "cxx_library") - -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -cxx_library( - name = "jni-hack", - header_namespace = "", - exported_headers = [ - "jni.h", - "real/jni.h", - ], - force_static = True, - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/BUCK b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/BUCK deleted file mode 100644 index 3e2534008c9b25..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "FBJNI_TARGET", "oss_cxx_library") - -# This target is only used in open source -oss_cxx_library( - name = "jni", - srcs = glob(["jni/*.cpp"]), - header_namespace = "", - compiler_flags = [ - "-fno-omit-frame-pointer", - "-fexceptions", - "-Wall", - "-Werror", - "-O3", - "-std=c++11", - ], - soname = "libyoga.$(ext)", - visibility = ["PUBLIC"], - deps = [ - "//packages/react-native/ReactCommon/yoga:yoga", - FBJNI_TARGET, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/prebuilt/BUCK b/packages/react-native/ReactAndroid/src/main/jni/prebuilt/BUCK deleted file mode 100644 index 1c0a24b0dd0ea3..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/prebuilt/BUCK +++ /dev/null @@ -1,21 +0,0 @@ -# Temp workaround to get the build working e2e, Gradle builds them for us -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_prebuilt_aar", "rn_prebuilt_native_library") - -rn_prebuilt_native_library( - name = "reactnative-libs", - native_libs = "lib", - visibility = ["PUBLIC"], -) - -rn_android_prebuilt_aar( - name = "android-jsc", - aar = ":android-jsc-aar", - visibility = ["PUBLIC"], -) - -fb_native.remote_file( - name = "android-jsc-aar", - sha1 = "880cedd93f43e0fc841f01f2fa185a63d9230f85", - url = "mvn:org.webkit:android-jsc:aar:r174650", -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/fabric/BUCK deleted file mode 100644 index 5172ec4eec5f60..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/fabric/BUCK +++ /dev/null @@ -1,54 +0,0 @@ -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( - name = "jni", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/fabric", - ), - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - soname = "libfabricjni.$(ext)", - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/renderer/animations:animations"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/scheduler:scheduler"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_target("jni/react/jni:jni"), - "//xplat/fbsystrace:fbsystrace", - "//xplat/jsi:JSIDynamic", - "//xplat/jsi:jsi", - "//xplat/third-party/linker_lib:atomic", - FBJNI_TARGET, - # TODO T71316899: Extract CoreComponentsRegistry out of this module - # The following dependencies are required by CoreComponentsRegistry - "//xplat/js/react-native-github:generated_components-rncore", - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/modal:modal"), - react_native_xplat_target("react/renderer/components/switch:androidswitch"), - react_native_xplat_target("react/renderer/components/progressbar:androidprogressbar"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/textinput:androidtextinput"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/instrumentation/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/hermes/instrumentation/BUCK deleted file mode 100644 index 6f89b5bc91c495..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/instrumentation/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_dep", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jni_hermes_samplingprofiler", - srcs = [ - "HermesSamplingProfiler.cpp", - "OnLoad.cpp", - ], - headers = ["HermesSamplingProfiler.h"], - header_namespace = "", - compiler_flags_enable_exceptions = True, # TODO: is this necessary? - compiler_flags_enable_rtti = True, # TODO: is this necessary? - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - soname = "libjsijniprofiler.$(ext)", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("jni/react/jni:jni"), - FBJNI_TARGET, - react_native_xplat_dep("hermes/API:HermesAPIFullOrLean"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/BUCK deleted file mode 100644 index e292584fa62864..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/hermes/reactexecutor/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jni-interface", - srcs = [], - header_namespace = "hermes/reactexecutor", - exported_headers = glob(["*.h"]), - visibility = ["PUBLIC"], -) - -rn_xplat_cxx_library( - name = "jni", - srcs = ["OnLoad.cpp"], - headers = [], - header_namespace = "", - compiler_flags = ["-fexceptions"], - soname = "libhermes_executor.$(ext)", - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/jni/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/jni/BUCK deleted file mode 100644 index 7d45ddab9948ff..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/jni/BUCK +++ /dev/null @@ -1,75 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_dep", "react_native_xplat_target", "rn_xplat_cxx_library") - -EXPORTED_HEADERS = [ - "CxxModuleWrapper.h", - "CxxModuleWrapperBase.h", - "CxxSharedModuleWrapper.h", - "JavaModuleWrapper.h", - "JavaScriptExecutorHolder.h", - "JCallback.h", - "JMessageQueueThread.h", - "JReactMarker.h", - "JSLoader.h", - "JSLogging.h", - "MethodInvoker.h", - "ModuleRegistryBuilder.h", - "NativeArray.h", - "NativeCommon.h", - "NativeMap.h", - "ReadableNativeArray.h", - "ReadableNativeMap.h", - "JRuntimeExecutor.h", - "JRuntimeScheduler.h", - "WritableNativeArray.h", - "WritableNativeMap.h", -] - -rn_xplat_cxx_library( - name = "jni", - srcs = glob(["*.cpp"]), - headers = glob( - ["*.h"], - exclude = EXPORTED_HEADERS, - ), - header_namespace = "react/jni", - exported_headers = EXPORTED_HEADERS, - compiler_flags = [ - "-Wno-pessimizing-move", - "-Wno-inconsistent-missing-override", - ], - compiler_flags_enable_exceptions = True, - compiler_flags_enable_rtti = True, # dynamic_cast used within ReadableNative* - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNativeJNI\"", - "-DWITH_FBSYSTRACE=1", - "-DWITH_INSPECTOR=1", - "-DWITH_GLOGINIT=0", - ], - soname = "libreactnativejni.$(ext)", - visibility = [ - "PUBLIC", - ], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - "//xplat/folly:json", - "//xplat/third-party/linker_lib:android", - "//xplat/third-party/linker_lib:atomic", - react_native_target("jni/react/turbomodule:callinvokerholder"), - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("cxxreact:jsbigstring"), - react_native_xplat_target("cxxreact:module"), - react_native_xplat_target("jsinspector:jsinspector"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_xplat_target("react/renderer/runtimescheduler:runtimescheduler"), - react_native_xplat_target("logger:logger"), - react_native_xplat_dep("jsi:jsi"), - FBJNI_TARGET, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/jscexecutor/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/jscexecutor/BUCK deleted file mode 100644 index 8b3e82eb665f94..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/jscexecutor/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_target", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jni", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - header_namespace = "", - compiler_flags_enable_exceptions = True, # TODO: is this necessary? - compiler_flags_enable_rtti = True, # TODO: is this necessary? - fbandroid_allow_jni_merging = True, - platforms = ANDROID, - soname = "libjscexecutor.$(ext)", - visibility = [ - react_native_target("java/com/facebook/react/jscexecutor:jscexecutor"), - ], - deps = [ - FBJNI_TARGET, - react_native_target("jni/react/jni:jni"), - react_native_xplat_target("jsc:JSCRuntime"), - react_native_xplat_target("jsiexecutor:jsiexecutor"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/mapbuffer/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/mapbuffer/BUCK deleted file mode 100644 index d211b7cdfe4246..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/mapbuffer/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -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( - name = "jni", - srcs = glob(["**/*.cpp"]), - headers = glob(["**/*.h"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("react/common/mapbuffer", "*.h"), - ], - prefix = "react/common/mapbuffer", - ), - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - soname = "libmapbufferjni.$(ext)", - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - react_native_xplat_target("react/debug:debug"), - FBJNI_TARGET, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/perftests/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/perftests/BUCK deleted file mode 100644 index 423628782b859d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/perftests/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "react_native_xplat_target", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "perftests", - srcs = ["OnLoad.cpp"], - platforms = ANDROID, - soname = "libnativereactperftests.$(ext)", - visibility = [ - "//fbandroid/instrumentation_tests/com/facebook/react/...", - ], - deps = [ - "//fbandroid/native:base", - "//fbandroid/native/fb:fb", - react_native_xplat_target("cxxreact:module"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/reactnativeblob/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/reactnativeblob/BUCK deleted file mode 100644 index 3ef04910b81609..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/reactnativeblob/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_dep", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jni", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - header_namespace = "", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - soname = "libreactnativeblob.$(ext)", - visibility = ["PUBLIC"], - deps = [ - react_native_target("jni/react/jni:jni"), - FBJNI_TARGET, - react_native_xplat_dep("jsi:jsi"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/reactperflogger/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/reactperflogger/BUCK deleted file mode 100644 index 8421b1b3860e6d..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/reactperflogger/BUCK +++ /dev/null @@ -1,31 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_xplat_target", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jni", - srcs = [ - "reactperflogger/OnLoad.cpp", - ], - header_namespace = "", - exported_headers = { - "reactperflogger/JNativeModulePerfLogger.h": "reactperflogger/JNativeModulePerfLogger.h", - }, - fbandroid_allow_jni_merging = True, - fbandroid_labels = [ - ], - labels = ["pfh:ReactNative_CommonInfrastructurePlaceholder"], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - soname = "libreactperfloggerjni.$(ext)", - visibility = [ - "PUBLIC", - ], - deps = [ - FBJNI_TARGET, - ], - exported_deps = [ - react_native_xplat_target("reactperflogger:reactperflogger"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/turbomodule/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/turbomodule/BUCK deleted file mode 100644 index e546b70a044399..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/turbomodule/BUCK +++ /dev/null @@ -1,69 +0,0 @@ -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( - name = "jni", - srcs = [ - "ReactCommon/CompositeTurboModuleManagerDelegate.cpp", - "ReactCommon/OnLoad.cpp", - "ReactCommon/TurboModuleManager.cpp", - ], - header_namespace = "", - exported_headers = { - "ReactCommon/CompositeTurboModuleManagerDelegate.h": "ReactCommon/CompositeTurboModuleManagerDelegate.h", - "ReactCommon/TurboModuleManager.h": "ReactCommon/TurboModuleManager.h", - "ReactCommon/TurboModuleManagerDelegate.h": "ReactCommon/TurboModuleManagerDelegate.h", - }, - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - soname = "libturbomodulejsijni.$(ext)", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("jni/react/jni:jni"), - FBJNI_TARGET, - ], - exported_deps = [ - ":callinvokerholder", - react_native_xplat_shared_library_target("jsi:jsi"), - react_native_xplat_target("react/nativemodule/core:core"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_target("jni/react/reactperflogger:jni"), - ], -) - -rn_xplat_cxx_library( - name = "callinvokerholder", - srcs = [ - "ReactCommon/CallInvokerHolder.cpp", - ], - header_namespace = "", - exported_headers = { - "ReactCommon/CallInvokerHolder.h": "ReactCommon/CallInvokerHolder.h", - }, - fbandroid_deps = [ - FBJNI_TARGET, - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preferred_linkage = "static", - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - exported_deps = [ - react_native_xplat_target("callinvoker:callinvoker"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/uimanager/BUCK b/packages/react-native/ReactAndroid/src/main/jni/react/uimanager/BUCK deleted file mode 100644 index c554a6dbdefd82..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/react/uimanager/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -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( - name = "jni", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "**/*.h"), - ], - prefix = "react/uimanager/jni", - ), - fbandroid_allow_jni_merging = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = ANDROID, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - soname = "libuimanagerjni.$(ext)", - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/componentregistry/native:native"), - react_native_target("jni/react/jni:jni"), - "//xplat/fbsystrace:fbsystrace", - "//xplat/jsi:JSIDynamic", - "//xplat/jsi:jsi", - "//xplat/third-party/linker_lib:atomic", - FBJNI_TARGET, - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/jni/third-party/glibc/BUCK b/packages/react-native/ReactAndroid/src/main/jni/third-party/glibc/BUCK deleted file mode 100644 index e3a4f475489193..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/jni/third-party/glibc/BUCK +++ /dev/null @@ -1,69 +0,0 @@ -# NOTE(agallagher): The platform really should be responsible for providing -# this type of provided dependency. As it is now, we need to setup dummy -# rules to model glibc's libraries. - -# libpthread is implicitly included in the android runtime so, when building -# on an android platform, we don't do anything. -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") - -fb_native.prebuilt_cxx_library( - name = "pthread", - exported_platform_linker_flags = [ - ( - "android", - [], - ), - ( - "^(default|linux)", - ["-lpthread"], - ), - ( - "static", - ["-lpthread"], - ), - ], - header_only = True, - visibility = [ - "PUBLIC", - ], -) - -fb_native.prebuilt_cxx_library( - name = "dl", - exported_linker_flags = [ - "-ldl", - ], - header_only = True, - visibility = [ - "PUBLIC", - ], -) - -fb_native.prebuilt_cxx_library( - name = "m", - exported_linker_flags = [ - "-lm", - ], - header_only = True, - visibility = [ - "PUBLIC", - ], -) - -fb_native.prebuilt_cxx_library( - name = "rt", - exported_platform_linker_flags = [ - ( - "android", # Empty, since `-lc` is implicit - [], - ), - ( - "^(default|linux)", - ["-lrt"], - ), - ], - header_only = True, - visibility = [ - "PUBLIC", - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK b/packages/react-native/ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK deleted file mode 100644 index 0a71b21771df10..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK +++ /dev/null @@ -1,11 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "logging", - autoglob = False, - language = "JAVA", - visibility = ["//packages/react-native/ReactAndroid/..."], - exported_deps = [ - react_native_dep("libraries/fresco/fresco-react-native:fbcore"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/main/libraries/fbjni/BUCK b/packages/react-native/ReactAndroid/src/main/libraries/fbjni/BUCK deleted file mode 100644 index f9b1d33925cd15..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/libraries/fbjni/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") - -fb_native.android_library( - name = "java", - visibility = ["PUBLIC"], - exported_deps = [ - ":fbjni-binary", - ], -) - -fb_native.android_prebuilt_aar( - name = "fbjni-binary", - aar = ":fbjni-binary-aar", -) - -fb_native.remote_file( - name = "fbjni-binary-aar", - sha1 = "b20ae3406d911a28315b6ab53f122075500bfa27", - url = "mvn:com.facebook.fbjni:fbjni:aar:0.2.2", -) diff --git a/packages/react-native/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK b/packages/react-native/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK deleted file mode 100644 index 315f64eaeac829..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +++ /dev/null @@ -1,189 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_library", "rn_android_prebuilt_aar", "rn_prebuilt_jar") - -rn_android_prebuilt_aar( - name = "fresco-react-native", - aar = ":fresco-binary-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "fresco-binary-aar", - sha1 = "b768459446d166d148aaf3b8edcdcecd59381190", - url = "mvn:com.facebook.fresco:fresco:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "fresco-drawee", - aar = ":drawee-binary-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "drawee-binary-aar", - sha1 = "06971aca0134eafa61c1b81714c0954cb4eb4e10", - url = "mvn:com.facebook.fresco:drawee:aar:2.5.0", -) - -rn_android_library( - name = "imagepipeline", - autoglob = False, - language = "JAVA", - visibility = ["//packages/react-native/ReactAndroid/..."], - exported_deps = [ - ":bolts", - ":imagepipeline-base", - ":imagepipeline-core", - ":imagepipeline-native", - ":memory-type-ashmem", - ":memory-type-java", - ":memory-type-native", - ":native-filters", - ":native-transcoder", - ":ui-common", - ], -) - -rn_android_prebuilt_aar( - name = "imagepipeline-base", - aar = ":imagepipeline-base-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "imagepipeline-base-aar", - sha1 = "6839693f5d3b6697cfabbf159d004dae2f465126", - url = "mvn:com.facebook.fresco:imagepipeline-base:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "imagepipeline-core", - aar = ":imagepipeline-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "imagepipeline-aar", - sha1 = "dd62dd1607ade4532c1240f137ac3c2d7920c134", - url = "mvn:com.facebook.fresco:imagepipeline:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "native-filters", - aar = ":nativeimagefilters-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "nativeimagefilters-aar", - sha1 = "4a30438df8d960000b37b1f8cdba9d7996d57ea9", - url = "mvn:com.facebook.fresco:nativeimagefilters:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "native-transcoder", - aar = ":nativeimagetranscoder-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "nativeimagetranscoder-aar", - sha1 = "7db353c68b41e2ad502a959c554387d59e75eb75", - url = "mvn:com.facebook.fresco:nativeimagetranscoder:aar:2.5.0", -) - -rn_prebuilt_jar( - name = "bolts", - binary_jar = ":download-bolts.jar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "download-bolts.jar", - sha1 = "d85884acf6810a3bbbecb587f239005cbc846dc4", - url = "mvn:com.parse.bolts:bolts-tasks:jar:1.4.0", -) - -rn_android_prebuilt_aar( - name = "fbcore", - aar = ":fbcore-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "fbcore-aar", - sha1 = "ffe378b572055e0600377c000d390fb46bf278a5", - url = "mvn:com.facebook.fresco:fbcore:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "imagepipeline-native", - aar = ":imagepipeline-native-binary-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "imagepipeline-native-binary-aar", - sha1 = "f8e65e897a883ac4f754d57897aaba0016c8beba", - url = "mvn:com.facebook.fresco:imagepipeline-native:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "imagepipeline-okhttp3", - aar = ":imagepipeline-okhttp3-binary-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "imagepipeline-okhttp3-binary-aar", - sha1 = "8e274a77ffbe9f8334e09855b2a811b2a63a5708", - url = "mvn:com.facebook.fresco:imagepipeline-okhttp3:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "memory-type-ashmem", - aar = ":memory-type-ashmem-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "memory-type-ashmem-aar", - sha1 = "b43b53aca89569fd2e8e964b71dc7afbf62204e8", - url = "mvn:com.facebook.fresco:memory-type-ashmem:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "memory-type-java", - aar = ":memory-type-java-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "memory-type-java-aar", - sha1 = "57537a8b69dbad44fafdaea3067a776e11586465", - url = "mvn:com.facebook.fresco:memory-type-java:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "memory-type-native", - aar = ":memory-type-native-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "memory-type-native-aar", - sha1 = "7eb7c52ee2a4d40b7f706c90069549410236aaa5", - url = "mvn:com.facebook.fresco:memory-type-native:aar:2.5.0", -) - -rn_android_prebuilt_aar( - name = "ui-common", - aar = ":ui-common-aar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "ui-common-aar", - sha1 = "224851cf4c074aeff5dc42861b557870459a9d28", - url = "mvn:com.facebook.fresco:ui-common:aar:2.5.0", -) diff --git a/packages/react-native/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK b/packages/react-native/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK deleted file mode 100644 index 7b29b51867109e..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK +++ /dev/null @@ -1,44 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") - -fb_native.android_library( - name = "soloader", - visibility = ["PUBLIC"], - exported_deps = [ - ":annotation-binary", - ":nativeloader-binary", - ":soloader-binary", - ], -) - -fb_native.prebuilt_jar( - name = "annotation-binary", - binary_jar = ":annotation-binary.jar", -) - -fb_native.prebuilt_jar( - name = "nativeloader-binary", - binary_jar = ":nativeloader-binary.jar", -) - -fb_native.android_prebuilt_aar( - name = "soloader-binary", - aar = ":soloader-binary-aar", -) - -fb_native.remote_file( - name = "annotation-binary.jar", - sha1 = "dc58463712cb3e5f03d8ee5ac9743b9ced9afa77", - url = "mvn:com.facebook.soloader:annotation:jar:0.10.4", -) - -fb_native.remote_file( - name = "nativeloader-binary.jar", - sha1 = "171783d0f3f525fb9e18eb3af758c0b3aaeaed69", - url = "mvn:com.facebook.soloader:nativeloader:jar:0.10.4", -) - -fb_native.remote_file( - name = "soloader-binary-aar", - sha1 = "3fda45c99faf58310107fb8c0857e6a671b89854", - url = "mvn:com.facebook.soloader:soloader:aar:0.10.4", -) diff --git a/packages/react-native/ReactAndroid/src/main/res/BUCK b/packages/react-native/ReactAndroid/src/main/res/BUCK deleted file mode 100644 index bd165a67ae0304..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/res/BUCK +++ /dev/null @@ -1,51 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_resource") - -rn_android_resource( - name = "devsupport", - package = "com.facebook.react", - res = "devsupport", - visibility = [ - react_native_target("java/com/facebook/react/devsupport/..."), - ], -) - -rn_android_resource( - name = "shell", - package = "com.facebook.react", - res = "shell", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:appcompat"), - ], -) - -rn_android_resource( - name = "modal", - package = "com.facebook.react", - res = "views/modal", - visibility = [ - "PUBLIC", - ], -) - -rn_android_resource( - name = "uimanager", - package = "com.facebook.react", - res = "views/uimanager", - visibility = [ - "PUBLIC", - ], -) - -rn_android_resource( - name = "systeminfo", - package = "com.facebook.react", - res = "systeminfo", - visibility = [ - "PUBLIC", - ], -) - -# New resource directories must be added to react-native-github/ReactAndroid/build.gradle diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/common/logging/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/common/logging/BUCK deleted file mode 100644 index 3a8b7585a4448a..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/common/logging/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library") - -rn_android_library( - name = "logging", - srcs = glob(["**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - ], - exported_deps = [ - react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/BUCK deleted file mode 100644 index c730dd844c3a4b..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "react", - srcs = glob(["*.java"]), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/animated/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/animated/BUCK deleted file mode 100644 index 4a4a66cc6f45d3..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/animated/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "animated", - srcs = glob(["**/*.java"]), - contacts = ["oncall+fbandroid_sheriff@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/animated:animated"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK deleted file mode 100644 index 1f59fb49d13a67..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK +++ /dev/null @@ -1,50 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_android_toplevel_dep", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_android_library", "rn_robolectric_test") - -oncall("react_native") - -STANDARD_TEST_SRCS = [ - "*Test.java", -] - -rn_android_library( - name = "testhelpers", - srcs = glob( - ["*.java"], - exclude = STANDARD_TEST_SRCS, - ), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_android_toplevel_dep("third-party/java/mockito2:mockito2"), - react_native_dep("third-party/java/robolectric:robolectric"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_tests_target("java/org/mockito/configuration:configuration"), - ], -) - -rn_robolectric_test( - name = "bridge", - srcs = glob(STANDARD_TEST_SRCS), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - ":testhelpers", - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_tests_target("java/com/facebook/common/logging:logging"), - react_native_tests_target("java/com/facebook/testutils/shadows:shadows"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/devsupport/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/devsupport/BUCK deleted file mode 100644 index 4e0f5b811cb137..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/devsupport/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "devsupport", - srcs = glob(["**/*.java"]), - contacts = ["oncall+fbandroid_sheriff@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/devsupport:devsupport"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/events/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/events/BUCK deleted file mode 100644 index 7fe0aac8ac70cb..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/events/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "events", - srcs = glob(["*.java"]), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - deps = [ - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/fabric:fabric"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK deleted file mode 100644 index 86a164e54871d6..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +++ /dev/null @@ -1,48 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -oncall("react_native") - -rn_robolectric_test( - name = "modules", - srcs = glob(["**/*.java"]), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/common/network:network"), - react_native_target("java/com/facebook/react/devsupport:interfaces"), - react_native_target("java/com/facebook/react/jstasks:jstasks"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - react_native_target("java/com/facebook/react/modules/blob:blob"), - react_native_target("java/com/facebook/react/modules/camera:camera"), - react_native_target("java/com/facebook/react/modules/clipboard:clipboard"), - react_native_target("java/com/facebook/react/modules/common:common"), - react_native_target("java/com/facebook/react/modules/core:core"), - react_native_target("java/com/facebook/react/modules/debug:debug"), - react_native_target("java/com/facebook/react/modules/deviceinfo:deviceinfo"), - react_native_target("java/com/facebook/react/modules/devtoolssettings:devtoolssettings"), - react_native_target("java/com/facebook/react/modules/dialog:dialog"), - react_native_target("java/com/facebook/react/modules/network:network"), - react_native_target("java/com/facebook/react/modules/share:share"), - react_native_target("java/com/facebook/react/modules/systeminfo:systeminfo"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - react_native_tests_target("java/com/facebook/testutils/shadows:shadows"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/BUCK deleted file mode 100644 index 0129610feaf9c1..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "packagerconnection", - srcs = glob(["**/*.java"]), - contacts = ["oncall+fbandroid_sheriff@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react/packagerconnection:packagerconnection"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/BUCK deleted file mode 100644 index 0446c245aeaa40..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/BUCK +++ /dev/null @@ -1,39 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "uimanager", - # TODO Disabled temporarily until Yoga linking is fixed t14964130 - # srcs = glob(['**/*.java']), - srcs = [ - "BaseViewManagerTest.java", - "MatrixMathHelperTest.java", - "SimpleViewPropertyTest.java", - ], - contacts = ["oncall+fbandroid_sheriff@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_target("res:uimanager"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/BUCK deleted file mode 100644 index 9e25be3b51d3f9..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/BUCK +++ /dev/null @@ -1,15 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "layoutanimation", - srcs = glob(["**/*.java"]), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - visibility = ["PUBLIC"], - deps = [ - YOGA_TARGET, - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/junit:junit"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/util/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/util/BUCK deleted file mode 100644 index ce8386b91f8fe1..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/util/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "util", - srcs = glob(["**/*.java"]), - contacts = ["oncall+react_native@xmail.facebook.com"], - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_target("java/com/facebook/react/util:util"), - react_native_target("java/com/facebook/react/bridge:bridge"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/views/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/views/BUCK deleted file mode 100644 index 796e0697f6aa12..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +++ /dev/null @@ -1,42 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_robolectric_test") - -rn_robolectric_test( - name = "views", - # TODO (T110934492): Disabled temporarily until tests are fixed - # srcs = glob(['**/*.java']), - srcs = glob([ - "image/*.java", - "view/*.java", - ]), - contacts = ["oncall+fbandroid_sheriff@xmail.facebook.com"], - language = "JAVA", - deps = [ - YOGA_TARGET, - react_native_dep("libraries/fresco/fresco-react-native:fresco-drawee"), - react_native_dep("libraries/fresco/fresco-react-native:fresco-react-native"), - react_native_dep("libraries/fresco/fresco-react-native:imagepipeline"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - react_native_dep("third-party/android/androidx:annotation"), - react_native_dep("third-party/android/androidx:core"), - react_native_dep("third-party/android/androidx:fragment"), - react_native_dep("third-party/android/androidx:legacy-support-core-utils"), - react_native_dep("third-party/java/assertj:assertj-core"), - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/junit:junit"), - react_native_dep("third-party/java/okhttp:okhttp3"), - react_native_dep("third-party/java/okio:okio"), - react_native_target("java/com/facebook/react:react"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/util:util"), - react_native_target("java/com/facebook/react/views/imagehelper:imagehelper"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/touch:touch"), - react_native_target("java/com/facebook/react/uimanager:uimanager"), - react_native_target("java/com/facebook/react/uimanager/annotations:annotations"), - react_native_target("java/com/facebook/react/views/image:image"), - react_native_target("java/com/facebook/react/views/text:text"), - react_native_target("java/com/facebook/react/views/textinput:textinput"), - react_native_target("java/com/facebook/react/views/view:view"), - react_native_tests_target("java/com/facebook/react/bridge:testhelpers"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/testutils/shadows/BUCK b/packages/react-native/ReactAndroid/src/test/java/com/facebook/testutils/shadows/BUCK deleted file mode 100644 index d5aa6ad6daee43..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/testutils/shadows/BUCK +++ /dev/null @@ -1,18 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library") - -oncall("react_native") - -rn_android_library( - name = "shadows", - srcs = glob(["**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_dep("third-party/java/robolectric:robolectric"), - react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/java/org/mockito/configuration/BUCK b/packages/react-native/ReactAndroid/src/test/java/org/mockito/configuration/BUCK deleted file mode 100644 index 70c2371e947cbe..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/java/org/mockito/configuration/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_android_toplevel_dep", "rn_android_library") - -rn_android_library( - name = "configuration", - srcs = glob(["**/*.java"]), - autoglob = False, - language = "JAVA", - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_android_toplevel_dep("third-party/java/mockito2:mockito2"), - ], -) diff --git a/packages/react-native/ReactAndroid/src/test/resources/BUCK b/packages/react-native/ReactAndroid/src/test/resources/BUCK deleted file mode 100644 index f708abf66553d0..00000000000000 --- a/packages/react-native/ReactAndroid/src/test/resources/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") - -fb_native.java_library( - name = "robolectric", - srcs = [], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - resources = [ - "robolectric.properties", - ], - resources_root = ".", - visibility = ["PUBLIC"], -) diff --git a/packages/react-native/ReactCommon/butter/BUCK b/packages/react-native/ReactCommon/butter/BUCK deleted file mode 100644 index 0ff998ac800300..00000000000000 --- a/packages/react-native/ReactCommon/butter/BUCK +++ /dev/null @@ -1,51 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "IOS", - "MACOSX", - "WINDOWS", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "butter", - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "butter", - ), - apple_sdks = (IOS, MACOSX), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX, WINDOWS), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:memory", - "//xplat/folly:shared_mutex", - "//xplat/folly:small_vector", - "//xplat/folly/container:f14_hash", - ], -) diff --git a/packages/react-native/ReactCommon/callinvoker/BUCK b/packages/react-native/ReactCommon/callinvoker/BUCK deleted file mode 100644 index 64cdb74bdd68f4..00000000000000 --- a/packages/react-native/ReactCommon/callinvoker/BUCK +++ /dev/null @@ -1,25 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "rn_xplat_cxx_library", "subdir_glob") - -rn_xplat_cxx_library( - name = "callinvoker", - header_namespace = "", - exported_headers = subdir_glob( - [ - ("ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - compiler_flags_pedantic = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preferred_linkage = "static", - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], -) diff --git a/packages/react-native/ReactCommon/cxxreact/BUCK b/packages/react-native/ReactCommon/cxxreact/BUCK deleted file mode 100644 index 9c8a1684617ee8..00000000000000 --- a/packages/react-native/ReactCommon/cxxreact/BUCK +++ /dev/null @@ -1,163 +0,0 @@ -load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob") -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "get_android_inspector_flags", "get_apple_compiler_flags", "get_apple_inspector_flags", "get_preprocessor_flags_for_build_mode", "react_native_xplat_target", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "module", - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "CxxModule.h"), - ("", "JsArgumentHelpers.h"), - ("", "JsArgumentHelpers-inl.h"), - ], - prefix = "cxxreact", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = get_apple_compiler_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - "//xplat/folly:dynamic", - ], -) - -rn_xplat_cxx_library( - name = "jsbigstring", - srcs = [ - "JSBigString.cpp", - ], - header_namespace = "", - exported_headers = subdir_glob( - [("", "JSBigString.h")], - prefix = "cxxreact", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = get_apple_compiler_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - "//third-party/glog:glog", - "//xplat/folly:exception", - "//xplat/folly:memory", - "//xplat/folly:portability_fcntl", - "//xplat/folly:portability_sys_mman", - "//xplat/folly:portability_sys_stat", - "//xplat/folly:portability_unistd", - "//xplat/folly:scope_guard", - ], -) - -rn_xplat_cxx_library( - name = "samplemodule", - srcs = ["SampleCxxModule.cpp"], - header_namespace = "", - exported_headers = ["SampleCxxModule.h"], - compiler_flags = [ - "-fno-omit-frame-pointer", - ], - compiler_flags_pedantic = True, - fbobjc_compiler_flags = get_apple_compiler_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - soname = "libxplat_react_module_samplemodule.$(ext)", - visibility = [ - "PUBLIC", - ], - deps = [ - ":module", - "//third-party/glog:glog", - "//xplat/folly:memory", - ], -) - -CXXREACT_PUBLIC_HEADERS = [ - "CxxNativeModule.h", - "ErrorUtils.h", - "Instance.h", - "JSBundleType.h", - "JSExecutor.h", - "JSIndexedRAMBundle.h", - "JSModulesUnbundle.h", - "MessageQueueThread.h", - "MethodCall.h", - "ModuleRegistry.h", - "NativeModule.h", - "NativeToJsBridge.h", - "RAMBundleRegistry.h", - "ReactMarker.h", - "RecoverableError.h", - "SharedProxyCxxModule.h", - "SystraceSection.h", -] - -rn_xplat_cxx_library( - name = "bridge", - srcs = glob( - ["*.cpp"], - exclude = [ - "JSBigString.cpp", - "SampleCxxModule.cpp", - ], - ), - headers = glob( - ["*.h"], - exclude = CXXREACT_PUBLIC_HEADERS, - ), - header_namespace = "", - exported_headers = dict([ - ( - "cxxreact/%s" % header, - header, - ) - for header in CXXREACT_PUBLIC_HEADERS - ]), - compiler_flags_pedantic = True, - exported_preprocessor_flags = [ - "-DWITH_FBSYSTRACE=1", - ], - fbandroid_preprocessor_flags = get_android_inspector_flags(), - fbobjc_compiler_flags = get_apple_compiler_flags(), - fbobjc_force_static = True, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - ], - tests = [ - react_native_xplat_target("cxxreact/tests:tests"), - ], - visibility = ["PUBLIC"], - deps = [ - ":jsbigstring", - ":module", - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:conv", - "//xplat/folly:dynamic", - "//xplat/folly:json", - "//xplat/folly:memory", - "//xplat/folly:move_wrapper", - "//xplat/folly:optional", - "//xplat/jsi:jsi", - react_native_xplat_target("callinvoker:callinvoker"), - react_native_xplat_target("jsinspector:jsinspector"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_xplat_target("reactperflogger:reactperflogger"), - react_native_xplat_target("logger:logger"), - ], -) diff --git a/packages/react-native/ReactCommon/cxxreact/tests/BUCK b/packages/react-native/ReactCommon/cxxreact/tests/BUCK deleted file mode 100644 index 07373b8f0be444..00000000000000 --- a/packages/react-native/ReactCommon/cxxreact/tests/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "react_native_xplat_target", -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["*.cpp"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - visibility = [ - react_native_xplat_target("cxxreact/..."), - ], - deps = [ - "//xplat/folly:init_init", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("cxxreact:jsbigstring"), - ], -) diff --git a/packages/react-native/ReactCommon/hermes/inspector/BUCK b/packages/react-native/ReactCommon/hermes/inspector/BUCK deleted file mode 100644 index 7d8548f48b78a6..00000000000000 --- a/packages/react-native/ReactCommon/hermes/inspector/BUCK +++ /dev/null @@ -1,234 +0,0 @@ -load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary") -load("@fbsource//tools/build_defs:fb_xplat_cxx_library.bzl", "fb_xplat_cxx_library") -load("@fbsource//tools/build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test") -load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX", "FBCODE", "WINDOWS") -load("@fbsource//tools/build_defs/oss:rn_defs.bzl", "get_hermes_shared_library_preprocessor_flags", "react_native_xplat_target") -load("@fbsource//xplat/hermes/defs:hermes.bzl", "hermes_build_mode", "hermes_optimize_flag") - -CFLAGS_BY_MODE = { - "dbg": [ - "-fexceptions", - "-frtti", - hermes_optimize_flag("dbg"), - "-g", - ], - "dev": [ - "-fexceptions", - "-frtti", - hermes_optimize_flag("dev"), - "-g", - ], - "opt": [ - "-fexceptions", - "-frtti", - hermes_optimize_flag("opt"), - ], -} - -CHROME_EXPORTED_HEADERS = [ - "chrome/Connection.h", - "chrome/ConnectionDemux.h", - "chrome/MessageConverters.h", - "chrome/MessageInterfaces.h", - "chrome/MessageTypes.h", - "chrome/Registration.h", - "chrome/RemoteObjectsTable.h", -] - -fb_xplat_cxx_library( - name = "chrome", - srcs = glob(["chrome/*.cpp"]), - headers = glob( - [ - "chrome/*.h", - ], - exclude = CHROME_EXPORTED_HEADERS, - ), - header_namespace = "hermes/inspector", - exported_headers = CHROME_EXPORTED_HEADERS, - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - fbobjc_header_path_prefix = "hermes/inspector/chrome", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - tests = [":chrome-tests"], - visibility = [ - "PUBLIC", - ], - xcode_public_headers_symlinks = True, - deps = [ - react_native_xplat_target("jsinspector:jsinspector"), - ":detail", - ":inspectorlib", - "//third-party/glog:glog", - "//xplat/folly:futures", - "//xplat/hermes/API:HermesAPIFullOrLean", - "//xplat/jsi:JSIDynamic", - "//xplat/jsi:jsi", - ], -) - -fb_xplat_cxx_test( - name = "chrome-tests", - srcs = glob([ - "chrome/tests/*.cpp", - ]), - headers = glob([ - "chrome/tests/*.h", - ]), - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - cxx_deps = [react_native_xplat_target("jsinspector:jsinspector")], - fbandroid_deps = [react_native_xplat_target("jsinspector:jsinspector")], - fbobjc_deps = [react_native_xplat_target("jsinspector:jsinspector")], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - visibility = [ - "PUBLIC", - ], - deps = [ - ":chrome", - ":detail", - "//xplat/third-party/gmock:gtest", - ], -) - -DETAIL_EXPORTED_HEADERS = [ - "detail/CallbackOStream.h", - "detail/SerialExecutor.h", - "detail/Thread.h", -] - -fb_xplat_cxx_library( - name = "detail", - srcs = glob(["detail/*.cpp"]), - headers = glob( - [ - "detail/*.h", - ], - exclude = DETAIL_EXPORTED_HEADERS, - ), - header_namespace = "hermes/inspector", - exported_headers = DETAIL_EXPORTED_HEADERS, - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - # This is required by lint, but must be False, because there is - # no JNI_Onload. - fbandroid_allow_jni_merging = False, - fbandroid_deps = [ - "//fbandroid/libraries/fbjni:fbjni", - ], - fbobjc_header_path_prefix = "hermes/inspector/detail", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - tests = [":detail-tests"], - visibility = [ - "PUBLIC", - ], - xcode_public_headers_symlinks = True, - deps = [ - "//xplat/folly:executor", - ], -) - -fb_xplat_cxx_test( - name = "detail-tests", - srcs = glob([ - "detail/tests/*.cpp", - ]), - headers = glob([ - "detail/tests/*.h", - ]), - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - visibility = [ - "PUBLIC", - ], - deps = [ - ":detail", - "//xplat/third-party/gmock:gmock", - "//xplat/third-party/gmock:gtest", - ], -) - -fb_xplat_cxx_binary( - name = "hermes-chrome-debug-server", - srcs = glob([ - "chrome/cli/*.cpp", - ]), - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - cxx_deps = [react_native_xplat_target("jsinspector:jsinspector")], - fbandroid_deps = [react_native_xplat_target("jsinspector:jsinspector")], - fbobjc_deps = [react_native_xplat_target("jsinspector:jsinspector")], - visibility = [ - "PUBLIC", - ], - deps = [ - ":chrome", - ":inspectorlib", - "//xplat/hermes/API:HermesAPIFullOrLean", - ], -) - -INSPECTOR_EXPORTED_HEADERS = [ - "AsyncPauseState.h", - "Exceptions.h", - "Inspector.h", - "RuntimeAdapter.h", -] - -# can't be named "inspector" since JSC already uses it, causing a buck rulekey -# collision: P58794155 -fb_xplat_cxx_library( - name = "inspectorlib", - srcs = glob(["*.cpp"]), - headers = glob( - [ - "*.h", - ], - exclude = INSPECTOR_EXPORTED_HEADERS, - ), - header_namespace = "hermes/inspector", - exported_headers = INSPECTOR_EXPORTED_HEADERS, - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - cxx_tests = [":inspector-tests"], - exported_preprocessor_flags = get_hermes_shared_library_preprocessor_flags(), - fbobjc_header_path_prefix = "hermes/inspector", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - visibility = [ - "PUBLIC", - ], - xcode_public_headers_symlinks = True, - deps = [ - ":detail", - "//third-party/glog:glog", - "//xplat/folly:futures", - "//xplat/hermes/API:HermesAPIFullOrLean", - "//xplat/jsi:jsi", - ], -) - -fb_xplat_cxx_test( - name = "inspector-tests", - srcs = glob([ - "tests/*.cpp", - ]), - headers = glob([ - "tests/*.h", - ]), - compiler_flags = CFLAGS_BY_MODE[hermes_build_mode()], - platforms = (CXX, APPLE), - visibility = [ - "PUBLIC", - ], - deps = [ - ":inspectorlib", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/hermes/inspector/DEFS.bzl b/packages/react-native/ReactCommon/hermes/inspector/DEFS.bzl deleted file mode 100644 index d56163c7686f86..00000000000000 --- a/packages/react-native/ReactCommon/hermes/inspector/DEFS.bzl +++ /dev/null @@ -1,7 +0,0 @@ -load("@fbsource//xplat/hermes/defs:hermes.bzl", "hermes_is_debugger_enabled") - -def hermes_inspector_dep_list(): - return [ - "//xplat/js/react-native-github/packages/react-native/ReactCommon/hermes/inspector:chrome", - "//xplat/js/react-native-github/packages/react-native/ReactCommon/hermes/inspector:inspectorlib", - ] if hermes_is_debugger_enabled() else [] diff --git a/packages/react-native/ReactCommon/jsc/BUCK b/packages/react-native/ReactCommon/jsc/BUCK deleted file mode 100644 index 3981ca830a7bbc..00000000000000 --- a/packages/react-native/ReactCommon/jsc/BUCK +++ /dev/null @@ -1,34 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "APPLE", "IOS", "MACOSX", "get_apple_compiler_flags", "get_apple_inspector_flags", "get_preprocessor_flags_for_build_mode", "react_native_xplat_dep", "rn_xplat_cxx_library") - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "JSCRuntime", - srcs = [ - "JSCRuntime.cpp", - ], - header_namespace = "jsc", - exported_headers = [ - "JSCRuntime.h", - ], - apple_sdks = (IOS, MACOSX), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS + [ - "-Os", - ], - fbobjc_frameworks = [ - "$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework", - ], - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = APPLE, - visibility = ["PUBLIC"], - xplat_mangled_args = { - "soname": "libjscjsi.$(ext)", - }, - exported_deps = [ - react_native_xplat_dep("jsi:jsi"), - ], -) diff --git a/packages/react-native/ReactCommon/jserrorhandler/BUCK b/packages/react-native/ReactCommon/jserrorhandler/BUCK deleted file mode 100644 index 05b20d883a23e1..00000000000000 --- a/packages/react-native/ReactCommon/jserrorhandler/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "react_native_xplat_target", "rn_xplat_cxx_library") - -# TODO: Expolre merging this module into venice so we don't to load this library separately -rn_xplat_cxx_library( - name = "jserrorhandler", - srcs = glob(["*.cpp"]), - header_namespace = "", - exported_headers = {"JsErrorHandler/JsErrorHandler.h": "JsErrorHandler.h"}, - compiler_flags = [ - "-fexceptions", - "-frtti", - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - "//xplat/folly:dynamic", - "//xplat/folly:json", - "//xplat/jsi:jsi", - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], -) diff --git a/packages/react-native/ReactCommon/jsi/BUCK b/packages/react-native/ReactCommon/jsi/BUCK deleted file mode 100644 index 72d8a39190def5..00000000000000 --- a/packages/react-native/ReactCommon/jsi/BUCK +++ /dev/null @@ -1,58 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "react_native_xplat_dep", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "jsi", - srcs = [ - "jsi/jsi.cpp", - ], - header_namespace = "", - exported_headers = [ - "jsi/instrumentation.h", - "jsi/jsi.h", - "jsi/jsi-inl.h", - "jsi/jsilib.h", - ], - compiler_flags = [ - "-O3", - "-Wextra", - "-Wcast-qual", - "-Wdelete-non-virtual-dtor", - "-Wwrite-strings", - ], - compiler_flags_pedantic = True, - cxx_compiler_flags = [ - "-Wglobal-constructors", - "-Wmissing-prototypes", - ], - fbobjc_compiler_flags = [ - "-Wglobal-constructors", - "-Wmissing-prototypes", - ], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = ["PUBLIC"], -) - -rn_xplat_cxx_library( - name = "JSIDynamic", - srcs = [ - "jsi/JSIDynamic.cpp", - ], - header_namespace = "", - exported_headers = [ - "jsi/JSIDynamic.h", - ], - compiler_flags_pedantic = True, - fbobjc_force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - visibility = [ - "PUBLIC", - ], - xcode_public_headers_symlinks = True, - deps = [ - react_native_xplat_dep("jsi:jsi"), - ], -) diff --git a/packages/react-native/ReactCommon/jsiexecutor/BUCK b/packages/react-native/ReactCommon/jsiexecutor/BUCK deleted file mode 100644 index 8b1abbf9ba505e..00000000000000 --- a/packages/react-native/ReactCommon/jsiexecutor/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "cxx_library", "react_native_xplat_dep", "react_native_xplat_target") - -cxx_library( - name = "jsiexecutor", - srcs = [ - "jsireact/JSIExecutor.cpp", - "jsireact/JSINativeModules.cpp", - ], - header_namespace = "", - exported_headers = { - "jsireact/JSIExecutor.h": "jsireact/JSIExecutor.h", - "jsireact/JSINativeModules.h": "jsireact/JSINativeModules.h", - }, - compiler_flags = [ - "-fexceptions", - "-frtti", - ], - fbandroid_deps = [ - "//third-party/glog:glog", - "//xplat/folly:json", - "//xplat/third-party/linker_lib:atomic", - ], - fbobjc_force_static = True, - fbobjc_header_path_prefix = "", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - xcode_public_headers_symlinks = True, - deps = [ - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_dep("jsi:jsi"), - react_native_xplat_dep("jsi:JSIDynamic"), - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("cxxreact:jsbigstring"), - react_native_xplat_target("reactperflogger:reactperflogger"), - ], -) diff --git a/packages/react-native/ReactCommon/jsinspector/BUCK b/packages/react-native/ReactCommon/jsinspector/BUCK deleted file mode 100644 index 6045c8797a9399..00000000000000 --- a/packages/react-native/ReactCommon/jsinspector/BUCK +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob") -load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX", "FBCODE", "WINDOWS") -load("//tools/build_defs/oss:rn_defs.bzl", "get_hermes_shared_library_preprocessor_flags", "rn_xplat_cxx_library") - -EXPORTED_HEADERS = [ - "InspectorInterfaces.h", -] - -rn_xplat_cxx_library( - name = "jsinspector", - srcs = glob( - ["*.cpp"], - ), - headers = subdir_glob( - [ - ("", "*.h"), - ], - exclude = EXPORTED_HEADERS, - prefix = "jsinspector", - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", header) - for header in EXPORTED_HEADERS - ], - prefix = "jsinspector", - ), - compiler_flags_pedantic = True, - fbandroid_preferred_linkage = "shared", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - preprocessor_flags = get_hermes_shared_library_preprocessor_flags(), - visibility = [ - "PUBLIC", - ], - windows_compiler_flags = ["/WX-"], # Do not treat all warnings as errors -) diff --git a/packages/react-native/ReactCommon/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK b/packages/react-native/ReactCommon/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK deleted file mode 100644 index 02c4903fd4b097..00000000000000 --- a/packages/react-native/ReactCommon/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK +++ /dev/null @@ -1,179 +0,0 @@ -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_library", "rn_prebuilt_jar") - -rn_android_library( - name = "powermock2", - autoglob = False, - language = "JAVA", - visibility = ["PUBLIC"], - exported_deps = [ - ":javassist-prebuilt", - ":powermock-api-mockito2", - ":powermock-api-support", - ":powermock-classloading-base", - ":powermock-classloading-xstream-prebuilt", - ":powermock-core", - ":powermock-module-junit-common-prebuilt", - ":powermock-module-junit-rule-prebuilt", - ":powermock-reflect", - ":xstream-prebuilt", - ], -) - -rn_android_library( - name = "powermock-reflect", - autoglob = False, - language = "JAVA", - visibility = ["PUBLIC"], - exported_deps = [ - ":byte-buddy", - ":objenesis", - ":powermock-reflect-prebuilt", - ], -) - -rn_prebuilt_jar( - name = "byte-buddy", - binary_jar = ":byte-buddy-binary.jar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "byte-buddy-binary.jar", - sha1 = "211a2b4d3df1eeef2a6cacf78d74a1f725e7a840", - url = "mvn:net.bytebuddy:byte-buddy:jar:1.9.10", -) - -rn_prebuilt_jar( - name = "byte-buddy-agent", - binary_jar = ":byte-buddy-agent-binary.jar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "byte-buddy-agent-binary.jar", - sha1 = "9674aba5ee793e54b864952b001166848da0f26b", - url = "mvn:net.bytebuddy:byte-buddy-agent:jar:1.9.10", -) - -rn_prebuilt_jar( - name = "objenesis", - binary_jar = ":objenesis-binary.jar", - visibility = ["//packages/react-native/ReactAndroid/..."], -) - -fb_native.remote_file( - name = "objenesis-binary.jar", - sha1 = "639033469776fd37c08358c6b92a4761feb2af4b", - url = "mvn:org.objenesis:objenesis:jar:2.6", -) - -rn_prebuilt_jar( - name = "powermock-reflect-prebuilt", - binary_jar = ":powermock-reflect.jar", -) - -fb_native.remote_file( - name = "powermock-reflect.jar", - sha1 = "9a8b85397c5a72923962ee9e6bf774e8458803bb", - url = "mvn:org.powermock:powermock-reflect:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-api-mockito2", - binary_jar = ":powermock-api-mockito2.jar", -) - -fb_native.remote_file( - name = "powermock-api-mockito2.jar", - sha1 = "9f40156d9f6f65c6459a65e34f3c7c4fef8b3c49", - url = "mvn:org.powermock:powermock-api-mockito2:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-api-support", - binary_jar = ":powermock-api-support.jar", -) - -fb_native.remote_file( - name = "powermock-api-support.jar", - sha1 = "e311918de98f5d8b726031ca840664691599fd71", - url = "mvn:org.powermock:powermock-api-support:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-classloading-base", - binary_jar = ":powermock-classloading-base.jar", -) - -fb_native.remote_file( - name = "powermock-classloading-base.jar", - sha1 = "58ae5d3087ddfee5a591131d337907401276f7d4", - url = "mvn:org.powermock:powermock-classloading-base:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-classloading-xstream-prebuilt", - binary_jar = ":powermock-classloading-xstream.jar", -) - -fb_native.remote_file( - name = "powermock-classloading-xstream.jar", - sha1 = "2ec4d94a584f12b0aa1165279e92ef3d5fda1b93", - url = "mvn:org.powermock:powermock-classloading-xstream:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-core", - binary_jar = ":powermock-core.jar", -) - -fb_native.remote_file( - name = "powermock-core.jar", - sha1 = "484c06b406c5a21a4a2ad39f6fe36a0f77834aa9", - url = "mvn:org.powermock:powermock-core:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-module-junit-common-prebuilt", - binary_jar = ":powermock-module-junit-common.jar", -) - -fb_native.remote_file( - name = "powermock-module-junit-common.jar", - sha1 = "e890f92292aa525000a8fa95a8ca4015e3eb78b8", - url = "mvn:org.powermock:powermock-module-junit4-common:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "powermock-module-junit-rule-prebuilt", - binary_jar = ":powermock-module-junit-rule.jar", -) - -fb_native.remote_file( - name = "powermock-module-junit-rule.jar", - sha1 = "d0d14709ffec2c3cbad0e3d6256bc8ace682398d", - url = "mvn:org.powermock:powermock-module-junit4-rule:jar:2.0.7", -) - -rn_prebuilt_jar( - name = "javassist-prebuilt", - binary_jar = ":javassist.jar", -) - -fb_native.remote_file( - name = "javassist.jar", - sha1 = "f63e6aa899e15eca8fdaa402a79af4c417252213", - url = "mvn:org.javassist:javassist:jar:3.27.0-GA", -) - -rn_prebuilt_jar( - name = "xstream-prebuilt", - binary_jar = ":xstream.jar", -) - -fb_native.remote_file( - name = "xstream.jar", - sha1 = "6c120c45a8c480bb2fea5b56502e3993ddd74fd2", - url = "mvn:com.thoughtworks.xstream:xstream:jar:1.4.11.1", -) diff --git a/packages/react-native/ReactCommon/logger/BUCK b/packages/react-native/ReactCommon/logger/BUCK deleted file mode 100644 index 7446aa16294286..00000000000000 --- a/packages/react-native/ReactCommon/logger/BUCK +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob") -load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX", "FBCODE", "WINDOWS") -load("//tools/build_defs/oss:rn_defs.bzl", "rn_xplat_cxx_library") - -EXPORTED_HEADERS = [ - "react_native_log.h", -] - -rn_xplat_cxx_library( - name = "logger", - srcs = glob( - ["*.cpp"], - ), - headers = subdir_glob( - [ - ("", "*.h"), - ], - exclude = EXPORTED_HEADERS, - prefix = "logger", - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", header) - for header in EXPORTED_HEADERS - ], - prefix = "logger", - ), - compiler_flags_pedantic = True, - fbandroid_preferred_linkage = "shared", - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS), - visibility = [ - "PUBLIC", - ], - deps = [ - "//third-party/glog:glog", - ], -) diff --git a/packages/react-native/ReactCommon/react/bridging/BUCK b/packages/react-native/ReactCommon/react/bridging/BUCK deleted file mode 100644 index 3d1ecdc35a5e10..00000000000000 --- a/packages/react-native/ReactCommon/react/bridging/BUCK +++ /dev/null @@ -1,56 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "IOS", "MACOSX", "fb_xplat_cxx_test", "react_native_xplat_shared_library_target", "react_native_xplat_target", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "bridging", - srcs = glob(["*.cpp"]), - header_namespace = "react/bridging", - exported_headers = glob(["*.h"]), - compiler_flags_enable_exceptions = True, - compiler_flags_enable_rtti = True, - compiler_flags_pedantic = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - ], - exported_deps = [ - react_native_xplat_target("butter:butter"), - react_native_xplat_target("callinvoker:callinvoker"), - react_native_xplat_shared_library_target("jsi:jsi"), - ], -) - -rn_xplat_cxx_library( - name = "testlib", - header_namespace = "react/bridging", - exported_headers = glob(["tests/*.h"]), - compiler_flags_pedantic = True, - platforms = (ANDROID, APPLE, CXX), - visibility = ["PUBLIC"], - exported_deps = [ - ":bridging", - "//xplat/third-party/gmock:gtest", - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/*.cpp"]), - headers = glob(["tests/*.h"]), - apple_sdks = (IOS, MACOSX), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":testlib", - "//xplat/hermes/API:HermesAPI", - ], -) diff --git a/packages/react-native/ReactCommon/react/config/BUCK b/packages/react-native/ReactCommon/react/config/BUCK deleted file mode 100644 index 3e7e3ae6d36174..00000000000000 --- a/packages/react-native/ReactCommon/react/config/BUCK +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob") -load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX") -load("@fbsource//tools/build_defs/apple:flag_defs.bzl", "flags", "get_preprocessor_flags_for_build_mode", "get_static_library_ios_flags") -load("@fbsource//tools/build_defs/oss:rn_defs.bzl", "get_apple_inspector_flags", "rn_xplat_cxx_library") - -APPLE_COMPILER_FLAGS = flags.get_flag_value( - get_static_library_ios_flags(), - "compiler_flags", -) - -rn_xplat_cxx_library( - name = "config", - srcs = glob(["**/*.cpp"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "**/*.h"), - ], - prefix = "react/config", - ), - compiler_flags_enable_exceptions = True, - compiler_flags_enable_rtti = True, # for ReactNativeConfig - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:memory", - ], -) diff --git a/packages/react-native/ReactCommon/react/debug/BUCK b/packages/react-native/ReactCommon/react/debug/BUCK deleted file mode 100644 index 20c7a930f8c50e..00000000000000 --- a/packages/react-native/ReactCommon/react/debug/BUCK +++ /dev/null @@ -1,65 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "debug", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/debug", - ), - compiler_flags_pedantic = True, - exported_platform_linker_flags = [ - ( - "^android.*", - ["-llog"], - ), - ], - fbandroid_linker_flags = [ - # for android react_native_assert - "-llog", - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [], - visibility = ["PUBLIC"], - deps = [ - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:conv", - "//xplat/folly:format", - ], - exported_deps = [ - "//third-party/glog:glog", - ], -) diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/BUCK b/packages/react-native/ReactCommon/react/nativemodule/core/BUCK deleted file mode 100644 index 143dcb6183e395..00000000000000 --- a/packages/react-native/ReactCommon/react/nativemodule/core/BUCK +++ /dev/null @@ -1,87 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "FBJNI_TARGET", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode", "get_static_library_ios_flags", "react_native_target", "react_native_xplat_shared_library_target", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob") - -oncall("react_native") - -rn_xplat_cxx_library( - name = "core", - srcs = glob( - ["ReactCommon/**/*.cpp"], - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - compiler_flags = [ - "-Wno-global-constructors", - ], - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_target("jni/react/jni:jni"), - FBJNI_TARGET, - ], - fbandroid_exported_headers = subdir_glob( - [ - ("platform/android/ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - fbandroid_srcs = glob( - [ - "platform/android/ReactCommon/*.cpp", - ], - ), - fbobjc_compiler_flags = [ - "-fobjc-arc-exceptions", - ], - fbobjc_inherited_buck_flags = get_static_library_ios_flags(), - fbobjc_preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - ios_deps = [ - "//xplat/FBBaseLite:FBBaseLite", - "//xplat/js/react-native-github:RCTCxxModule", - "//xplat/js/react-native-github:ReactInternal", - ], - ios_exported_headers = subdir_glob( - [ - ("platform/ios/ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - ios_frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - ios_srcs = glob( - [ - "platform/ios/**/*.cpp", - "platform/ios/**/*.mm", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:memory", - "//xplat/jsi:JSIDynamic", - react_native_xplat_target("cxxreact:bridge"), - react_native_xplat_target("cxxreact:module"), - react_native_xplat_target("callinvoker:callinvoker"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("reactperflogger:reactperflogger"), - ], - exported_deps = [ - react_native_xplat_target("react/bridging:bridging"), - react_native_xplat_shared_library_target("jsi:jsi"), - ], -) diff --git a/packages/react-native/ReactCommon/react/nativemodule/samples/BUCK b/packages/react-native/ReactCommon/react/nativemodule/samples/BUCK deleted file mode 100644 index ea1153fa91c277..00000000000000 --- a/packages/react-native/ReactCommon/react/nativemodule/samples/BUCK +++ /dev/null @@ -1,103 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "FBJNI_TARGET", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode", "get_static_library_ios_flags", "react_native_dep", "react_native_target", "react_native_xplat_target", "rn_android_library", "rn_xplat_cxx_library", "subdir_glob") - -oncall("react_native") - -rn_xplat_cxx_library( - name = "samples", - srcs = glob( - ["ReactCommon/**/*.cpp"], - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_target("jni/react/jni:jni"), - FBJNI_TARGET, - ], - fbandroid_exported_headers = subdir_glob( - [ - ("platform/android/ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - fbandroid_srcs = glob( - [ - "platform/android/**/*.cpp", - ], - ), - fbobjc_compiler_flags = [ - "-fobjc-arc-exceptions", - ], - fbobjc_inherited_buck_flags = get_static_library_ios_flags(), - fbobjc_preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - force_static = True, - ios_deps = [ - "//xplat/FBBaseLite:FBBaseLite", - "//xplat/js/react-native-github:RCTCxxBridge", - "//xplat/js/react-native-github:RCTCxxModule", - "//xplat/js/react-native-github:RCTLinking", - "//xplat/js/react-native-github:RCTPushNotification", - "//xplat/js/react-native-github:ReactInternal", - ], - ios_exported_headers = subdir_glob( - [ - ("platform/ios/ReactCommon", "*.h"), - ], - prefix = "ReactCommon", - ), - ios_frameworks = [ - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - ], - ios_srcs = glob( - [ - "platform/ios/**/*.cpp", - "platform/ios/**/*.mm", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], - deps = [ - react_native_xplat_target("cxxreact:module"), - ], - exported_deps = [ - "//xplat/jsi:jsi", - react_native_xplat_target("react/nativemodule/core:core"), - ], -) - -rn_android_library( - name = "impl", - srcs = glob(["platform/android/*.java"]), - autoglob = False, - language = "JAVA", - required_for_source_only_abi = True, - visibility = [ - "PUBLIC", - ], - deps = [ - "//fbandroid/java/com/facebook/debug/log:log", - react_native_dep("third-party/java/jsr-305:jsr-305"), - react_native_dep("third-party/java/jsr-330:jsr-330"), - react_native_target("java/com/facebook/react/bridge:bridge"), - react_native_target("java/com/facebook/react/common:common"), - react_native_target("java/com/facebook/react/module/annotations:annotations"), - ":samples", - ], - exported_deps = [ - react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/animations/BUCK b/packages/react-native/ReactCommon/react/renderer/animations/BUCK deleted file mode 100644 index a7afd443d9e4ce..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/animations/BUCK +++ /dev/null @@ -1,94 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "animations", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/animations", - ), - compiler_flags = [ - "-lm", - ], - compiler_flags_pedantic = True, - # TODO(145803035) Fix Android tests - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/jsi:jsi", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":animations", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/test_utils:test_utils"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/BUCK b/packages/react-native/ReactCommon/react/renderer/attributedstring/BUCK deleted file mode 100644 index 74f9107e2c1f69..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/BUCK +++ /dev/null @@ -1,83 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "attributedstring", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/attributedstring", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:conv", - "//xplat/folly:hash", - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbandroid_use_instrumentation_test = True, - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":attributedstring", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/componentregistry/BUCK b/packages/react-native/ReactCommon/react/renderer/componentregistry/BUCK deleted file mode 100644 index b1fdde2b635711..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/componentregistry/BUCK +++ /dev/null @@ -1,53 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "componentregistry", - srcs = glob( - ["*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/componentregistry", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/utils:utils"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/componentregistry/native/BUCK b/packages/react-native/ReactCommon/react/renderer/componentregistry/native/BUCK deleted file mode 100644 index de356fba9fa71b..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/componentregistry/native/BUCK +++ /dev/null @@ -1,49 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "native", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/componentregistry/native", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/jsi:jsi", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/image/BUCK b/packages/react-native/ReactCommon/react/renderer/components/image/BUCK deleted file mode 100644 index b051675716f475..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/image/BUCK +++ /dev/null @@ -1,76 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "image", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/image", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/renderer/components/view:view"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":image", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/inputaccessory/BUCK b/packages/react-native/ReactCommon/react/renderer/components/inputaccessory/BUCK deleted file mode 100644 index 33df142a8c6a39..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/inputaccessory/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "APPLE", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "inputaccessory", - srcs = glob( - ["**/*.cpp"], - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/inputaccessory", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = APPLE, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK deleted file mode 100644 index 5e0a1f46189463..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +++ /dev/null @@ -1,50 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "APPLE", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "legacyviewmanagerinterop", - srcs = glob( - [ - "**/*.cpp", - "**/*.mm", - ], - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/legacyviewmanagerinterop", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = APPLE, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/folly:dynamic", - "//xplat/folly:json", - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/components/view:view"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/modal/BUCK b/packages/react-native/ReactCommon/react/renderer/components/modal/BUCK deleted file mode 100644 index c95a9146013603..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/modal/BUCK +++ /dev/null @@ -1,87 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "modal", - srcs = glob( - ["**/*.cpp"], - exclude = glob([ - "tests/**/*.cpp", - "platform/**/*.cpp", - ]), - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/modal", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - "//xplat/folly:dynamic", - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbandroid_exported_headers = subdir_glob( - [ - ("", "*.h"), - ("platform/android", "*.h"), - ], - prefix = "react/renderer/components/modal", - ), - fbandroid_headers = glob( - ["platform/android/*.h"], - ), - fbandroid_srcs = glob( - ["platform/android/*.cpp"], - ), - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - ios_exported_headers = subdir_glob( - [ - ("", "*.h"), - ("platform/ios", "*.h"), - ], - prefix = "react/renderer/components/modal", - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/progressbar/BUCK b/packages/react-native/ReactCommon/react/renderer/components/progressbar/BUCK deleted file mode 100644 index 1cbc166b322c60..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/progressbar/BUCK +++ /dev/null @@ -1,116 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_target", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "androidprogressbar", - srcs = glob( - ["**/*.cpp"], - exclude = glob([ - "tests/**/*.cpp", - ]), - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/progressbar", - ), - compiler_flags_pedantic = True, - cxx_tests = [":tests"], - fbandroid_deps = [ - "//xplat/folly:dynamic", - react_native_target("jni/react/jni:jni"), - ], - fbandroid_exported_headers = subdir_glob( - [ - ("", "*.h"), - ("android/react/renderer/components/progressbar", "*.h"), - ], - prefix = "react/renderer/components/progressbar", - ), - fbandroid_headers = glob( - ["android/react/renderer/components/progressbar/*.h"], - ), - fbandroid_srcs = glob( - ["android/react/renderer/components/progressbar/*.cpp"], - ), - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - ios_exported_headers = subdir_glob( - [ - ("", "*.h"), - ("platform/ios", "*.h"), - ], - prefix = "react/renderer/components/progressbar", - ), - ios_headers = glob( - ["platform/ios/*.h"], - ), - ios_srcs = glob( - ["platform/ios/*.cpp"], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module (built with those flavors) requires Emulator/Simulator (which is expensive and slow). At the same time, we don't really have tests here. - # ANDROID, - # APPLE, - CXX, - ), - deps = [ - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/root/BUCK b/packages/react-native/ReactCommon/react/renderer/components/root/BUCK deleted file mode 100644 index be9b9adbeee417..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/root/BUCK +++ /dev/null @@ -1,74 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "root", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/root", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - YOGA_CXX_TARGET, - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/components/view:view"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":root", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/renderer/element:element"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/safeareaview/BUCK b/packages/react-native/ReactCommon/react/renderer/components/safeareaview/BUCK deleted file mode 100644 index 544c8c8c9e53dd..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/safeareaview/BUCK +++ /dev/null @@ -1,45 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "APPLE", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "safeareaview", - srcs = glob( - ["**/*.cpp"], - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/safeareaview", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = APPLE, - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/scrollview/BUCK b/packages/react-native/ReactCommon/react/renderer/components/scrollview/BUCK deleted file mode 100644 index 70a087928a3284..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/scrollview/BUCK +++ /dev/null @@ -1,81 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "scrollview", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/scrollview", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - YOGA_CXX_TARGET, - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/components/view:view"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":scrollview", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/switch/BUCK b/packages/react-native/ReactCommon/react/renderer/components/switch/BUCK deleted file mode 100644 index 881670fdbdab4d..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/switch/BUCK +++ /dev/null @@ -1,87 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_target", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "androidswitch", - srcs = glob( - ["androidswitch/react/renderer/components/androidswitch/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["androidswitch/react/renderer/components/androidswitch/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("androidswitch/react/renderer/components/androidswitch", "*.h"), - ], - prefix = "react/renderer/components/androidswitch", - ), - compiler_flags_pedantic = True, - cxx_tests = [":tests"], - fbandroid_deps = [ - react_native_target("jni/react/jni:jni"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module depends on `textlayoutmanager` which requires real an Emulator/Simulator to run. - # At the same time, the code of tests does not rely on the simulator capabilities and it would be wasteful to add `fbandroid_use_instrumentation_test = True`. - # (Beware of this option though.) - # ANDROID, - # APPLE, - CXX - ), - deps = [ - ":androidswitch", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/text/BUCK b/packages/react-native/ReactCommon/react/renderer/components/text/BUCK deleted file mode 100644 index aca9bb0079929f..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/text/BUCK +++ /dev/null @@ -1,98 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "text", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("basetext", "*.h"), - ("paragraph", "*.h"), - ("text", "*.h"), - ("rawtext", "*.h"), - ], - prefix = "react/renderer/components/text", - ), - compiler_flags_pedantic = True, - cxx_tests = [":tests"], - fbandroid_deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/attributedstring:attributedstring"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/textlayoutmanager:textlayoutmanager"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/utils:utils"), - react_native_xplat_target("react/renderer/telemetry:telemetry"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module depends on `textlayoutmanager` which requires real an Emulator/Simulator to run. - # At the same time, the code of tests does not rely on the simulator capabilities and it would be wasteful to add `fbandroid_use_instrumentation_test = True`. - # (Beware of this option though.) - # ANDROID, - # APPLE, - CXX - ), - deps = [ - ":text", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/debug:debug"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/textinput/BUCK b/packages/react-native/ReactCommon/react/renderer/components/textinput/BUCK deleted file mode 100644 index c8e70cd050b5cc..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/textinput/BUCK +++ /dev/null @@ -1,97 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "androidtextinput", - srcs = glob( - ["androidtextinput/**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["androidtextinput/**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("androidtextinput/react/renderer/components/androidtextinput", "*.h"), - ], - prefix = "react/renderer/components/androidtextinput", - ), - compiler_flags_pedantic = True, - cxx_tests = [":tests"], - fbandroid_deps = [ - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/attributedstring:attributedstring"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/textlayoutmanager:textlayoutmanager"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module depends on `textlayoutmanager` which requires real an Emulator/Simulator to run. - # At the same time, the code of tests does not rely on the simulator capabilities and it would be wasteful to add `fbandroid_use_instrumentation_test = True`. - # (Beware of this option though.) - # ANDROID, - # APPLE, - CXX - ), - deps = [ - ":androidtextinput", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK b/packages/react-native/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK deleted file mode 100644 index 7b60f0a67174bc..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +++ /dev/null @@ -1,95 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -oncall("react_native") - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "iostextinput", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("react/renderer/components/iostextinput", "*.h"), - ], - # TODO(shergin) T26519801 Figure out better directories structure - prefix = "react/renderer/components/iostextinput", - ), - compiler_flags_pedantic = True, - cxx_tests = [":tests"], - fbandroid_deps = [ - "//xplat/folly:dynamic", - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/attributedstring:attributedstring"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/textlayoutmanager:textlayoutmanager"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/imagemanager:imagemanager"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module depends on `textlayoutmanager` which requires real an Emulator/Simulator to run. - # At the same time, the code of tests does not rely on the simulator capabilities and it would be wasteful to add `fbandroid_use_instrumentation_test = True`. - # (Beware of this option though.) - # ANDROID, - # APPLE, - CXX - ), - deps = [ - ":iostextinput", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/unimplementedview/BUCK b/packages/react-native/ReactCommon/react/renderer/components/unimplementedview/BUCK deleted file mode 100644 index 92e8fccb6c9df7..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/unimplementedview/BUCK +++ /dev/null @@ -1,69 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "unimplementedview", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = [], - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/components/unimplementedview", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/components/view:view"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":unimplementedview", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/BUCK b/packages/react-native/ReactCommon/react/renderer/components/view/BUCK deleted file mode 100644 index dee2c4beebdb4c..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/components/view/BUCK +++ /dev/null @@ -1,87 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "view", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("accessibility", "*.h"), - ("root", "*.h"), - ("yoga", "*.h"), - ], - prefix = "react/renderer/components/view", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:conv", - "//xplat/folly:dynamic", - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - react_native_xplat_target("react/config:config"), - react_native_xplat_target("logger:logger"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/renderer/element:element"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/view:view"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/core/BUCK b/packages/react-native/ReactCommon/react/renderer/core/BUCK deleted file mode 100644 index e6d8d171286eff..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/core/BUCK +++ /dev/null @@ -1,115 +0,0 @@ -load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary") -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "core", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/core", - ), - compiler_flags_pedantic = True, - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - "//xplat/folly:hash", - "//xplat/folly:likely", - "//xplat/jsi:JSIDynamic", - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/utils:utils"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("cxxreact:bridge"), - ], - exported_deps = [ - "//xplat/jsi:jsi", - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/*.cpp"]), - headers = glob(["tests/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (APPLE, CXX), - deps = [ - ":core", - "//xplat/hermes/API:HermesAPI", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/element:element"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("cxxreact:bridge"), - ], -) - -fb_xplat_cxx_binary( - name = "benchmarks", - srcs = glob(["tests/benchmarks/*.cpp"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - "-Wno-unused-variable", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - platforms = (ANDROID, APPLE, CXX), - visibility = ["PUBLIC"], - deps = [ - "//xplat/third-party/benchmark:benchmark", - react_native_xplat_target("react/utils:utils"), - react_native_xplat_target("react/renderer/components/view:view"), - ":core", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/debug/BUCK b/packages/react-native/ReactCommon/react/renderer/debug/BUCK deleted file mode 100644 index 91c09316a92a87..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/debug/BUCK +++ /dev/null @@ -1,75 +0,0 @@ -load("@fbsource//tools/build_defs:platform_defs.bzl", "CXX") -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "debug", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/debug", - ), - compiler_flags_enable_exceptions = True, - compiler_flags_enable_rtti = True, # DebugStringConvertible - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:memory", - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/debug:debug"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":debug", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/element/BUCK b/packages/react-native/ReactCommon/react/renderer/element/BUCK deleted file mode 100644 index f0bc5c3af57ec0..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/element/BUCK +++ /dev/null @@ -1,86 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "element", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/element", - ), - compiler_flags_pedantic = True, - # TODO(145803035) Fix Android tests - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_target("react/renderer/components/modal:modal"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":element", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/BUCK b/packages/react-native/ReactCommon/react/renderer/graphics/BUCK deleted file mode 100644 index 62700a5396f1a4..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/graphics/BUCK +++ /dev/null @@ -1,128 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "FBJNI_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -oncall("react_native") - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "graphics", - srcs = glob( - [ - "*.cpp", - ], - ), - headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "", - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/graphics", - ), - compiler_flags_pedantic = True, - cxx_exported_headers = subdir_glob( - [ - ("platform/cxx/react/renderer/graphics", "**/*.h"), - ], - prefix = "react/renderer/graphics", - ), - cxx_srcs = glob( - [ - "platform/cxx/react/renderer/graphics/**/*.cpp", - ], - ), - fbandroid_allow_jni_merging = True, - fbandroid_deps = [ - FBJNI_TARGET, - "//xplat/folly:dynamic", - ], - fbandroid_exported_headers = subdir_glob( - [ - ("platform/android/react/renderer/graphics", "**/*.h"), - ], - prefix = "react/renderer/graphics", - ), - fbandroid_srcs = glob( - [ - "platform/android/react/renderer/graphics/**/*.cpp", - ], - ), - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_exported_headers = subdir_glob( - [ - ("platform/ios/react/renderer/graphics", "*.h"), - ], - prefix = "react/renderer/graphics", - ), - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - ios_deps = [ - "//xplat/js/react-native-github:RCTCxxBridge", - "//xplat/js/react-native-github:RCTImage", - ], - ios_frameworks = [ - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - ios_srcs = glob( - [ - "platform/ios/**/*.cpp", - "platform/ios/**/*.mm", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("butter:butter"), - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:hash", - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":graphics", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/BUCK b/packages/react-native/ReactCommon/react/renderer/imagemanager/BUCK deleted file mode 100644 index 2bb98e086b2d29..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/BUCK +++ /dev/null @@ -1,113 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -oncall("react_native") - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "imagemanager", - srcs = glob( - ["*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = subdir_glob( - [("", "*.h")], - prefix = "", - ), - header_namespace = "", - exported_headers = subdir_glob( - [("", "*.h")], - prefix = "react/renderer/imagemanager", - ), - compiler_flags_pedantic = True, - contacts = ["oncall+react_native@xmail.facebook.com"], - cxx_srcs = glob(["platform/cxx/**/*.cpp"]), - # FIXME: android relies on stubs implemented for the cxx platform - fbandroid_srcs = glob(["platform/cxx/**/*.cpp"]), - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags() + [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - force_static = True, - ios_deps = [ - "//xplat/js/react-native-github:RCTCxxBridge", - "//xplat/js/react-native-github:RCTImage", - ], - ios_exported_headers = subdir_glob( - [ - ("", "*.h"), - ("platform/ios/react/renderer/imagemanager", "RCTImagePrimitivesConversions.h"), - ], - prefix = "react/renderer/imagemanager", - ), - ios_frameworks = [ - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - ios_headers = subdir_glob( - [ - ("", "*.h"), - ("platform/ios/react/renderer/imagemanager", "**/*.h"), - ], - prefix = "", - ), - ios_srcs = glob( - [ - "platform/ios/**/*.cpp", - "platform/ios/**/*.mm", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - YOGA_CXX_TARGET, - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (APPLE, CXX), - deps = [ - ":imagemanager", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/leakchecker/BUCK b/packages/react-native/ReactCommon/react/renderer/leakchecker/BUCK deleted file mode 100644 index 826a1b8d6f1dd6..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/leakchecker/BUCK +++ /dev/null @@ -1,51 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "leakchecker", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/leakchecker", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/mapbuffer/BUCK b/packages/react-native/ReactCommon/react/renderer/mapbuffer/BUCK deleted file mode 100644 index ab5c02e1a28c61..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/mapbuffer/BUCK +++ /dev/null @@ -1,73 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "mapbuffer", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/mapbuffer", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_target("react/debug:debug"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/BUCK b/packages/react-native/ReactCommon/react/renderer/mounting/BUCK deleted file mode 100644 index 44c89fef0595b5..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/mounting/BUCK +++ /dev/null @@ -1,87 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "mounting", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("stubs", "*.h"), - ], - prefix = "react/renderer/mounting", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:hash", - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/telemetry:telemetry"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbandroid_use_instrumentation_test = True, - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":mounting", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/renderer/element:element"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/test_utils:test_utils"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/BUCK b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/BUCK deleted file mode 100644 index d09b4a91f73846..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/BUCK +++ /dev/null @@ -1,76 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "runtimescheduler", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/runtimescheduler", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//xplat/folly:dynamic", - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("butter:butter"), - react_native_xplat_target("callinvoker:callinvoker"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/*.cpp"]), - headers = glob(["tests/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - react_native_xplat_target("react/renderer/runtimescheduler:runtimescheduler"), - "//xplat/hermes/API:HermesAPI", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/BUCK b/packages/react-native/ReactCommon/react/renderer/scheduler/BUCK deleted file mode 100644 index bdd6089460515c..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/BUCK +++ /dev/null @@ -1,63 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "scheduler", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/scheduler", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/jsi:jsi", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/runtimescheduler:runtimescheduler"), - react_native_xplat_target("react/renderer/templateprocessor:templateprocessor"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/utils:utils"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/telemetry/BUCK b/packages/react-native/ReactCommon/react/renderer/telemetry/BUCK deleted file mode 100644 index f650a8c89903f4..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/telemetry/BUCK +++ /dev/null @@ -1,77 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "telemetry", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ("stubs", "*.h"), - ], - prefix = "react/renderer/telemetry", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - fbandroid_use_instrumentation_test = True, - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":telemetry", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/test_utils:test_utils"), - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/templateprocessor/BUCK b/packages/react-native/ReactCommon/react/renderer/templateprocessor/BUCK deleted file mode 100644 index ef8f47d934ee6b..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/templateprocessor/BUCK +++ /dev/null @@ -1,89 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "templateprocessor", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/templateprocessor", - ), - compiler_flags_pedantic = True, - # TODO(145803035) Fix Android tests - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - "//xplat/folly:json", - "//xplat/jsi:JSIDynamic", - "//xplat/jsi:jsi", - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/utils:utils"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":templateprocessor", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/view:view"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/BUCK b/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/BUCK deleted file mode 100644 index 37faaeb512b6e5..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/BUCK +++ /dev/null @@ -1,154 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "YOGA_CXX_TARGET", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_target", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -oncall("react_native") - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "textlayoutmanager", - srcs = glob( - [ - "*.cpp", - ], - ), - headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "", - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/textlayoutmanager", - ), - compiler_flags_pedantic = True, - cxx_exported_headers = subdir_glob( - [ - ("platform/cxx", "*.h"), - ], - prefix = "react/renderer/textlayoutmanager", - ), - cxx_headers = subdir_glob( - [ - ("platform/cxx", "**/*.h"), - ], - prefix = "", - ), - cxx_srcs = glob( - [ - "platform/cxx/**/*.cpp", - ], - ), - cxx_tests = [":tests"], - fbandroid_deps = [ - react_native_target("jni/react/jni:jni"), - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbandroid_exported_headers = subdir_glob( - [ - ("platform/android/react/renderer/textlayoutmanager", "**/*.h"), - ], - prefix = "react/renderer/textlayoutmanager", - ), - fbandroid_headers = subdir_glob( - [ - ("platform/android/react/renderer/textlayoutmanager", "**/*.h"), - ], - prefix = "", - ), - fbandroid_srcs = glob( - [ - "platform/android/react/renderer/textlayoutmanager/**/*.cpp", - ], - ), - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - ios_deps = [ - ], - ios_exported_headers = subdir_glob( - [ - ("platform/ios/react/renderer/textlayoutmanager", "*.h"), - ], - prefix = "react/renderer/textlayoutmanager", - ), - ios_frameworks = [ - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - ios_headers = subdir_glob( - [ - ("platform/ios/react/renderer/textlayoutmanager", "**/*.h"), - ], - prefix = "", - ), - ios_srcs = glob( - [ - "platform/ios/**/*.cpp", - "platform/ios/**/*.mm", - ], - ), - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - YOGA_CXX_TARGET, - react_native_xplat_target("react/renderer/attributedstring:attributedstring"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/utils:utils"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/graphics:graphics"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = ( - # `Apple` and `Android` flavors are disabled because the module (built with those flavors) requires Emulator/Simulator (which is expensive and slow). At the same time, we don't really have tests here. - # ANDROID, - # APPLE, - CXX, - ), - deps = [ - ":textlayoutmanager", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/timeline/BUCK b/packages/react-native/ReactCommon/react/renderer/timeline/BUCK deleted file mode 100644 index 513baf236425f8..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/timeline/BUCK +++ /dev/null @@ -1,75 +0,0 @@ -load("@fbsource//tools/build_defs/apple:flag_defs.bzl", "get_preprocessor_flags_for_build_mode") -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "timeline", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/timeline", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_labels = [], - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - react_native_xplat_target("react/utils:utils"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/uimanager:uimanager"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":timeline", - "//xplat/third-party/gmock:gtest", - ], -) diff --git a/packages/react-native/ReactCommon/react/renderer/uimanager/BUCK b/packages/react-native/ReactCommon/react/renderer/uimanager/BUCK deleted file mode 100644 index dfa12a5c3f64a6..00000000000000 --- a/packages/react-native/ReactCommon/react/renderer/uimanager/BUCK +++ /dev/null @@ -1,93 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "fb_xplat_cxx_test", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "uimanager", - srcs = glob( - ["**/*.cpp"], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/renderer/uimanager", - ), - compiler_flags_pedantic = True, - # TODO(145803035) Fix Android tests - fbandroid_tests_override = [], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [":tests"], - visibility = ["PUBLIC"], - deps = [ - "//third-party/glog:glog", - "//xplat/fbsystrace:fbsystrace", - "//xplat/folly:dynamic", - "//xplat/jsi:JSIDynamic", - "//xplat/jsi:jsi", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/debug:debug"), - react_native_xplat_target("react/renderer/components/text:text"), - react_native_xplat_target("react/renderer/components/view:view"), - react_native_xplat_target("react/renderer/mounting:mounting"), - react_native_xplat_target("react/renderer/core:core"), - react_native_xplat_target("react/renderer/leakchecker:leakchecker"), - react_native_xplat_target("react/renderer/componentregistry:componentregistry"), - react_native_xplat_target("react/renderer/debug:debug"), - react_native_xplat_target("runtimeexecutor:runtimeexecutor"), - react_native_xplat_target("react/renderer/runtimescheduler:runtimescheduler"), - ], -) - -fb_xplat_cxx_test( - name = "tests", - srcs = glob(["tests/**/*.cpp"]), - headers = glob(["tests/**/*.h"]), - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - platforms = (ANDROID, APPLE, CXX), - deps = [ - ":uimanager", - "//xplat/third-party/gmock:gtest", - react_native_xplat_target("react/config:config"), - react_native_xplat_target("react/renderer/components/image:image"), - react_native_xplat_target("react/renderer/components/root:root"), - react_native_xplat_target("react/renderer/components/scrollview:scrollview"), - react_native_xplat_target("react/renderer/components/view:view"), - "//xplat/js/react-native-github:generated_components-rncore", - ], -) diff --git a/packages/react-native/ReactCommon/react/test_utils/BUCK b/packages/react-native/ReactCommon/react/test_utils/BUCK deleted file mode 100644 index 3a2521ae60e320..00000000000000 --- a/packages/react-native/ReactCommon/react/test_utils/BUCK +++ /dev/null @@ -1,54 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "test_utils", - srcs = [], - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/test_utils", - ), - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_frameworks = ["Foundation"], - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [], - visibility = ["PUBLIC"], - deps = [ - "//xplat/jsi:jsi", - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/debug:debug"), - ], - exported_deps = [ - "//xplat/third-party/gmock:gmock", - ], -) diff --git a/packages/react-native/ReactCommon/react/utils/BUCK b/packages/react-native/ReactCommon/react/utils/BUCK deleted file mode 100644 index 50fc2851ac8ac8..00000000000000 --- a/packages/react-native/ReactCommon/react/utils/BUCK +++ /dev/null @@ -1,67 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "react_native_target", - "react_native_xplat_target", - "rn_xplat_cxx_library", - "subdir_glob", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "utils", - srcs = glob( - [ - "**/*.cpp", - ], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "*.h"), - ], - prefix = "react/utils", - ), - compiler_flags_pedantic = True, - fbandroid_deps = [ - react_native_target("jni/react/mapbuffer:jni"), - react_native_xplat_target("react/renderer/mapbuffer:mapbuffer"), - ], - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_frameworks = ["Foundation"], - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - fbobjc_srcs = glob( - [ - "**/*.mm", - ], - ), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [], - visibility = ["PUBLIC"], - deps = [ - "//xplat/folly/container:evicting_cache_map", - "//xplat/jsi:jsi", - react_native_xplat_target("butter:butter"), - react_native_xplat_target("react/debug:debug"), - ], -) diff --git a/packages/react-native/ReactCommon/reactperflogger/BUCK b/packages/react-native/ReactCommon/reactperflogger/BUCK deleted file mode 100644 index 554de6133701c9..00000000000000 --- a/packages/react-native/ReactCommon/reactperflogger/BUCK +++ /dev/null @@ -1,27 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "rn_xplat_cxx_library") - -rn_xplat_cxx_library( - name = "reactperflogger", - srcs = glob(["**/*.cpp"]), - header_namespace = "", - exported_headers = { - "reactperflogger/BridgeNativeModulePerfLogger.h": "reactperflogger/BridgeNativeModulePerfLogger.h", - "reactperflogger/NativeModulePerfLogger.h": "reactperflogger/NativeModulePerfLogger.h", - }, - compiler_flags = [ - "-Wno-global-constructors", - ], - compiler_flags_pedantic = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - platforms = (ANDROID, APPLE, CXX), - preferred_linkage = "static", - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - visibility = [ - "PUBLIC", - ], -) diff --git a/packages/react-native/ReactCommon/runtimeexecutor/BUCK b/packages/react-native/ReactCommon/runtimeexecutor/BUCK deleted file mode 100644 index caec10316e6e68..00000000000000 --- a/packages/react-native/ReactCommon/runtimeexecutor/BUCK +++ /dev/null @@ -1,50 +0,0 @@ -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "CXX", - "get_apple_compiler_flags", - "get_apple_inspector_flags", - "get_preprocessor_flags_for_build_mode", - "rn_xplat_cxx_library", -) - -APPLE_COMPILER_FLAGS = get_apple_compiler_flags() - -rn_xplat_cxx_library( - name = "runtimeexecutor", - srcs = glob( - [ - "**/*.cpp", - "**/*.mm", - ], - exclude = glob(["tests/**/*.cpp"]), - ), - headers = glob( - ["**/*.h"], - exclude = glob(["tests/**/*.h"]), - ), - header_namespace = "", - exported_headers = { - "ReactCommon/RuntimeExecutor.h": "ReactCommon/RuntimeExecutor.h", - }, - compiler_flags_pedantic = True, - fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, - fbobjc_frameworks = ["Foundation"], - fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), - force_static = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - macosx_tests_override = [], - platforms = (ANDROID, APPLE, CXX), - preprocessor_flags = [ - "-DLOG_TAG=\"ReactNative\"", - "-DWITH_FBSYSTRACE=1", - ], - tests = [], - visibility = ["PUBLIC"], - deps = [ - "//xplat/jsi:jsi", - ], -) diff --git a/packages/react-native/ReactCommon/yoga/BUCK b/packages/react-native/ReactCommon/yoga/BUCK deleted file mode 100644 index c6e4116f0bac1d..00000000000000 --- a/packages/react-native/ReactCommon/yoga/BUCK +++ /dev/null @@ -1,16 +0,0 @@ -load("//tools/build_defs/oss:rn_defs.bzl", "cxx_library") - -cxx_library( - name = "yoga", - srcs = glob(["yoga/**/*.cpp"]), - header_namespace = "", - exported_headers = glob(["yoga/**/*.h"]), - compiler_flags = [ - "-fno-omit-frame-pointer", - "-O3" - ], - force_static = True, - visibility = ["PUBLIC"], - deps = [ - ], -) diff --git a/packages/rn-tester/BUCK b/packages/rn-tester/BUCK deleted file mode 100644 index 28e6686f95ce02..00000000000000 --- a/packages/rn-tester/BUCK +++ /dev/null @@ -1,350 +0,0 @@ -load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob") -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs:fb_xplat_platform_specific_rule.bzl", "fb_xplat_platform_specific_rule") -load("//tools/build_defs:fb_xplat_resource.bzl", "fb_xplat_resource") -load("//tools/build_defs/apple:fb_apple_asset_catalog.bzl", "fb_apple_asset_catalog") -load("//tools/build_defs/apple:fb_apple_bundle.bzl", "fb_apple_bundle") -load("//tools/build_defs/apple:fb_apple_test.bzl", "fb_apple_test") -load("//tools/build_defs/apple:fb_js_dep.bzl", "rn_js_bundle_dep") -load("//tools/build_defs/apple:flag_defs.bzl", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode") -load("//tools/build_defs/oss:metro_defs.bzl", "rn_library") -load( - "//tools/build_defs/oss:rn_defs.bzl", - "ANDROID", - "APPLE", - "YOGA_APPLE_TARGET", - "js_library_glob", - "make_resource_glob", - "react_fabric_component_plugin_provider", - "react_module_plugin_providers", - "rn_apple_library", - "rn_apple_xplat_cxx_library", - "rn_extra_build_flags", - "rn_xplat_cxx_library", -) -load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") - -yarn_workspace( - name = "yarn-workspace", - srcs = glob( - ["**/*.js"], - exclude = [ - "**/__fixtures__/**", - "**/__flowtests__/**", - "**/__mocks__/**", - "**/__server_snapshot_tests__/**", - "**/__tests__/**", - "**/node_modules/**", - "**/node_modules/.bin/**", - "**/.*", - "**/.*/**", - "**/.*/.*", - "**/*.xcodeproj/**", - "**/*.xcworkspace/**", - ], - ), - visibility = ["PUBLIC"], -) - -rn_library( - name = "rn-tester", - srcs = js_library_glob( - [ - "js", - "NativeCxxModuleExample", - "NativeModuleExample", - "NativeComponentExample", - "RCTTest", - ], - excludes = [ - "**/__*__/**", - "**/*.md", - "js/examples/WebSocket/http_test_server.js", - "js/examples/WebSocket/websocket_test_server.js", - ], - ), - android_package_name = "com.facebook.fbreact.specs", - codegen_components = True, - codegen_modules = True, - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - native_component_spec_name = "AppSpecs", - native_module_spec_name = "AppSpecs", - skip_processors = True, - visibility = ["PUBLIC"], - deps = [ - "//xplat/js:node_modules__flow_19enums_19runtime", - "//xplat/js:node_modules__nullthrows", - "//xplat/js/RKJSModules/Libraries/Core:Core", - "//xplat/js/RKJSModules/vendor/react:react", - "//xplat/js/react-native-github:react-native", - "//xplat/js/react-native-github/packages/assets:assets", - ], -) - -fb_native.filegroup( - name = "nativecomponent-srcs", - srcs = glob( - [ - "**/*NativeComponent.js", - ], - exclude = [ - "NativeComponentExample/**/*", - ], - ), - visibility = ["PUBLIC"], -) - -REACT_CORE_OSS_DEPS = [ - "//xplat/js/react-native-github:ReactInternalApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTAnimationApple", - "//xplat/js/react-native-github:RCTImageApple", - "//xplat/js/react-native-github:RCTNetworkApple", - "//xplat/js/react-native-github:RCTTextApple", - "//xplat/js/react-native-github:RCTBlobApple", -] - -fb_xplat_resource( - name = "RNTesterUnitTestsResources", - dirs = [], - files = [ - "RNTesterUnitTests/RNTesterUnitTestsBundle.js", - ], - platforms = APPLE, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -fb_apple_test( - name = "RNTesterUnitTests", - srcs = glob( - [ - "RNTesterUnitTests/**/*.m", - ], - ), - headers = glob([ - "RNTesterUnitTests/**/*.h", - ]), - contacts = ["oncall+react_native@xmail.facebook.com"], - frameworks = [ - "$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework", - "CoreGraphics", - "Foundation", - "QuartzCore", - "UIKit", - ], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - visibility = [ - "//fbobjc/Libraries/FBReactKit:workspace", - ], - deps = REACT_CORE_OSS_DEPS + [ - "//xplat/js/react-native-github:RCTCxxBridgeApple", - ":RCTTestApple", - ":RNTesterUnitTestsResourcesApple", - "//fbobjc/VendorLib/OCMock:OCMock", - ], -) - -fb_xplat_resource( - name = "RNTesterIntegrationTestsResources", - files = make_resource_glob("RNTesterIntegrationTests"), - platforms = APPLE, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -fb_apple_test( - name = "RNTesterIntegrationTests", - autoglob = True, - contacts = ["oncall+react_native@xmail.facebook.com"], - frameworks = [ - "$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework", - "CoreGraphics", - "Foundation", - "QuartzCore", - "UIKit", - ], - info_plist = "//xplat/configurations/buck/common_info_plists:ApplicationTest-Info.plist", - # There are some flavor dependencies in the call chain that prevent this target from building correctly - # using Buck2 - labels = ["opt-out-buck2-runs"], - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(), - test_host_app = "//fbobjc/Configurations/Buck/CommonTestHost:CommonTestHost", - visibility = [ - "//fbobjc/Libraries/FBReactKit:workspace", - ], - deps = REACT_CORE_OSS_DEPS + [ - ":RCTTestApple", - ":RNTesterIntegrationTestsResourcesApple", - ":RNTesterResourcesApple", - "//xplat/js/react-native-github:RCTCxxBridgeApple", - "//xplat/js/react-native-github/packages/react-native/React/CoreModules:CoreModulesApple", - rn_js_bundle_dep("//xplat/js/RKJSModules/EntryPoints:RNTesterTestBundle"), - ], -) - -fb_xplat_platform_specific_rule( - name = "RNTesterBundleAssetCatalog", - dirs = ["RNTester/RNTesterBundle/OtherImages.xcassets"], - platform = APPLE, - rule = fb_apple_asset_catalog, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -fb_xplat_resource( - name = "RNTesterBundleResources", - dirs = [], - files = [ - "RNTester/RNTesterBundle/ImageInBundle.png", - ], - platforms = APPLE, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -rn_apple_xplat_cxx_library( - name = "RNTesterBundleBinary", - srcs = ["//xplat/configurations/buck/apple/common_files:dummy.c"], - deps = [":RNTesterBundleAssetCatalog"], -) - -fb_apple_bundle( - name = "RNTesterBundle", - binary = ":RNTesterBundleBinaryApple#static", - extension = "bundle", - info_plist = "RNTester/RNTesterBundle/Info.plist", - info_plist_substitutions = { - "PRODUCT_BUNDLE_IDENTIFIER": "com.facebook.react.RNTesterBundle", - }, - deps = [ - ":RNTesterBundleResourcesApple", - ], -) - -fb_xplat_platform_specific_rule( - name = "RNTesterAssetCatalog", - dirs = ["RNTester/Images.xcassets"], - platform = APPLE, - rule = fb_apple_asset_catalog, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -fb_xplat_resource( - name = "RNTesterResources", - dirs = [], - files = [ - "RNTester/legacy_image@2x.png", - "RNTester/LaunchScreen.storyboard", - ":RNTesterBundle", - ], - platforms = APPLE, - visibility = [ - "//fbobjc/Libraries/FBReactKit:", - ], -) - -rn_apple_library( - name = "RCTTestApple", - srcs = glob([ - "RCTTest/**/*.m", - "RCTTest/**/*.mm", - ]), - headers = glob([ - "RCTTest/**/*.h", - ]), - exported_headers = { - "RCTTest/RCTTestRunner.h": "RCTTest/RCTTestRunner.h", - }, - autoglob = False, - frameworks = [ - "XCTest", - ], - header_path_prefix = "React", - labels = [ - "disable_plugins_only_validation", - ], - plugins = react_module_plugin_providers( - name = "TestModule", - native_class_func = "RCTTestModuleCls", - ), - plugins_header = "FBRCTTestPlugins.h", - preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode() + rn_extra_build_flags() + [ - "-DRN_DISABLE_OSS_PLUGIN_HEADER", - ], - visibility = ["PUBLIC"], - deps = [ - "//xplat/js/react-native-github:RCTLinkingApple", - "//xplat/js/react-native-github:RCTPushNotificationApple", - "//xplat/js/react-native-github:ReactInternalApple", - "//xplat/js/react-native-github/packages/react-native/React/CoreModules:CoreModulesApple", - YOGA_APPLE_TARGET, - ], -) - -rn_apple_xplat_cxx_library( - name = "NativeComponentExample", - plugins_only = True, - srcs = glob( - [ - "NativeComponentExample/ios/*.m", - "NativeComponentExample/ios/*.mm", - ], - ), - headers = glob( - [ - "NativeComponentExample/ios/*.h", - ], - ), - header_namespace = "", - compiler_flags = [ - "-fexceptions", - "-frtti", - "-std=c++17", - "-Wall", - ], - contacts = ["oncall+react_native@xmail.facebook.com"], - labels = [ - "pfh:ReactNative_CommonInfrastructurePlaceholder", - ], - plugins = [ - react_fabric_component_plugin_provider("RNTMyNativeView", "RNTMyNativeViewCls"), - ], - plugins_header = "RCTFabricComponentsPlugins.h", - reexport_all_header_dependencies = False, - visibility = ["PUBLIC"], - deps = [ - ":generated_components-AppSpecs", - "//xplat/js/react-native-github:RCTFabricComponentViewsBase", - ], -) - -rn_xplat_cxx_library( - name = "NativeCxxModuleExample", - srcs = glob(["NativeCxxModuleExample/*.cpp"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("NativeCxxModuleExample", "*.h"), - ], - prefix = "NativeCxxModuleExample", - ), - fbandroid_compiler_flags = [ - "-fexceptions", - "-frtti", - ], - platforms = (ANDROID, APPLE), - visibility = ["PUBLIC"], - deps = [ - ":AppSpecsJSI", - ], -)