Closed bgrayburn closed 8 years ago
Ok I see the problem. Cordova uses Gradle for the Android build process, older versions used Ant. It seems Meteor uses the Ant version. I found an unaccepted PR regarding this: https://github.com/meteor/meteor/pull/4390
The way this was addressed previously was messy and error prone. I created a gradle file that downloaded the library, extracts it and copies it to the Android project. This was run automatically via an install hook that ran the gradle command, gradle getDeps
.
So there's a few solutions... the automated ones would be through Gradle and a Hook, otherwise trying the meteor-cordova fork. The manual solutions would be downloading the support lib and adding to platforms/android
manually.
Hope this helps somewhat!
I was advised to add an engine requirement to plugin.xml
, this would fail the plugin install in this case. I am racking my brain for workarounds, I don't have as much experience with Meteor to approach this. I wouldn't like to bundle the dependency, it's very brute force, but would address these issues.
Thanks for all the help! Sorry for the delay, got shifted to something else for a few days. I've decided for the moment to use your manual solution since it looks like meteor is in the process of switching over to utilize gradle.
I wanted to make sure I was adding the right files, is it all the files available here in the download section? (Conceal.jar, libconceal.jar, and contents of native binaries zip)
Yes, adding those contents to the Android project manually will work, the only bad part is you'd have to do it manually. As I noted in my earlier response, prior to official Gradle support I used Cordova hooks and a custom Gradle script that downloaded and uncompressed the library, then copied it to the right place, maybe those can be useful in setting up your Android libs/
.
awesome, just got it working using the gradle script! Sorry for the noob questions, this is new ground for me. Thanks again!
That's great news, happy to hear! Not at all, coming from a web background I didn't know any of the mobile tooling or ecosystem either, Cordova helped bridge those gaps. It's been a learning experience for me as well, thanks in large part to feedback and help from the community. Open source is pretty awesome :100:
Seems cordova can't locate the com.facebook.crypto lib. I'm using cordova-safe in a meteor app so this may look a little different than a normal cordova debug output, but under the hood it really is just cordova. com.facebook.crypto.* java lib isn't listed as a dependency. Should it be? am I missing something else? Thank you! error below