-
Notifications
You must be signed in to change notification settings - Fork 7
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
Doesn't work anymore with create-react-native-library@0.41.2 & react-native@0.76.1 #161
Comments
@Johennes I'm not sure if you want to fix this yourself, or not. If you don't then, no worries, but it will take a week or two for me to get to it. If you do, great! This is what I'd suggest: Reading the You may need to add something to I'm not sure if you need to add something to Looking up a relative path has a utility method on
I think you have a good handle on what's going on with the What do you think? |
Thanks for the detailed steps. Let me try and take a stab at this. I wanted to first set up the bob / rn test matrix we spoke about but was surprised when the issue didn't reproduce there. It turns out that uniffi-bindgen-react-native/crates/ubrn_cli/src/codegen/templates/build.kt.gradle Lines 119 to 121 in 33fb8c6
When I first generated my project, however, crnl wasn't yet using Kotlin so this check always failed for me:
That in turn meant that ubrn would always generate from the uniffi-bindgen-react-native/crates/ubrn_cli/src/codegen/templates/build.gradle Lines 107 to 109 in 33fb8c6
|
Given that as of writing the lowest version of crnl that is not broken1 is 0.42.2 and given that this version uses Kotlin rather than Java, maybe we can ditch the Footnotes
|
The
codegenConfig
block now seems to include output dirs for the generated code.UBRN doesn't appear to use these for Android and instead tries to include the generated code from
android/build/generated/source/codegen/java
inandroid/build.gradle
.I tried changing the output dir for Android in
package.json
to comply with the value UBRN expects but this gave me another error. The only thing I found working so far is to manually patchbuild.gradle
.UBRN should read the values from
package.json
and use them accordingly.The text was updated successfully, but these errors were encountered: