Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get libjsi.so and header files from hermes aar #1477

Closed
LiShiqii opened this issue Aug 16, 2024 · 4 comments
Closed

How to get libjsi.so and header files from hermes aar #1477

LiShiqii opened this issue Aug 16, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@LiShiqii
Copy link

LiShiqii commented Aug 16, 2024

Problem

We have a project to build hermes engine into Android app, and our Android app is not react, we want to use Hermes as a JS engine and using a wrapper to connect with our custom components. And After pull the hermes android from maven repo https://mvnrepository.com/artifact/com.facebook.react/hermes-android. We build the app, and only saw the header files for Hermes and didn't see where is the libjsi.so and its header files. And I did see the jsi file exists in https://mvnrepository.com/artifact/com.facebook.react/react-android, but we don't want to build that into our app since react-android contains lots of other unneeded dependencies for our app.

Solution

Is there a way to pull the libjsi.so and its header file from Hermes maven aar? Or what is the best practice to pull that into our non react Android app.

Additional Context

@LiShiqii LiShiqii added the enhancement New feature or request label Aug 16, 2024
@tmikov
Copy link
Contributor

tmikov commented Aug 16, 2024

Hi, if you are using Hermes outside of RN, you need to compile Hermes from source. You can see the steps for Android compilation here:

android:

@tmikov tmikov closed this as completed Oct 18, 2024
@leon60740
Copy link

Hi, if you are using Hermes outside of RN, you need to compile Hermes from source. You can see the steps for Android compilation here:

android:

I'm building Hermes from source by following the CI configuration, but the output doesn't include libjsi.so. How can I build it for arm64-v8a? (Sorry I'm new to C++).

@ammarahm-ed
Copy link

Facing the same issue @tmikov any guidence? the built aar does not include libjsi.so

@ammarahm-ed
Copy link

Screenshot 2024-11-16 at 11 30 49 PM
I think commenting this out will include libjsi.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants