cordova-docs icon indicating copy to clipboard operation
cordova-docs copied to clipboard

Document how to use Android NDK libraries in plugins

Open brody4hire opened this issue 6 years ago • 2 comments

As discussed in https://github.com/dpa99c/cordova-plugin-hello-c/issues/8 ([1]) and https://github.com/litehelpers/Cordova-sqlite-storage/issues/729 ([2]) the change in the project directory structure caused issues with plugins using Android NDK libraries (with JNI).

I can think of the following alternative solutions, from least-recommended to most-recommended:

[1] https://github.com/dpa99c/cordova-plugin-hello-c/issues/8 [2] https://github.com/litehelpers/Cordova-sqlite-storage/issues/729 [3] https://github.com/dpa99c/cordova-plugin-hello-c/commit/b5f4d9c3085dd0c70a3d0a6fd84f39adb17a7ecd [4] https://github.com/litehelpers/Cordova-sqlite-storage/issues/729#issuecomment-355194460 [5] https://stackoverflow.com/questions/34115571/add-external-jar-library-to-build-cordova-plugin-ionic-framework/34129929#34129929 [6] https://github.com/brodybits/cordova-sqlcipher-adapter/commit/05a9166eb691faca9eeb135a8acdd748bd4df331

brody4hire avatar Nov 06 '18 16:11 brody4hire

What is the relevancy of this to the Cordova website and documentation?

janpio avatar Nov 06 '18 16:11 janpio

Considering that the Android plugin development guide exists in https://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html (with source in https://github.com/apache/cordova-docs/blob/master/www/docs/en/dev/guide/platforms/android/plugin.md), I think some pointers how to use Android NDK libraries belong in this guide.

brody4hire avatar Nov 06 '18 16:11 brody4hire