Commit f1cd007
Migrate JSPointerDispatcher to Kotlin (#56910)
Summary:
Pull Request resolved: #56910
Convert `JSPointerDispatcher` from Java to Kotlin as part of the ongoing React Native Android migration to 100% Kotlin. This follows the same pattern as the recent `JSTouchDispatcher` migration; the class becomes `final` in the API surface (Kotlin default), which is intentional since the class is not part of the supported public API.
Adjacent changes required by the migration:
- Remove `JSPointerDispatcher.java` from the `ReactNoNewJavaDetector` allow-list.
- Regenerate `ReactAndroid.api` to reflect the `final` modifier added to the class and its methods.
- Fix one internal caller (`EmbeddedReactView`) whose `eventDispatcher` was being passed without a null-check; the call is now wrapped in the same `eventDispatcher?.let { ... }` pattern that already guards `jsTouchDispatcher` immediately above it.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D105847417
fbshipit-source-id: 390ff2f0b4c7413a9f21532749cc934ecfedc4af1 parent 5c937d7 commit f1cd007
3 files changed
Lines changed: 800 additions & 740 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3319 | 3319 | | |
3320 | 3320 | | |
3321 | 3321 | | |
3322 | | - | |
| 3322 | + | |
3323 | 3323 | | |
3324 | | - | |
3325 | | - | |
3326 | | - | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
| |||
0 commit comments