Following a bunch of work creating another Cordova plugin containing an .so, I'm convinced it's better to distribute the .so as part of the plugin rather than building it during the cordova build stage.
I just couldn't make an app work which contains two plugins which both need to invoke ndk build: they conflict with each other in really annoying ways, partly due to how Cordova hoovers up output folders in a destructive way.
I added instructions to the README on how to build the .so. It should be run whenever the source files change.
Following a bunch of work creating another Cordova plugin containing an
.so
, I'm convinced it's better to distribute the.so
as part of the plugin rather than building it during thecordova build
stage.I just couldn't make an app work which contains two plugins which both need to invoke
ndk build
: they conflict with each other in really annoying ways, partly due to how Cordova hoovers up output folders in a destructive way.I added instructions to the README on how to build the
.so
. It should be run whenever the source files change.