From e2f210d47362e95c3c782e2941d697bf68af89eb Mon Sep 17 00:00:00 2001 From: Deepak Yadav <76097094+deepktp@users.noreply.github.com> Date: Wed, 8 Jan 2025 23:05:04 +0530 Subject: [PATCH] fixed: kotlin SoLoader.init params to fix "library 'libhermes_executor.so' not found (#4432) --- docs/_integration-with-existing-apps-kotlin.md | 3 ++- .../version-0.76/_integration-with-existing-apps-kotlin.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_integration-with-existing-apps-kotlin.md b/docs/_integration-with-existing-apps-kotlin.md index 971e3f45acf..32840c27b0f 100644 --- a/docs/_integration-with-existing-apps-kotlin.md +++ b/docs/_integration-with-existing-apps-kotlin.md @@ -338,6 +338,7 @@ import android.app.Application +import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost +import com.facebook.react.defaults.DefaultReactNativeHost +import com.facebook.soloader.SoLoader ++import com.facebook.react.soloader.OpenSourceMergedSoMapping -class MainApplication : Application() { +class MainApplication : Application(), ReactApplication { @@ -356,7 +357,7 @@ import android.app.Application override fun onCreate() { super.onCreate() -+ SoLoader.init(this, false) ++ SoLoader.init(this, OpenSourceMergedSoMapping) + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + load() + } diff --git a/website/versioned_docs/version-0.76/_integration-with-existing-apps-kotlin.md b/website/versioned_docs/version-0.76/_integration-with-existing-apps-kotlin.md index 7a0188623bb..45ee49a6a5a 100644 --- a/website/versioned_docs/version-0.76/_integration-with-existing-apps-kotlin.md +++ b/website/versioned_docs/version-0.76/_integration-with-existing-apps-kotlin.md @@ -338,6 +338,7 @@ import android.app.Application +import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost +import com.facebook.react.defaults.DefaultReactNativeHost +import com.facebook.soloader.SoLoader ++import com.facebook.react.soloader.OpenSourceMergedSoMapping -class MainApplication : Application() { +class MainApplication : Application(), ReactApplication { @@ -356,7 +357,7 @@ import android.app.Application override fun onCreate() { super.onCreate() -+ SoLoader.init(this, false) ++ SoLoader.init(this, OpenSourceMergedSoMapping) + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + load() + }