Skip to content

Commit 607a5ed

Browse files
committed
chore: add to etinstaller
1 parent df7b833 commit 607a5ed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/react-native-executorch/android/src/main/java/com/swmansion/rnexecutorch

packages/react-native-executorch/android/src/main/java/com/swmansion/rnexecutorch/ETInstaller.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class ETInstaller(
5050
init {
5151
try {
5252
System.loadLibrary("executorch")
53+
try {
54+
System.loadLibrary("qnn_executorch_backend")
55+
} catch (e: UnsatisfiedLinkError) {
56+
// QNN backend not available on this device (non-Qualcomm hardware)
57+
}
5358
System.loadLibrary("react-native-executorch")
5459
val jsCallInvokerHolder = reactContext.jsCallInvokerHolder as CallInvokerHolderImpl
5560
mHybridData = initHybrid(reactContext.javaScriptContextHolder!!.get(), jsCallInvokerHolder)

0 commit comments

Comments
 (0)