@@ -34,76 +34,90 @@ typedef id<RCTBridgeModule> (^RCTBridgeModuleProvider)(void);
3434 moduleRegistry : (RCTModuleRegistry *)moduleRegistry
3535 viewRegistry_DEPRECATED : (RCTViewRegistry *)viewRegistry_DEPRECATED
3636 bundleManager : (RCTBundleManager *)bundleManager
37- callableJSModules : (RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER;
37+ callableJSModules : (RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER
38+ __deprecated_msg(" This API will be removed along with the legacy architecture." );
3839
3940- (instancetype )initWithModuleInstance : (id <RCTBridgeModule>)instance
4041 bridge : (RCTBridge *)bridge
4142 moduleRegistry : (RCTModuleRegistry *)moduleRegistry
4243 viewRegistry_DEPRECATED : (RCTViewRegistry *)viewRegistry_DEPRECATED
4344 bundleManager : (RCTBundleManager *)bundleManager
44- callableJSModules : (RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER;
45+ callableJSModules : (RCTCallableJSModules *)callableJSModules NS_DESIGNATED_INITIALIZER
46+ __deprecated_msg(" This API will be removed along with the legacy architecture." );
4547
4648/* *
4749 * Calls `constantsToExport` on the module and stores the result. Note that
4850 * this will init the module if it has not already been created. This method
4951 * can be called on any thread, but may block the main thread briefly if the
5052 * module implements `constantsToExport`.
5153 */
52- - (void )gatherConstants ;
54+ - (void )gatherConstants __deprecated_msg( " This API will be removed along with the legacy architecture. " ) ;
5355
54- @property (nonatomic , strong , readonly ) Class moduleClass;
55- @property (nonatomic , copy , readonly ) NSString *name;
56+ @property (nonatomic, strong, readonly)
57+ Class moduleClass __deprecated_msg (" This API will be removed along with the legacy architecture." );
58+ @property (nonatomic, copy, readonly)
59+ NSString *name __deprecated_msg (" This API will be removed along with the legacy architecture." );
5660
5761/* *
5862 * Returns the module methods. Note that this will gather the methods the first
5963 * time it is called and then memoize the results.
6064 */
61- @property (nonatomic , copy , readonly ) NSArray <id<RCTBridgeMethod>> *methods;
65+ @property (nonatomic, copy, readonly) NSArray <id<RCTBridgeMethod>> *methods __deprecated_msg(
66+ " This API will be removed along with the legacy architecture." );
6267
6368/* *
6469 * Returns a map of the module methods. Note that this will gather the methods the first
6570 * time it is called and then memoize the results.
6671 */
67- @property (nonatomic , copy , readonly ) NSDictionary <NSString *, id<RCTBridgeMethod>> *methodsByName;
72+ @property (nonatomic, copy, readonly) NSDictionary <NSString *, id<RCTBridgeMethod>> *methodsByName __deprecated_msg(
73+ " This API will be removed along with the legacy architecture." );
6874
6975/* *
7076 * Returns the module's constants, if it exports any
7177 */
72- @property (nonatomic , copy , readonly ) NSDictionary <NSString *, id> *exportedConstants;
78+ @property (nonatomic, copy, readonly) NSDictionary <NSString *, id> *exportedConstants __deprecated_msg(
79+ " This API will be removed along with the legacy architecture." );
7380
7481/* *
7582 * Returns YES if module instance has already been initialized; NO otherwise.
7683 */
77- @property (nonatomic , assign , readonly ) BOOL hasInstance;
84+ @property (nonatomic, assign, readonly)
85+ BOOL hasInstance __deprecated_msg (" This API will be removed along with the legacy architecture." );
7886
7987/* *
8088 * Returns YES if module instance must be created on the main thread.
8189 */
82- @property (nonatomic , assign ) BOOL requiresMainQueueSetup;
90+ @property (nonatomic, assign)
91+ BOOL requiresMainQueueSetup __deprecated_msg (" This API will be removed along with the legacy architecture." );
8392
8493/* *
8594 * Returns YES if module has constants to export.
8695 */
87- @property (nonatomic , assign , readonly ) BOOL hasConstantsToExport;
96+ @property (nonatomic, assign, readonly)
97+ BOOL hasConstantsToExport __deprecated_msg (" This API will be removed along with the legacy architecture." );
8898
8999/* *
90100 * Returns the current module instance. Note that this will init the instance
91101 * if it has not already been created. To check if the module instance exists
92102 * without causing it to be created, use `hasInstance` instead.
93103 */
94- @property (nonatomic , strong , readwrite ) id <RCTBridgeModule> instance;
104+ @property (nonatomic, strong, readwrite) id <RCTBridgeModule> instance __deprecated_msg(
105+ " This API will be removed along with the legacy architecture." );
95106
96107/* *
97108 * Returns the module method dispatch queue. Note that this will init both the
98109 * queue and the module itself if they have not already been created.
99110 */
100- @property (nonatomic , strong , readonly ) dispatch_queue_t methodQueue;
111+ @property (nonatomic, strong, readonly)
112+ dispatch_queue_t methodQueue __deprecated_msg (" This API will be removed along with the legacy architecture." );
101113
102114/* *
103115 * Whether the receiver has a valid `instance` which implements -batchDidComplete.
104116 */
105- @property (nonatomic , assign , readonly ) BOOL implementsBatchDidComplete;
117+ @property (nonatomic, assign, readonly)
118+ BOOL implementsBatchDidComplete __deprecated_msg (" This API will be removed along with the legacy architecture." );
106119
107- @property (nonatomic , weak , readwrite ) id <RCTModuleDataCallInvokerProvider> callInvokerProvider;
120+ @property (nonatomic, weak, readwrite) id <RCTModuleDataCallInvokerProvider> callInvokerProvider __deprecated_msg(
121+ " This API will be removed along with the legacy architecture." );
108122
109123@end
0 commit comments