UWNetworksLab / cordova-plugin-tun2socks

Cordova plugin to enable a system-wide VPN for Android devices.
Apache License 2.0
51 stars 24 forks source link

move to a prebuilt .so #12

Closed trevj closed 7 years ago

trevj commented 7 years ago

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.

alalamav commented 7 years ago

I'll merge now and add the automated ndk build step to the Gulpfile when I start working on tun2socks.