Skip to content

Commit eb9c7ce

Browse files
coadometa-codesync[bot]
authored andcommitted
Remove fantom test specific methods from the C++ API snapshot (#56247)
Summary: Pull Request resolved: #56247 Removes fantom test specific methods, namely: - NativeFantomTestSpecificMethods, - FantomForcedCloneCommitHook from the C++ API snapshot. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D97466201
1 parent c28adf9 commit eb9c7ce

7 files changed

Lines changed: 1 addition & 78 deletions

File tree

scripts/cxx-api/api-snapshots/ReactAndroidDebugCxx.api

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,13 +3752,6 @@ class facebook::react::NativeExceptionsManagerSpecJSI : public facebook::react::
37523752
public NativeExceptionsManagerSpecJSI(const facebook::react::JavaTurboModule::InitParams& params);
37533753
}
37543754

3755-
class facebook::react::NativeFantomTestSpecificMethods : public facebook::react::NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
3756-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
3757-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
3758-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
3759-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
3760-
}
3761-
37623755
class facebook::react::NativeFileReaderModuleSpecJSI : public facebook::react::JavaTurboModule {
37633756
public NativeFileReaderModuleSpecJSI(const facebook::react::JavaTurboModule::InitParams& params);
37643757
}
@@ -7993,12 +7986,6 @@ struct facebook::react::EventPayload {
79937986
public virtual ~EventPayload() = default;
79947987
}
79957988

7996-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
7997-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
7998-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
7999-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
8000-
}
8001-
80027989
struct facebook::react::FilterFunction {
80037990
public bool operator==(const facebook::react::FilterFunction& other) const = default;
80047991
public facebook::react::FilterType type;

scripts/cxx-api/api-snapshots/ReactAndroidReleaseCxx.api

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,13 +3749,6 @@ class facebook::react::NativeExceptionsManagerSpecJSI : public facebook::react::
37493749
public NativeExceptionsManagerSpecJSI(const facebook::react::JavaTurboModule::InitParams& params);
37503750
}
37513751

3752-
class facebook::react::NativeFantomTestSpecificMethods : public facebook::react::NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
3753-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
3754-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
3755-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
3756-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
3757-
}
3758-
37593752
class facebook::react::NativeFileReaderModuleSpecJSI : public facebook::react::JavaTurboModule {
37603753
public NativeFileReaderModuleSpecJSI(const facebook::react::JavaTurboModule::InitParams& params);
37613754
}
@@ -7984,12 +7977,6 @@ struct facebook::react::EventPayload {
79847977
public virtual ~EventPayload() = default;
79857978
}
79867979

7987-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
7988-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
7989-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
7990-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
7991-
}
7992-
79937980
struct facebook::react::FilterFunction {
79947981
public bool operator==(const facebook::react::FilterFunction& other) const = default;
79957982
public facebook::react::FilterType type;

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6416,13 +6416,6 @@ class facebook::react::NativeExceptionsManagerSpecJSI : public facebook::react::
64166416
public NativeExceptionsManagerSpecJSI(const facebook::react::ObjCTurboModule::InitParams& params);
64176417
}
64186418

6419-
class facebook::react::NativeFantomTestSpecificMethods : public facebook::react::NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
6420-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
6421-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
6422-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
6423-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
6424-
}
6425-
64266419
class facebook::react::NativeFileReaderModuleSpecJSI : public facebook::react::ObjCTurboModule {
64276420
public NativeFileReaderModuleSpecJSI(const facebook::react::ObjCTurboModule::InitParams& params);
64286421
}
@@ -10659,12 +10652,6 @@ struct facebook::react::EventPayload {
1065910652
public virtual ~EventPayload() = default;
1066010653
}
1066110654

10662-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
10663-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
10664-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
10665-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
10666-
}
10667-
1066810655
struct facebook::react::FilterFunction {
1066910656
public bool operator==(const facebook::react::FilterFunction& other) const = default;
1067010657
public facebook::react::FilterType type;

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6413,13 +6413,6 @@ class facebook::react::NativeExceptionsManagerSpecJSI : public facebook::react::
64136413
public NativeExceptionsManagerSpecJSI(const facebook::react::ObjCTurboModule::InitParams& params);
64146414
}
64156415

6416-
class facebook::react::NativeFantomTestSpecificMethods : public facebook::react::NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
6417-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
6418-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
6419-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
6420-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
6421-
}
6422-
64236416
class facebook::react::NativeFileReaderModuleSpecJSI : public facebook::react::ObjCTurboModule {
64246417
public NativeFileReaderModuleSpecJSI(const facebook::react::ObjCTurboModule::InitParams& params);
64256418
}
@@ -10650,12 +10643,6 @@ struct facebook::react::EventPayload {
1065010643
public virtual ~EventPayload() = default;
1065110644
}
1065210645

10653-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
10654-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
10655-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
10656-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
10657-
}
10658-
1065910646
struct facebook::react::FilterFunction {
1066010647
public bool operator==(const facebook::react::FilterFunction& other) const = default;
1066110648
public facebook::react::FilterType type;

scripts/cxx-api/api-snapshots/ReactCommonDebugCxx.api

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,13 +2403,6 @@ class facebook::react::NativeDOM : public NativeDOMCxxSpec<facebook::react::Nati
24032403
public void setPointerCapture(facebook::jsi::Runtime& rt, std::shared_ptr<const facebook::react::ShadowNode> shadowNode, double pointerId);
24042404
}
24052405

2406-
class facebook::react::NativeFantomTestSpecificMethods : public NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
2407-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
2408-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
2409-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
2410-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
2411-
}
2412-
24132406
class facebook::react::NativeIdleCallbacks : public NativeIdleCallbacksCxxSpec<facebook::react::NativeIdleCallbacks> {
24142407
public NativeIdleCallbacks(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
24152408
public facebook::react::CallbackHandle requestIdleCallback(facebook::jsi::Runtime& runtime, facebook::react::SyncCallback<void(facebook::jsi::Object)>&& callback, std::optional<facebook::react::NativeRequestIdleCallbackOptions> options);
@@ -6126,12 +6119,6 @@ struct facebook::react::EventPayload {
61266119
public virtual ~EventPayload() = default;
61276120
}
61286121

6129-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
6130-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
6131-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
6132-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
6133-
}
6134-
61356122
struct facebook::react::FilterFunction {
61366123
public bool operator==(const facebook::react::FilterFunction& other) const = default;
61376124
public facebook::react::FilterType type;

scripts/cxx-api/api-snapshots/ReactCommonReleaseCxx.api

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,13 +2400,6 @@ class facebook::react::NativeDOM : public NativeDOMCxxSpec<facebook::react::Nati
24002400
public void setPointerCapture(facebook::jsi::Runtime& rt, std::shared_ptr<const facebook::react::ShadowNode> shadowNode, double pointerId);
24012401
}
24022402

2403-
class facebook::react::NativeFantomTestSpecificMethods : public NativeFantomTestSpecificMethodsCxxSpec<facebook::react::NativeFantomTestSpecificMethods> {
2404-
public NativeFantomTestSpecificMethods(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
2405-
public void registerForcedCloneCommitHook(facebook::jsi::Runtime& runtime);
2406-
public void setRootNodeSize(facebook::jsi::Runtime& runtime, int surfaceId, float width, float height);
2407-
public void takeFunctionAndNoop(facebook::jsi::Runtime& runtime, facebook::jsi::Function callback);
2408-
}
2409-
24102403
class facebook::react::NativeIdleCallbacks : public NativeIdleCallbacksCxxSpec<facebook::react::NativeIdleCallbacks> {
24112404
public NativeIdleCallbacks(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
24122405
public facebook::react::CallbackHandle requestIdleCallback(facebook::jsi::Runtime& runtime, facebook::react::SyncCallback<void(facebook::jsi::Object)>&& callback, std::optional<facebook::react::NativeRequestIdleCallbackOptions> options);
@@ -6117,12 +6110,6 @@ struct facebook::react::EventPayload {
61176110
public virtual ~EventPayload() = default;
61186111
}
61196112

6120-
struct facebook::react::FantomForcedCloneCommitHook : public facebook::react::UIManagerCommitHook {
6121-
public facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const std::shared_ptr<const facebook::react::RootShadowNode>& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode) noexcept override;
6122-
public virtual void commitHookWasRegistered(const facebook::react::UIManager&) noexcept override;
6123-
public virtual void commitHookWasUnregistered(const facebook::react::UIManager&) noexcept override;
6124-
}
6125-
61266113
struct facebook::react::FilterFunction {
61276114
public bool operator==(const facebook::react::FilterFunction& other) const = default;
61286115
public facebook::react::FilterType type;

scripts/cxx-api/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exclude_patterns:
2+
- "*/ReactCommon/react/nativemodule/fantomtestspecificmethods/*"
23
- "*/test_utils/*"
34
- "*/test/*"
45

0 commit comments

Comments
 (0)