jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
https://jhugman.github.io/uniffi-bindgen-react-native/
Other
50 stars 5 forks source link

Fix the configuration errors in the document about ubrn.config.yaml #154

Closed kingsword09 closed 2 weeks ago

kingsword09 commented 2 weeks ago

There's a problem with the android configuration in the ubrn.config.yaml file in the document.

When I configure android according to the document, the following error occurs:

# Error: Failed to read "ubrn.config.yaml" as valid YAML

# Caused by:
#     android.targets[0]: unknown variant `aarch64-linux-android`, expected one of `armeabi-v7a`, `arm64-v8a`, `x86`, `x86_64` at line 10 column 5

After looking at the code, I found that it does need to be changed to Abi armeabi-v7a, arm64-v8a, x86, x86_64.

jhugman commented 2 weeks ago

Brilliant! Thanks @kingsword09 .

I'll investigate further why this was failing (it shouldn't) but will merge this nevertheless. Thank you.

kingsword09 commented 2 weeks ago

Brilliant! Thanks @kingsword09 .

I'll investigate further why this was failing (it shouldn't) but will merge this nevertheless. Thank you.

Because the target used in the template is used for ndk abiFilters.