Commit 467af1e
Move TransformHelper from jni-common to jni (#56454)
Summary:
Pull Request resolved: #56454
Moves `TransformHelper.cpp/h` from the `jni-common` BUCK target to `jni`. This lets `jni-common` drop deps on `cxxreact:bridge`, `cxxreact:module`, and `react/renderer/components/view:view`, replacing them with lighter `cxxreact:tracesection` and `jsi:jsi`. The `view` dep moves to `jni` where `TransformHelper` now lives.
Adds `ReactNativeJNISoLoader.staticInit()` to `TransformHelper.kt` to ensure the native library is loaded before JNI calls, and registers `TransformHelper` natives in `OnLoad.cpp` instead of `OnLoad-common.cpp`.
Changelog: [Internal]
Reviewed By: hnguyen0428
Differential Revision: D101003509
fbshipit-source-id: e7906d6fd87fa3b4e91a9c33426c6e392b4b47551 parent 07c00f4 commit 467af1e
3 files changed
Lines changed: 6 additions & 3 deletions
File tree
- packages/react-native/ReactAndroid/src/main
- java/com/facebook/react/uimanager
- jni/react/jni
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments