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

Use Case - connect with a TS library and call its method in Java Android app #595

Open
gouravsinghal92 opened this issue Jan 18, 2024 · 0 comments

Comments

@gouravsinghal92
Copy link

gouravsinghal92 commented Jan 18, 2024

Hello,

I have created a sample Android app using J2V8. I have read a js file inside my code and called JS methods from it. This worked well.

Now, I have a compiled TS library (having js files) and I want to import this in my Android app and use that complete library in my android app.

Is it possible? Will I need to copy every js file first and then call methods from it?

v8.executeScript(readFileAsString("sampleModule.js")); Object result1 = v8.executeJSFunction("greet", "Gourav"); Log.d("Gourav", result1.toString());

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

No branches or pull requests

1 participant