It's not a common practice to execute a bash script when installing a react-native library, this can cause confusion for users unfamiliar with Linux.
This would also be a blocker for developer building on Windows machines.
We should remove this step. When we build and release the package to npm we should make sure the CMakeLists.txt.rn is set as CMakeLists.txt, as the npm package is only used for react-native.
When publishing to pub.dev it should use the flutter cmake list instead. This would remove this awkward step for the user from both platforms.
The Readme lists this installation step:
cd native_src/cpp && sh generate.sh --type rn
It's not a common practice to execute a bash script when installing a react-native library, this can cause confusion for users unfamiliar with Linux. This would also be a blocker for developer building on Windows machines.
We should remove this step. When we build and release the package to npm we should make sure the
CMakeLists.txt.rn
is set asCMakeLists.txt
, as the npm package is only used for react-native. When publishing to pub.dev it should use the flutter cmake list instead. This would remove this awkward step for the user from both platforms.