File tree Expand file tree Collapse file tree 5 files changed +53
-3
lines changed
should_handle_deprecated_msg Expand file tree Collapse file tree 5 files changed +53
-3
lines changed Original file line number Diff line number Diff line change @@ -2443,7 +2443,7 @@ INCLUDE_FILE_PATTERNS =
24432443# recursively expanded use the := operator instead of the = operator.
24442444# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24452445
2446- PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" ${PREDEFINED}
2446+ PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)="" ${PREDEFINED}
24472447
24482448# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24492449# tag can be used to specify a list of macro names that should be expanded. The
Original file line number Diff line number Diff line change @@ -2442,7 +2442,7 @@ INCLUDE_FILE_PATTERNS =
24422442# recursively expanded use the := operator instead of the = operator.
24432443# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24442444
2445- PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" ${PREDEFINED}
2445+ PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)="" ${PREDEFINED}
24462446
24472447# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24482448# tag can be used to specify a list of macro names that should be expanded. The
Original file line number Diff line number Diff line change @@ -2442,7 +2442,7 @@ INCLUDE_FILE_PATTERNS =
24422442# recursively expanded use the := operator instead of the = operator.
24432443# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24442444
2445- PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)=""
2445+ PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)=""
24462446
24472447# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24482448# tag can be used to specify a list of macro names that should be expanded. The
Original file line number Diff line number Diff line change 1+ interface RCTDeprecatedInterface {
2+ public virtual void customBubblingEventTypes();
3+ public virtual void legacyTitle();
4+ public virtual void normalMethod();
5+ public virtual void oldMethod();
6+ }
7+
8+ interface RCTTestInterface {
9+ public virtual NSArray * deprecatedMethod:(id param);
10+ public virtual void normalMethod:(NSString * name);
11+ }
12+
13+ protocol RCTDeprecatedProtocol {
14+ public virtual void deprecatedProtocolMethod();
15+ public virtual void normalProtocolMethod();
16+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ @interface RCTTestInterface
9+
10+ - (void )normalMethod : (NSString *)name ;
11+
12+ - (NSArray *)deprecatedMethod : (id )param __deprecated_msg(" Use newMethod instead." );
13+
14+ @end
15+
16+ @interface RCTDeprecatedInterface
17+
18+ - (void )normalMethod ;
19+
20+ - (void )oldMethod __deprecated_msg(" Use newMethod instead." );
21+
22+ - (void )customBubblingEventTypes __deprecated_msg(" Use RCTBubblingEventBlock props instead." );
23+
24+ - (void )legacyTitle __deprecated_msg(" This API will be removed along with the legacy architecture." );
25+
26+ @end
27+
28+ @protocol RCTDeprecatedProtocol
29+
30+ - (void )normalProtocolMethod ;
31+
32+ - (void )deprecatedProtocolMethod __deprecated_msg(" Protocol method is deprecated." );
33+
34+ @end
You can’t perform that action at this time.
0 commit comments