apache / cordova-docs

Apache Cordova Documentation
https://cordova.apache.org/
Apache License 2.0
351 stars 557 forks source link

Document how to use Android NDK libraries in plugins #902

Open brodybits opened 5 years ago

brodybits commented 5 years ago

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

janpio commented 5 years ago

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

brodybits commented 5 years ago

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.