diff --git a/packages/react-native/React/Base/RCTBridge+Private.h b/packages/react-native/React/Base/RCTBridge+Private.h index f2a8f5a46ca4..bbccde965243 100644 --- a/packages/react-native/React/Base/RCTBridge+Private.h +++ b/packages/react-native/React/Base/RCTBridge+Private.h @@ -16,8 +16,9 @@ RCT_EXTERN void RCTRegisterModule(Class); @interface RCTBridge () -+ (instancetype)currentBridge; -+ (void)setCurrentBridge:(RCTBridge *)bridge; ++ (instancetype)currentBridge __deprecated_msg("This API will be removed along with the legacy architecture."); ++ (void)setCurrentBridge:(RCTBridge *)bridge + __deprecated_msg("This API will be removed along with the legacy architecture."); /** * This method is used to invoke a callback that was registered in the diff --git a/packages/react-native/React/Base/RCTBridge.h b/packages/react-native/React/Base/RCTBridge.h index 38894bea192b..139c4f6574c4 100644 --- a/packages/react-native/React/Base/RCTBridge.h +++ b/packages/react-native/React/Base/RCTBridge.h @@ -124,17 +124,6 @@ RCT_EXTERN_C_END launchOptions:(NSDictionary *)launchOptions __deprecated_msg("This API will be removed along with the legacy architecture."); -/** - * This method is used to call functions in the JavaScript application context. - * It is primarily intended for use by modules that require two-way communication - * with the JavaScript code. Safe to call from any thread. - */ -- (void)enqueueJSCall:(NSString *)moduleDotMethod args:(NSArray *)args; -- (void)enqueueJSCall:(NSString *)module - method:(NSString *)method - args:(NSArray *)args - completion:(dispatch_block_t)completion; - /** * This method registers the file path of an additional JS segment by its ID. * @@ -159,38 +148,22 @@ RCT_EXTERN_C_END * When a NativeModule performs a lookup for a TurboModule, we need to query * the TurboModuleRegistry. */ -- (void)setRCTTurboModuleRegistry:(id)turboModuleRegistry; +- (void)setRCTTurboModuleRegistry:(id)turboModuleRegistry + __deprecated_msg("This API will be removed along with the legacy architecture."); /** * This hook is called by the TurboModule infra with every ObjC module that's created. * It allows the bridge to attach properties to ObjC modules that give those modules * access to Bridge APIs. */ -- (RCTBridgeModuleDecorator *)bridgeModuleDecorator; - -/** - * Convenience method for retrieving all modules conforming to a given protocol. - * Modules will be synchronously instantiated if they haven't already been, - * potentially blocking both the calling thread and main thread for a short time. - */ -- (NSArray *)modulesConformingToProtocol:(Protocol *)protocol; - -/** - * Test if a module has been initialized. Use this prior to calling - * `moduleForClass:` or `moduleForName:` if you do not want to cause the module - * to be instantiated if it hasn't been already. - */ -- (BOOL)moduleIsInitialized:(Class)moduleClass; - -/** - * All registered bridge module classes. - */ -@property (nonatomic, copy, readonly) NSArray *moduleClasses; +- (RCTBridgeModuleDecorator *) + bridgeModuleDecorator __deprecated_msg("This API will be removed along with the legacy architecture."); /** * URL of the script that was loaded into the bridge. */ -@property (nonatomic, strong, readonly) NSURL *bundleURL; +@property (nonatomic, strong, readonly) + NSURL *bundleURL __deprecated_msg("This API will be removed along with the legacy architecture."); /** * The class of the executor currently being used. Changes to this value will @@ -198,11 +171,6 @@ RCT_EXTERN_C_END */ @property (nonatomic, strong) Class executorClass; -/** - * The delegate provided during the bridge initialization - */ -@property (nonatomic, weak, readonly) id delegate; - /** * The launch options that were used to initialize the bridge. */ @@ -223,29 +191,9 @@ RCT_EXTERN_C_END */ @property (nonatomic, readonly, strong) RCTPerformanceLogger *performanceLogger; -/** - * Reload the bundle and reset executor & modules. Safe to call from any thread. - */ -- (void)reload __deprecated_msg("Use RCTReloadCommand instead"); - -/** - * Reload the bundle and reset executor & modules. Safe to call from any thread. - */ -- (void)reloadWithReason:(NSString *)reason __deprecated_msg("Use RCTReloadCommand instead"); - /** * Handle notifications for a fast refresh. Safe to call from any thread. */ - (void)onFastRefresh; -/** - * Inform the bridge, and anything subscribing to it, that it should reload. - */ -- (void)requestReload __deprecated_msg("Use RCTReloadCommand instead"); - -/** - * Says whether bridge has started receiving calls from JavaScript. - */ -- (BOOL)isBatchActive; - @end diff --git a/packages/react-native/React/Base/RCTBridge.mm b/packages/react-native/React/Base/RCTBridge.mm index 44b3cdcd2e7f..37370bd411d2 100644 --- a/packages/react-native/React/Base/RCTBridge.mm +++ b/packages/react-native/React/Base/RCTBridge.mm @@ -24,7 +24,6 @@ #import "RCTInspectorUtils.h" #import "RCTJSThread.h" #import "RCTLog.h" -#import "RCTModuleData.h" #import "RCTPausedInDebuggerOverlayController.h" #import "RCTPerformanceLogger.h" #import "RCTReloadCommand.h" @@ -253,17 +252,6 @@ - (instancetype)initWithBundleURL:(NSURL *)bundleURL return self; } -- (void)enqueueJSCall:(NSString *)moduleDotMethod args:(NSArray *)args -{ -} - -- (void)enqueueJSCall:(NSString *)module - method:(NSString *)method - args:(NSArray *)args - completion:(__strong dispatch_block_t)completion -{ -} - - (void)registerSegmentWithId:(NSUInteger)segmentId path:(NSString *)path { } @@ -292,37 +280,10 @@ - (RCTBridgeModuleDecorator *)bridgeModuleDecorator return nil; } -- (NSArray *)modulesConformingToProtocol:(Protocol *)protocol -{ - return @[]; -} - -- (BOOL)moduleIsInitialized:(Class)moduleClass -{ - return NO; -} - -- (void)reload __attribute__((deprecated("Use RCTReloadCommand instead"))) -{ -} - -- (void)reloadWithReason:(NSString *)reason __attribute__((deprecated("Use RCTReloadCommand instead"))) -{ -} - - (void)onFastRefresh { } -- (void)requestReload __attribute__((deprecated("Use RCTReloadCommand instead"))) -{ -} - -- (BOOL)isBatchActive -{ - return NO; -} - - (void)enqueueCallback:(NSNumber *)cbID args:(NSArray *)args { } diff --git a/packages/react-native/React/Base/RCTModuleData.h b/packages/react-native/React/Base/RCTModuleData.h deleted file mode 100644 index 812991e4d26a..000000000000 --- a/packages/react-native/React/Base/RCTModuleData.h +++ /dev/null @@ -1,123 +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. - */ - -#import - -#import - -@protocol RCTBridgeMethod; -@protocol RCTBridgeModule; -@class RCTBridge; -@class RCTModuleData; -@class RCTModuleRegistry; -@class RCTViewRegistry; -@class RCTBundleManager; -@class RCTCallableJSModules; -@class RCTCallInvoker; - -typedef id (^RCTBridgeModuleProvider)(void); - -@protocol RCTModuleDataCallInvokerProvider - -- (RCTCallInvoker *)callInvokerForModuleData:(RCTModuleData *)moduleData; - -@end - -@interface RCTModuleData : NSObject - -- (instancetype)initWithModuleClass:(Class)moduleClass - bridge:(RCTBridge *)bridge - moduleRegistry:(RCTModuleRegistry *)moduleRegistry - viewRegistry_DEPRECATED:(RCTViewRegistry *)viewRegistry_DEPRECATED - bundleManager:(RCTBundleManager *)bundleManager - callableJSModules:(RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER - __deprecated_msg("This API will be removed along with the legacy architecture."); - -- (instancetype)initWithModuleInstance:(id)instance - bridge:(RCTBridge *)bridge - moduleRegistry:(RCTModuleRegistry *)moduleRegistry - viewRegistry_DEPRECATED:(RCTViewRegistry *)viewRegistry_DEPRECATED - bundleManager:(RCTBundleManager *)bundleManager - callableJSModules:(RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER - __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Calls `constantsToExport` on the module and stores the result. Note that - * this will init the module if it has not already been created. This method - * can be called on any thread, but may block the main thread briefly if the - * module implements `constantsToExport`. - */ -- (void)gatherConstants __deprecated_msg("This API will be removed along with the legacy architecture."); - -@property (nonatomic, strong, readonly) - Class moduleClass __deprecated_msg("This API will be removed along with the legacy architecture."); -@property (nonatomic, copy, readonly) - NSString *name __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Returns the module methods. Note that this will gather the methods the first - * time it is called and then memoize the results. - */ -@property (nonatomic, copy, readonly) NSArray> *methods __deprecated_msg( - "This API will be removed along with the legacy architecture."); - -/** - * Returns a map of the module methods. Note that this will gather the methods the first - * time it is called and then memoize the results. - */ -@property (nonatomic, copy, readonly) NSDictionary> *methodsByName __deprecated_msg( - "This API will be removed along with the legacy architecture."); - -/** - * Returns the module's constants, if it exports any - */ -@property (nonatomic, copy, readonly) NSDictionary *exportedConstants __deprecated_msg( - "This API will be removed along with the legacy architecture."); - -/** - * Returns YES if module instance has already been initialized; NO otherwise. - */ -@property (nonatomic, assign, readonly) - BOOL hasInstance __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Returns YES if module instance must be created on the main thread. - */ -@property (nonatomic, assign) - BOOL requiresMainQueueSetup __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Returns YES if module has constants to export. - */ -@property (nonatomic, assign, readonly) - BOOL hasConstantsToExport __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Returns the current module instance. Note that this will init the instance - * if it has not already been created. To check if the module instance exists - * without causing it to be created, use `hasInstance` instead. - */ -@property (nonatomic, strong, readwrite) id instance __deprecated_msg( - "This API will be removed along with the legacy architecture."); - -/** - * Returns the module method dispatch queue. Note that this will init both the - * queue and the module itself if they have not already been created. - */ -@property (nonatomic, strong, readonly) - dispatch_queue_t methodQueue __deprecated_msg("This API will be removed along with the legacy architecture."); - -/** - * Whether the receiver has a valid `instance` which implements -batchDidComplete. - */ -@property (nonatomic, assign, readonly) - BOOL implementsBatchDidComplete __deprecated_msg("This API will be removed along with the legacy architecture."); - -@property (nonatomic, weak, readwrite) id callInvokerProvider __deprecated_msg( - "This API will be removed along with the legacy architecture."); - -@end diff --git a/packages/react-native/React/Base/RCTModuleData.mm b/packages/react-native/React/Base/RCTModuleData.mm deleted file mode 100644 index e52d9008deb8..000000000000 --- a/packages/react-native/React/Base/RCTModuleData.mm +++ /dev/null @@ -1,43 +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. - */ - -#import "RCTModuleData.h" - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wobjc-designated-initializers" - -@implementation RCTModuleData - -- (instancetype)initWithModuleClass:(Class)moduleClass - bridge:(RCTBridge *)bridge - moduleRegistry:(RCTModuleRegistry *)moduleRegistry - viewRegistry_DEPRECATED:(RCTViewRegistry *)viewRegistry_DEPRECATED - bundleManager:(RCTBundleManager *)bundleManager - callableJSModules:(RCTCallableJSModules *)callableJSModules -{ - return self; -} - -- (instancetype)initWithModuleInstance:(id)instance - bridge:(RCTBridge *)bridge - moduleRegistry:(RCTModuleRegistry *)moduleRegistry - viewRegistry_DEPRECATED:(RCTViewRegistry *)viewRegistry_DEPRECATED - bundleManager:(RCTBundleManager *)bundleManager - callableJSModules:(RCTCallableJSModules *)callableJSModules -{ - return self; -} - -- (void)gatherConstants -{ -} - -- (void)invalidate -{ -} - -@end diff --git a/packages/react-native/React/CxxModule/RCTCxxUtils.h b/packages/react-native/React/CxxModule/RCTCxxUtils.h index 1235c181de0a..dc4c25dec740 100644 --- a/packages/react-native/React/CxxModule/RCTCxxUtils.h +++ b/packages/react-native/React/CxxModule/RCTCxxUtils.h @@ -11,7 +11,6 @@ #import @class RCTBridge; -@class RCTModuleData; namespace facebook::react { diff --git a/packages/react-native/React/CxxModule/RCTCxxUtils.mm b/packages/react-native/React/CxxModule/RCTCxxUtils.mm index e3009bd5f852..386ac5fd1697 100644 --- a/packages/react-native/React/CxxModule/RCTCxxUtils.mm +++ b/packages/react-native/React/CxxModule/RCTCxxUtils.mm @@ -7,7 +7,6 @@ #import "RCTCxxUtils.h" -#import #import #import #import diff --git a/packages/react-native/React/Modules/RCTUIManager.mm b/packages/react-native/React/Modules/RCTUIManager.mm index 3e7eba4aae4a..1ab3804b0398 100644 --- a/packages/react-native/React/Modules/RCTUIManager.mm +++ b/packages/react-native/React/Modules/RCTUIManager.mm @@ -22,7 +22,6 @@ #import "RCTLayoutAnimation.h" #import "RCTLayoutAnimationGroup.h" #import "RCTLog.h" -#import "RCTModuleData.h" #import "RCTModuleMethod.h" #import "RCTScrollableProtocol.h" #import "RCTShadowView.h" diff --git a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm index 6d5c8ec8410f..a467d5802d40 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +++ b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm @@ -15,7 +15,6 @@ #include #include #include -#include #import #include #include diff --git a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm index 1bfe6677c629..e6251007b4e9 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +++ b/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/platform/ios/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm index 40480593c587..fc0f82d267b2 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm @@ -13,7 +13,6 @@ #import #import #import -#import #import #import #import @@ -29,7 +28,6 @@ #import #import #import -#import #import #import #import @@ -329,7 +327,6 @@ - (void)_start bridgeProxy.jsCallInvoker = jsCallInvoker; bridgeProxy.performanceLogger = _performanceLogger; _bridgeProxy = bridgeProxy; - [RCTBridge setCurrentBridge:(RCTBridge *)bridgeProxy]; // Set up TurboModules _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridgeProxy:bridgeProxy diff --git a/packages/rn-tester/RNTesterIntegrationTests/RCTLoggingTests.m b/packages/rn-tester/RNTesterIntegrationTests/RCTLoggingTests.m deleted file mode 100644 index dd2336c0c220..000000000000 --- a/packages/rn-tester/RNTesterIntegrationTests/RCTLoggingTests.m +++ /dev/null @@ -1,146 +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. - */ - -#import - -#import -#import -#import -#import - -// Time to wait for an expected log statement to show before failing the test -const int64_t LOGGER_TIMEOUT = 10 * NSEC_PER_SEC; - -@interface RCTLoggingTests : XCTestCase - -@end - -@implementation RCTLoggingTests { - RCTBridge *_bridge; - - dispatch_semaphore_t _logSem; - RCTLogLevel _lastLogLevel; - RCTLogSource _lastLogSource; - NSString *_lastLogMessage; -} - -- (void)setUp -{ - XCTSkip(@"Skipping RCTLoggingTests since they rely on deprecated RCTBridge functionality."); - - NSURL *scriptURL; - if (getenv("CI_USE_PACKAGER")) { - NSString *app = @"IntegrationTests/IntegrationTestsApp"; - scriptURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:8081/%@.bundle?platform=%@&dev=true", - app, - RCTPlatformName]]; - } else { - scriptURL = [[NSBundle bundleForClass:[RCTBridge class]] URLForResource:@"main" withExtension:@"jsbundle"]; - } - RCTAssert(scriptURL != nil, @"No scriptURL set"); - - _bridge = [[RCTBridge alloc] initWithBundleURL:scriptURL moduleProvider:NULL launchOptions:nil]; - NSDate *date = [NSDate dateWithTimeIntervalSinceNow:60]; - while (date.timeIntervalSinceNow > 0 && _bridge.loading) { - [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; - } - XCTAssertFalse(_bridge.loading); - - _logSem = dispatch_semaphore_create(0); - - // Set the log function to signal the semaphore - RCTSetLogFunction( - ^(RCTLogLevel level, - RCTLogSource source, - __unused NSString *fileName, - __unused NSNumber *lineNumber, - NSString *message) { - if (source == RCTLogSourceJavaScript) { - self->_lastLogLevel = level; - self->_lastLogSource = source; - self->_lastLogMessage = message; - dispatch_semaphore_signal(self->_logSem); - } - }); -} - -- (void)tearDown -{ - [_bridge invalidate]; - _bridge = nil; - - RCTSetLogFunction(RCTDefaultLogFunction); -} - -- (void)testLogging -{ - intptr_t waitRet = 0; - - // First queue the marker and spin until it happens to be logged. - // This is to ensure we skip all of the other messages, that were logged earlier. - NSString *const LogMarker = @"===LOG_MARKER==="; - [_bridge enqueueJSCall:@"LoggingTestModule.logToConsole" args:@[ LogMarker ]]; - - do { - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for log marker"); - } while (waitRet == 0 && ![_lastLogMessage isEqualToString:LogMarker]); - - [_bridge enqueueJSCall:@"LoggingTestModule.logToConsole" args:@[ @"Invoking console.log" ]]; - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for logToConsole"); - - XCTAssertEqual(_lastLogLevel, RCTLogLevelInfo); - XCTAssertEqual(_lastLogSource, RCTLogSourceJavaScript); - XCTAssertEqualObjects(_lastLogMessage, @"Invoking console.log"); - - [_bridge enqueueJSCall:@"LoggingTestModule.warning" args:@[ @"Generating warning" ]]; - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for warning"); - - XCTAssertEqual(_lastLogLevel, RCTLogLevelWarning); - XCTAssertEqual(_lastLogSource, RCTLogSourceJavaScript); - XCTAssertEqualObjects(_lastLogMessage, @"Generating warning"); - - [_bridge enqueueJSCall:@"LoggingTestModule.invariant" args:@[ @"Invariant failed" ]]; - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for invariant"); - - XCTAssertEqual(_lastLogLevel, RCTLogLevelError); - XCTAssertEqual(_lastLogSource, RCTLogSourceJavaScript); - XCTAssertTrue([_lastLogMessage containsString:@"Invariant Violation: Invariant failed"]); - - [_bridge enqueueJSCall:@"LoggingTestModule.logErrorToConsole" args:@[ @"Invoking console.error" ]]; - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for logErrorToConsole"); - - // For local bundles, we may first get a warning about symbolication - if (![_lastLogMessage isEqualToString:@"Invoking console.error"]) { - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for logErrorToConsole #2"); - } - - XCTAssertEqual(_lastLogLevel, RCTLogLevelError); - XCTAssertEqual(_lastLogSource, RCTLogSourceJavaScript); - XCTAssertEqualObjects(_lastLogMessage, @"Invoking console.error"); - - [_bridge enqueueJSCall:@"LoggingTestModule.throwError" args:@[ @"Throwing an error" ]]; - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for throwError"); - - // For local bundles, we may first get a warning about symbolication - if (![_lastLogMessage containsString:@"Error: Throwing an error"]) { - waitRet = dispatch_semaphore_wait(_logSem, dispatch_time(DISPATCH_TIME_NOW, LOGGER_TIMEOUT)); - XCTAssertEqual(waitRet, 0, @"Timed out waiting for throwError #2"); - } - - XCTAssertEqual(_lastLogLevel, RCTLogLevelError); - XCTAssertEqual(_lastLogSource, RCTLogSourceJavaScript); - XCTAssertTrue([_lastLogMessage containsString:@"Error: Throwing an error"]); -} - -@end diff --git a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api index 8de2c49759a6..c4d4c73d3a24 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api @@ -672,28 +672,18 @@ interface RCTBlobManager : public NSObject { public @property (assign, readonly) BOOL loading; public @property (assign, readonly) BOOL valid; - public @property (copy, readonly) NSArray* moduleClasses; public @property (copy, readonly) NSDictionary* launchOptions; public @property (strong) Class executorClass; public @property (strong, readonly) NSURL* bundleURL; public @property (strong, readonly) RCTPerformanceLogger* performanceLogger; - public @property (weak, readonly) id delegate; - public virtual BOOL isBatchActive(); - public virtual BOOL moduleIsInitialized:(Class moduleClass); - public virtual NSArray* modulesConformingToProtocol:(Protocol* protocol); public virtual RCTBridgeModuleDecorator* bridgeModuleDecorator(); public virtual id moduleForClass:(Class moduleClass); public virtual id moduleForName:(NSString* moduleName); public virtual id moduleForName:lazilyLoadIfNecessary:(NSString* moduleName, BOOL lazilyLoad); public virtual instancetype initWithBundleURL:moduleProvider:launchOptions:(NSURL* bundleURL, RCTBridgeModuleListProvider block, NSDictionary* launchOptions); public virtual instancetype initWithDelegate:launchOptions:(id delegate, NSDictionary* launchOptions); - public virtual void enqueueJSCall:args:(NSString* moduleDotMethod, NSArray* args); - public virtual void enqueueJSCall:method:args:completion:(NSString* module, NSString* method, NSArray* args, dispatch_block_t completion); public virtual void onFastRefresh(); public virtual void registerSegmentWithId:path:(NSUInteger segmentId, NSString* path); - public virtual void reload(); - public virtual void reloadWithReason:(NSString* reason); - public virtual void requestReload(); public virtual void setRCTTurboModuleRegistry:(id turboModuleRegistry); } @@ -1349,22 +1339,6 @@ interface RCTModalHostViewComponentView : public RCTViewComponentView { - public @property (assign) BOOL requiresMainQueueSetup; - public @property (assign, readonly) BOOL hasConstantsToExport; - public @property (assign, readonly) BOOL hasInstance; - public @property (assign, readonly) BOOL implementsBatchDidComplete; - public @property (copy, readonly) NSArray>* methods; - public @property (copy, readonly) NSDictionary>* methodsByName; - public @property (copy, readonly) NSDictionary* exportedConstants; - public @property (copy, readonly) NSString* name; - public @property (strong) id instance; - public @property (strong, readonly) Class moduleClass; - public @property (strong, readonly) dispatch_queue_t methodQueue; - public @property (weak) id callInvokerProvider; - public virtual void gatherConstants(); -} - interface RCTModuleMethod : public NSObject { public @property (assign, readonly) Class moduleClass; public @property (assign, readonly) SEL selector; @@ -2793,10 +2767,6 @@ protocol RCTLocalizationProtocol : public NSObject { protocol RCTModalHostViewViewProtocol : public NSObject { } -protocol RCTModuleDataCallInvokerProvider : public NSObject { - public virtual RCTCallInvoker* callInvokerForModuleData:(RCTModuleData* moduleData); -} - protocol RCTModuleProvider : public NSObjectNSObject { public virtual std::shared_ptr getTurboModule:(const facebook::react::ObjCTurboModule::InitParams& params); } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api index 6b5e45141f07..863b7a36e2b7 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api @@ -681,28 +681,18 @@ interface RCTBlobManager : public NSObject { public @property (assign, readonly) BOOL loading; public @property (assign, readonly) BOOL valid; - public @property (copy, readonly) NSArray* moduleClasses; public @property (copy, readonly) NSDictionary* launchOptions; public @property (strong) Class executorClass; public @property (strong, readonly) NSURL* bundleURL; public @property (strong, readonly) RCTPerformanceLogger* performanceLogger; - public @property (weak, readonly) id delegate; - public virtual BOOL isBatchActive(); - public virtual BOOL moduleIsInitialized:(Class moduleClass); - public virtual NSArray* modulesConformingToProtocol:(Protocol* protocol); public virtual RCTBridgeModuleDecorator* bridgeModuleDecorator(); public virtual id moduleForClass:(Class moduleClass); public virtual id moduleForName:(NSString* moduleName); public virtual id moduleForName:lazilyLoadIfNecessary:(NSString* moduleName, BOOL lazilyLoad); public virtual instancetype initWithBundleURL:moduleProvider:launchOptions:(NSURL* bundleURL, RCTBridgeModuleListProvider block, NSDictionary* launchOptions); public virtual instancetype initWithDelegate:launchOptions:(id delegate, NSDictionary* launchOptions); - public virtual void enqueueJSCall:args:(NSString* moduleDotMethod, NSArray* args); - public virtual void enqueueJSCall:method:args:completion:(NSString* module, NSString* method, NSArray* args, dispatch_block_t completion); public virtual void onFastRefresh(); public virtual void registerSegmentWithId:path:(NSUInteger segmentId, NSString* path); - public virtual void reload(); - public virtual void reloadWithReason:(NSString* reason); - public virtual void requestReload(); public virtual void setRCTTurboModuleRegistry:(id turboModuleRegistry); } @@ -1392,22 +1382,6 @@ interface RCTModalHostViewComponentView : public RCTViewComponentView { - public @property (assign) BOOL requiresMainQueueSetup; - public @property (assign, readonly) BOOL hasConstantsToExport; - public @property (assign, readonly) BOOL hasInstance; - public @property (assign, readonly) BOOL implementsBatchDidComplete; - public @property (copy, readonly) NSArray>* methods; - public @property (copy, readonly) NSDictionary>* methodsByName; - public @property (copy, readonly) NSDictionary* exportedConstants; - public @property (copy, readonly) NSString* name; - public @property (strong) id instance; - public @property (strong, readonly) Class moduleClass; - public @property (strong, readonly) dispatch_queue_t methodQueue; - public @property (weak) id callInvokerProvider; - public virtual void gatherConstants(); -} - interface RCTModuleMethod : public NSObject { public @property (assign, readonly) Class moduleClass; public @property (assign, readonly) SEL selector; @@ -2874,10 +2848,6 @@ protocol RCTLocalizationProtocol : public NSObject { protocol RCTModalHostViewViewProtocol : public NSObject { } -protocol RCTModuleDataCallInvokerProvider : public NSObject { - public virtual RCTCallInvoker* callInvokerForModuleData:(RCTModuleData* moduleData); -} - protocol RCTModuleProvider : public NSObjectNSObject { public virtual std::shared_ptr getTurboModule:(const facebook::react::ObjCTurboModule::InitParams& params); } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api index e8201541b2e1..34cc6f3942a8 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api @@ -672,28 +672,18 @@ interface RCTBlobManager : public NSObject { public @property (assign, readonly) BOOL loading; public @property (assign, readonly) BOOL valid; - public @property (copy, readonly) NSArray* moduleClasses; public @property (copy, readonly) NSDictionary* launchOptions; public @property (strong) Class executorClass; public @property (strong, readonly) NSURL* bundleURL; public @property (strong, readonly) RCTPerformanceLogger* performanceLogger; - public @property (weak, readonly) id delegate; - public virtual BOOL isBatchActive(); - public virtual BOOL moduleIsInitialized:(Class moduleClass); - public virtual NSArray* modulesConformingToProtocol:(Protocol* protocol); public virtual RCTBridgeModuleDecorator* bridgeModuleDecorator(); public virtual id moduleForClass:(Class moduleClass); public virtual id moduleForName:(NSString* moduleName); public virtual id moduleForName:lazilyLoadIfNecessary:(NSString* moduleName, BOOL lazilyLoad); public virtual instancetype initWithBundleURL:moduleProvider:launchOptions:(NSURL* bundleURL, RCTBridgeModuleListProvider block, NSDictionary* launchOptions); public virtual instancetype initWithDelegate:launchOptions:(id delegate, NSDictionary* launchOptions); - public virtual void enqueueJSCall:args:(NSString* moduleDotMethod, NSArray* args); - public virtual void enqueueJSCall:method:args:completion:(NSString* module, NSString* method, NSArray* args, dispatch_block_t completion); public virtual void onFastRefresh(); public virtual void registerSegmentWithId:path:(NSUInteger segmentId, NSString* path); - public virtual void reload(); - public virtual void reloadWithReason:(NSString* reason); - public virtual void requestReload(); public virtual void setRCTTurboModuleRegistry:(id turboModuleRegistry); } @@ -1349,22 +1339,6 @@ interface RCTModalHostViewComponentView : public RCTViewComponentView { - public @property (assign) BOOL requiresMainQueueSetup; - public @property (assign, readonly) BOOL hasConstantsToExport; - public @property (assign, readonly) BOOL hasInstance; - public @property (assign, readonly) BOOL implementsBatchDidComplete; - public @property (copy, readonly) NSArray>* methods; - public @property (copy, readonly) NSDictionary>* methodsByName; - public @property (copy, readonly) NSDictionary* exportedConstants; - public @property (copy, readonly) NSString* name; - public @property (strong) id instance; - public @property (strong, readonly) Class moduleClass; - public @property (strong, readonly) dispatch_queue_t methodQueue; - public @property (weak) id callInvokerProvider; - public virtual void gatherConstants(); -} - interface RCTModuleMethod : public NSObject { public @property (assign, readonly) Class moduleClass; public @property (assign, readonly) SEL selector; @@ -2785,10 +2759,6 @@ protocol RCTLocalizationProtocol : public NSObject { protocol RCTModalHostViewViewProtocol : public NSObject { } -protocol RCTModuleDataCallInvokerProvider : public NSObject { - public virtual RCTCallInvoker* callInvokerForModuleData:(RCTModuleData* moduleData); -} - protocol RCTModuleProvider : public NSObjectNSObject { public virtual std::shared_ptr getTurboModule:(const facebook::react::ObjCTurboModule::InitParams& params); } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api index d3ff97cc59c6..cf9eb94b1f18 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api @@ -672,28 +672,18 @@ interface RCTBlobManager : public NSObject { public @property (assign, readonly) BOOL loading; public @property (assign, readonly) BOOL valid; - public @property (copy, readonly) NSArray* moduleClasses; public @property (copy, readonly) NSDictionary* launchOptions; public @property (strong) Class executorClass; public @property (strong, readonly) NSURL* bundleURL; public @property (strong, readonly) RCTPerformanceLogger* performanceLogger; - public @property (weak, readonly) id delegate; - public virtual BOOL isBatchActive(); - public virtual BOOL moduleIsInitialized:(Class moduleClass); - public virtual NSArray* modulesConformingToProtocol:(Protocol* protocol); public virtual RCTBridgeModuleDecorator* bridgeModuleDecorator(); public virtual id moduleForClass:(Class moduleClass); public virtual id moduleForName:(NSString* moduleName); public virtual id moduleForName:lazilyLoadIfNecessary:(NSString* moduleName, BOOL lazilyLoad); public virtual instancetype initWithBundleURL:moduleProvider:launchOptions:(NSURL* bundleURL, RCTBridgeModuleListProvider block, NSDictionary* launchOptions); public virtual instancetype initWithDelegate:launchOptions:(id delegate, NSDictionary* launchOptions); - public virtual void enqueueJSCall:args:(NSString* moduleDotMethod, NSArray* args); - public virtual void enqueueJSCall:method:args:completion:(NSString* module, NSString* method, NSArray* args, dispatch_block_t completion); public virtual void onFastRefresh(); public virtual void registerSegmentWithId:path:(NSUInteger segmentId, NSString* path); - public virtual void reload(); - public virtual void reloadWithReason:(NSString* reason); - public virtual void requestReload(); public virtual void setRCTTurboModuleRegistry:(id turboModuleRegistry); } @@ -1349,22 +1339,6 @@ interface RCTModalHostViewComponentView : public RCTViewComponentView { - public @property (assign) BOOL requiresMainQueueSetup; - public @property (assign, readonly) BOOL hasConstantsToExport; - public @property (assign, readonly) BOOL hasInstance; - public @property (assign, readonly) BOOL implementsBatchDidComplete; - public @property (copy, readonly) NSArray>* methods; - public @property (copy, readonly) NSDictionary>* methodsByName; - public @property (copy, readonly) NSDictionary* exportedConstants; - public @property (copy, readonly) NSString* name; - public @property (strong) id instance; - public @property (strong, readonly) Class moduleClass; - public @property (strong, readonly) dispatch_queue_t methodQueue; - public @property (weak) id callInvokerProvider; - public virtual void gatherConstants(); -} - interface RCTModuleMethod : public NSObject { public @property (assign, readonly) Class moduleClass; public @property (assign, readonly) SEL selector; @@ -2793,10 +2767,6 @@ protocol RCTLocalizationProtocol : public NSObject { protocol RCTModalHostViewViewProtocol : public NSObject { } -protocol RCTModuleDataCallInvokerProvider : public NSObject { - public virtual RCTCallInvoker* callInvokerForModuleData:(RCTModuleData* moduleData); -} - protocol RCTModuleProvider : public NSObjectNSObject { public virtual std::shared_ptr getTurboModule:(const facebook::react::ObjCTurboModule::InitParams& params); }