Commit 2ab1370
Add SoLoaderLibrary annotation stub for Gradle builds
Summary:
Add a stub `SoLoaderLibrary` annotation at
`com.facebook.soloader.annotation.SoLoaderLibrary` for open-source Gradle
builds. The real annotation lives in `fbandroid/java/com/facebook/soloader/annotation/`
and is used by the internal Buck build for compile-time validation of native
library merging. Since it is not published to Maven Central, the Gradle build
fails with "Unresolved reference" when any ReactAndroid file uses it.
The stub follows the existing pattern used by `DebugOverlayTag` and
`ProcessorBase`: the file lives in the shared source tree and gets compiled
by Gradle, while the BUCK file has `autoglob = False` with no `srcs`, making
it an empty target so Buck continues using the real internal annotation.
Differential Revision: D949500351 parent dd6980c commit 2ab1370
1 file changed
Lines changed: 17 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/soloader/annotation
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments