Commit fbe15f6
Stub UIImplementation and clean up usages (#55759)
Summary:
changelog: [Android][Breaking] stub UIImplementation class, this class is unused in the new architecture
Pull Request resolved: #55759
Continuing the Legacy Architecture cleanup, this diff stubs out UIImplementation by removing all fields, private methods, and method body implementations while keeping all public/protected method signatures with empty bodies. The primary consumer UIManagerModule is cleaned up to no longer reference UIImplementation — all delegating methods become empty stubs, and getConstantsForViewManager now uses mViewManagerRegistry directly.
Same pattern as NativeViewHierarchyManager (D93801180) and UIViewOperationQueue (D93069524).
Changes:
- UIImplementation.java: Remove all fields and private methods. Both constructors become empty. All public/protected methods retain signatures with empty bodies returning null/0/empty map as appropriate. LayoutUpdateListener interface preserved.
- UIManagerModule.java: Remove mUIImplementation field and getUIImplementation() method. All methods that delegated to UIImplementation become empty stubs, retaining only non-UIImplementation logic (event dispatcher teardown, Fabric sendAccessibilityEvent branch, debug logging, ViewUtil.isRootTag for resolveRootTagFromReactTag).
- ReactAndroid.api: Remove 5 protected fields from UIImplementation, remove getUIImplementation() from UIManagerModule.
Reviewed By: NickGerleman
Differential Revision: D93806249
fbshipit-source-id: aed59fb824d021733306f9957dfb4c057aae08d31 parent c2156a8 commit fbe15f6
File tree
3 files changed
+118
-843
lines changed- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager
3 files changed
+118
-843
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4260 | 4260 | | |
4261 | 4261 | | |
4262 | 4262 | | |
4263 | | - | |
4264 | | - | |
4265 | | - | |
4266 | | - | |
4267 | | - | |
4268 | 4263 | | |
4269 | 4264 | | |
4270 | | - | |
4271 | 4265 | | |
4272 | 4266 | | |
4273 | 4267 | | |
| |||
4363 | 4357 | | |
4364 | 4358 | | |
4365 | 4359 | | |
4366 | | - | |
4367 | 4360 | | |
4368 | 4361 | | |
4369 | 4362 | | |
| |||
0 commit comments