jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Add build.gradle to the code-generation #55

Closed jhugman closed 1 month ago

jhugman commented 1 month ago

This adds the top-level android/build.gradle to the list of files generated with ubrn generate turbo-module command.

Specifically it adds:

    buildFeatures {
      prefab true
    }
    externalNativeBuild {
      cmake {
        cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
        arguments '-DANDROID_STL=c++_shared'
      }
    }

to the android.defaultConfig block.