mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary annotation (#55506)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55506 Add the SoLoaderLibrary("jsijniprofiler") annotation to HermesSamplingProfiler to fix the MissingSoLoaderLibrary androidlint warning. This annotation helps track which native libraries are loaded by this class, improving build and startup optimization analysis. Also added the required dependency on soloader annotation library in the BUCK file. changelog: [internal] internal Reviewed By: alanleedev Differential Revision: D92022030 fbshipit-source-id: 78d15632b413fe2fac08c24ae1e3dfd5dc6107e0
This commit is contained in:
1 parent
85065f2feb
commit
6edbf2ee6f
1 file changed
+2
+2
@@ -8,8 +8,10 @@
|
||||
package com.facebook.hermes.instrumentation
|
||||
|
||||
import com.facebook.soloader.SoLoader
|
||||
import com.facebook.soloader.annotation.SoLoaderLibrary
|
||||
|
||||
/** Hermes sampling profiler static JSI API. */
|
||||
@SoLoaderLibrary("jsijniprofiler")
|
||||
public object HermesSamplingProfiler {
|
||||
init {
|
||||
SoLoader.loadLibrary("jsijniprofiler")
|
||||
|
||||
Reference in new issue
Block a user