How can I include the necessary '.so' files into the Android environment of a Worklight project so that this plugin works effectively?
Plugin github: https://github.com/litehelpers/Cordova-sqlcipher-adapter
General Info:
- Worklight version: 6.2.0.01-20141216-0427
- This is a hybrid worklight project
I want to utilize this sqlcipher cordova plugin to store and encrypt data locally on the device. I want to use this rather than JSONstore so I can reuse existing application js code for a websql db but now have it encrypt the data (this plugin uses same API).
What I have done so far:
I have attempted two approaches for the Android environment: 1. External Android Library Project:
**Outcome** -- Despite pulling this library into my project and trying all of the solutions at this link: https://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray I cannot get past this error:
`[2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lnet/sqlcipher/R$drawable;
[2011-10-23 16:23:29 - myProj] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lnet/sqlcipher/R$drawable;`
Adding the .jar directly to the Android Worklight environment: I have succesfully added the sqlcipher.jar to the Android project via 'Configure Build Path...' --> 'Add jar'. But I the plugin is not working effectively -- which makes sense because I cannot get the '.so' files loaded into the project
I have tried including them in the Android/nativeResources folder as libs/armeabi, libs/armeabi-v7a, and libs/x86 which should override the corresponding folders in the native/libs folder according to this link: Adding native code to an existing Worklight hybrid app
How can I get these files loaded in?
Any help will be much appreciated! I'm a new user so I can't upload photos yet, sorry! I will update with photos as soon as I can.