Skip to content

Compile-out UIManagerModule from FpsDebugFrameCallback#50158

Closed
mdvacca wants to merge 12 commits into
facebook:mainfrom
mdvacca:export-D71050642
Closed

Compile-out UIManagerModule from FpsDebugFrameCallback#50158
mdvacca wants to merge 12 commits into
facebook:mainfrom
mdvacca:export-D71050642

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented Mar 20, 2025

Summary:
Compile-out UIManagerModule from FpsDebugFrameCallback

The setViewHierarchyUpdateDebugListener does not exists on Bridgeless and NotThreadSafeViewHierarchyUpdateDebugListener is deprecated and marked for deletion on the new architecture.

The new architecture exposes a different API called ItemDispatchListener that's a sort of replacement for NotThreadSafeViewHierarchyUpdateDebugListener. Although it's not the same.

FpsView is broken in old/new arch and needs to be rebuild, I believe this behavior needs to be rethinked in the future. For now I'm excluding usages of NotThreadSafeViewHierarchyUpdateDebugListener and setViewHierarchyUpdateDebugListener for apps running on the new arch enabled by default.

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D71050642

mdvacca added 12 commits March 20, 2025 00:09
Summary:
Remove UIManagerModule from comments

changelog: [internal] internal

Differential Revision: D70738950
Summary:
Compile out UIManagerModule from ReactTextView

changelog: [internal] internal

Differential Revision: D70738949
Summary:
UIManagerType.DEFAULT is becoming confusings As we are expanding the usage of the New architecture everywhere.

That's why I'm depreacting this constant and introducing UIManagerType.LEGACY.

changelog: [Android][Deprecated] Deprecate UIManagerType.DEFAULT

Differential Revision: D70738948
Summary:
Compile-out UIManagerModule from ReactHostImpl

changelog: [internal] internal

Differential Revision: D70742208
Summary:
Compile-out UIManagerModule from ReactModalHostView

changelog: [internal] internal

Differential Revision: D70742206
Summary:
Ensure UIManagerHelper does not access UIManagerModule

changelog: [ineternal] internal

Differential Revision: D70742205
Summary:
In this diff I'm removing UIManager dependency out of ReactInstance class

changelog: [internal] internal

Differential Revision: D71003821
…intainVisibleScrollPositionHelper.getUIManager()

Summary:
This diff renames MaintainVisibleScrollPositionHelper.getUIManagerModule() -> MaintainVisibleScrollPositionHelper.getUIManager() to move away from the UIManagerModule naming

changelog: [internal\ internal

Differential Revision: D71050639
Summary:
In this diff we are removing UIManagerModule from NativeAnimatedModule
This code wasn't executing when fabric is enabled, with this change the code that references UIManagerModule will be stripped out

changelog: [internal] internal

Differential Revision: D71050641
Summary:
Compile-out UIManagerModule from ReactSafeAreaView

changelog: [internal] internal

Differential Revision: D71050640
…tecture

Summary:
Based on analysis this method is only used by legacy architecture, this diff adds an assert if NativeModuleRegistry.onBatchComplete() is used in new architecture

changelog: [internal] internal

Differential Revision: D71050638
Summary:
Compile-out UIManagerModule from FpsDebugFrameCallback

The setViewHierarchyUpdateDebugListener does not exists on Bridgeless and NotThreadSafeViewHierarchyUpdateDebugListener is deprecated and marked for deletion on the new architecture.

The new architecture exposes a different API called ItemDispatchListener that's a sort of replacement for NotThreadSafeViewHierarchyUpdateDebugListener. Although it's not the same.

FpsView is broken in old/new arch and needs to be rebuild, I believe this behavior needs to be rethinked in the future. For now I'm excluding usages of NotThreadSafeViewHierarchyUpdateDebugListener and setViewHierarchyUpdateDebugListener for apps running on the new arch enabled by default.

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D71050642
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 20, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D71050642

mdvacca added a commit to mdvacca/react-native that referenced this pull request Mar 20, 2025
Summary:

Compile-out UIManagerModule from FpsDebugFrameCallback

The setViewHierarchyUpdateDebugListener does not exists on Bridgeless and NotThreadSafeViewHierarchyUpdateDebugListener is deprecated and marked for deletion on the new architecture.

The new architecture exposes a different API called ItemDispatchListener that's a sort of replacement for NotThreadSafeViewHierarchyUpdateDebugListener. Although it's not the same.

FpsView is broken in old/new arch and needs to be rebuild, I believe this behavior needs to be rethinked in the future. For now I'm excluding usages of NotThreadSafeViewHierarchyUpdateDebugListener and setViewHierarchyUpdateDebugListener for apps running on the new arch enabled by default.

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D71050642
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in ce94710.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants