Skip to content

Commit 307dc4a

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary annotation (facebook#55506)
Summary: 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
1 parent 017bf1a commit 307dc4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/HermesSamplingProfiler.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
package com.facebook.hermes.instrumentation
99

1010
import com.facebook.soloader.SoLoader
11+
import com.facebook.soloader.annotation.SoLoaderLibrary
1112

1213
/** Hermes sampling profiler static JSI API. */
14+
@SoLoaderLibrary("jsijniprofiler")
1315
public object HermesSamplingProfiler {
1416
init {
1517
SoLoader.loadLibrary("jsijniprofiler")

0 commit comments

Comments
 (0)