Skip to content

Commit ceefb7e

Browse files
coadofacebook-github-bot
authored andcommitted
Exclude deprecated and internal categories from the ReactApple C++ snapshot. (#56351)
Summary: Excludes categories marked as `Deprecated` and `Internal` from the ReactApple C++ public API snapshots. Changelog: [Internal] Reviewed By: huntie Differential Revision: D99838922
1 parent c7c4fdf commit ceefb7e

File tree

3 files changed

+2
-72
lines changed

3 files changed

+2
-72
lines changed

scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ category RCTConvert(CoreLocation) {
107107
public virtual static CLLocationDistance CLLocationDistance:(id json);
108108
}
109109

110-
category RCTConvert(Deprecated) {
111-
protected typedef NSArray NSArrayArray;
112-
protected typedef NSArray NSDictionaryArray;
113-
protected typedef NSArray NSNumberArray;
114-
protected typedef NSArray NSStringArray;
115-
protected typedef NSArray NSStringArrayArray;
116-
protected typedef NSArray NSURLArray;
117-
protected typedef NSArray RCTFileURLArray;
118-
protected typedef NSArray UIColorArray;
119-
public virtual static CGImageRef CGImage:(id json);
120-
public virtual static UIImage* UIImage:(id json);
121-
}
122-
123110
category RCTConvert(DynamicTypeRamp) {
124111
public virtual static RCTDynamicTypeRamp RCTDynamicTypeRamp:(_Nullable id json);
125112
}
@@ -246,29 +233,6 @@ category RCTCxxConvert(NativeWebSocketModule_SpecConnectOptions) {
246233
public virtual static RCTManagedPointer* JS_NativeWebSocketModule_SpecConnectOptions:(id json);
247234
}
248235

249-
category RCTFabricSurface(Deprecated) {
250-
public virtual instancetype initWithBridge:moduleName:initialProperties:(RCTBridge* bridge, NSString* moduleName, NSDictionary* initialProperties);
251-
}
252-
253-
category RCTFabricSurface(Internal) {
254-
public virtual const facebook::react::SurfaceHandler& surfaceHandler();
255-
}
256-
257-
category RCTImageStoreManager(Deprecated) {
258-
public virtual NSString* storeImage:(UIImage* image);
259-
public virtual UIImage* imageForTag:(NSString* imageTag);
260-
public virtual void getImageForTag:withBlock:(NSString* imageTag, void(^)(UIImage* image) block);
261-
}
262-
263-
category RCTRootView(Deprecated) {
264-
public @property (assign, readonly) CGSize intrinsicSize;
265-
public virtual void cancelTouches();
266-
}
267-
268-
category RCTScrollView(Internal) {
269-
public virtual void updateContentSizeIfNeeded();
270-
}
271-
272236
category RCTScrollViewComponentView(ScrollableProtocol) {
273237
}
274238

scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ category RCTConvert(CoreLocation) {
107107
public virtual static CLLocationDistance CLLocationDistance:(id json);
108108
}
109109

110-
category RCTConvert(Deprecated) {
111-
protected typedef NSArray NSArrayArray;
112-
protected typedef NSArray NSDictionaryArray;
113-
protected typedef NSArray NSNumberArray;
114-
protected typedef NSArray NSStringArray;
115-
protected typedef NSArray NSStringArrayArray;
116-
protected typedef NSArray NSURLArray;
117-
protected typedef NSArray RCTFileURLArray;
118-
protected typedef NSArray UIColorArray;
119-
public virtual static CGImageRef CGImage:(id json);
120-
public virtual static UIImage* UIImage:(id json);
121-
}
122-
123110
category RCTConvert(DynamicTypeRamp) {
124111
public virtual static RCTDynamicTypeRamp RCTDynamicTypeRamp:(_Nullable id json);
125112
}
@@ -246,29 +233,6 @@ category RCTCxxConvert(NativeWebSocketModule_SpecConnectOptions) {
246233
public virtual static RCTManagedPointer* JS_NativeWebSocketModule_SpecConnectOptions:(id json);
247234
}
248235

249-
category RCTFabricSurface(Deprecated) {
250-
public virtual instancetype initWithBridge:moduleName:initialProperties:(RCTBridge* bridge, NSString* moduleName, NSDictionary* initialProperties);
251-
}
252-
253-
category RCTFabricSurface(Internal) {
254-
public virtual const facebook::react::SurfaceHandler& surfaceHandler();
255-
}
256-
257-
category RCTImageStoreManager(Deprecated) {
258-
public virtual NSString* storeImage:(UIImage* image);
259-
public virtual UIImage* imageForTag:(NSString* imageTag);
260-
public virtual void getImageForTag:withBlock:(NSString* imageTag, void(^)(UIImage* image) block);
261-
}
262-
263-
category RCTRootView(Deprecated) {
264-
public @property (assign, readonly) CGSize intrinsicSize;
265-
public virtual void cancelTouches();
266-
}
267-
268-
category RCTScrollView(Internal) {
269-
public virtual void updateContentSizeIfNeeded();
270-
}
271-
272236
category RCTScrollViewComponentView(ScrollableProtocol) {
273237
}
274238

scripts/cxx-api/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ platforms:
9494
- "*/components/switch/androidswitch/*"
9595
exclude_symbols:
9696
- "Android"
97+
- "(Deprecated)"
98+
- "(Internal)"
9799
input_filter: true
98100
definitions:
99101
__cplusplus: 1

0 commit comments

Comments
 (0)