-
Notifications
You must be signed in to change notification settings - Fork 210
Create a pure C++ Turbo Module without wrappers #630
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
Comments
Hey, @ospfranco let me try to address all the problems the best I can.
I definitely agree with this and apologize that I didn't do enough testing with all cases. I've mostly tested the happy cases, and will be more careful about this in the future.
This is coming from the
We are invoking codegen manually in that step since it's not done automatically for us anymore. The reason is, we are shifting towards shipping the codegen specs with the library. You can take a look at this guide from React Native new architecture working group if you're not familiar with the concept. It's sad to see this causes some issues but I'm not sure whether #628 is a common case since you've stated you don't have
Could you move this part into a discussion/feature request? I'm actually working on adding this exact template, you can find an early example here. I've been waiting for react-native-community/cli#2387 to get merged so we won't need additional files on Android. So I can tell that this is in the works. With that being said, this is not our biggest priority right now. We are focused on enhancing the CLI experience, reducing the number of steps, and increasing robustness as you stated. |
Hi guys ! I am very interested in your discussion. I am also trying to create a cpp module wrappers or JNI. I've check your early example, but, it work at this time ? |
Thanks @atlj!
Going to close this for now as none of the items are actionable. |
I want to create a pure C++ library now. Is there any good way to do it? |
Description
I want to create a pure C++ module without ObjC/Kotlin wrappers. This library has a really simple way to load the Turbo Module.
However on the latest version it seems builder-bob has started to customize and patch the Turbo Module generation which is causing me a lot of troubles. I've tried replicating the setup of BcryptCpp but I get different errors.
First I had to remove the codegen step from pre-actions on the scheme. Related to #628. It seems the script messes with codegen as well. Then when I remove the outputDir from the
codegenConfig
inpackage.json
I start getting duplicated symbols error as well as failingpod install
:With the following
package.json
config:Some times I can get it to work. After clearing the build and derived data folder. But other times I don't.
Not necessarily that I disagree with the direction builder-bob is trying to help package creation. But the scripts that modify/patch the codegen process should be robust enough
Packages
Selected options
C++ Turbo Module with Vanilla app
Link to repro
Will create one later
Environment
The text was updated successfully, but these errors were encountered: