-
Notifications
You must be signed in to change notification settings - Fork 191
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
Codegen for Android does not output flat struct for rn-gradle-plugin #638
Comments
Hey, |
Thanks for taking a look @okwasniewski! Yeah, after looking at the code I realized it comes from RN itself, just thought maybe bob modified the generation process further (other than patching the package). If it's not I will go spelunking myself. Another question, what does the following object do in the package.json? "create-react-native-library": {
"type": "module-new",
"languages": "cpp",
"version": "0.41.1"
} It is important somehow? |
Also, as a side note, this is not properly implemented in bob I believe. Pure RN allows to nos specify the path, but the patchCodegen.js script fails if no output path is specified, maybe this is messing up the generation for my use case. |
I will cc @atlj because I don't have inside knowledge about this.
This was introduced by @atlj here: #551 It's going to be used in the future for a library upgrade helper 👀 |
ok, I understand, thanks for clarifying. Can you give me a hand and tell me what does:
do? Like, what's exactly is it calling. From what I can see in the filesystem bob is a binary of some sorts but it would be good which command it calls so I know how the codegen is being generated, much appreciated! |
Hmm I just re-generated my sources and everything is compiling just fine, weird. I will close this for now, re-open if necessary. |
Description
I'm trying to write a CPP Turbo Module. I have the following config that generates the files under
android/generated
:However, when I try to build my app, I get the following error:
Which then throws the following error:
You can see the folder structure under
android/generated
does not match. Am I doing something wrong?Packages
Selected options
C++ Turbo Module with Vanilla app
Link to repro
Environment
The text was updated successfully, but these errors were encountered: