-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload Project to Maven Repository #33
Comments
Hi rockstarartist, You can install the SQLCipher into your local maven repository. The maven-android-plugin supports resolving the native libraries as well. More information can be found here: http://code.google.com/p/maven-android-plugin/wiki/NativeLibsAsDependencies |
This would still be nice to have in a community REPO (such as Maven's Central Repo). Right now, in order to use sqlcipher in a shared project, we have to put the sqlcipher jar and so files into our own Nexus Repo. Then we can add our dependencies into our pom.xml file. While we got it to work for us, it can be much more difficult for others to setup their own shared repo. In a nut shell, it would be nice to just add sqlcipher dependencies (to a Maven Android project), change some imports, add the loadLibs, add the password parameter, DONE. |
Hi jeffdcamp, We can certainly look into uploading SQLCipher for Android to a public maven repository in the future. Thanks for your feedback! |
Has this issue been looked any more into? Like jeffdcamp noted above, it would be very nice to have this in Maven's Central Repository for shared projects. |
Hi Thorbear, At this time we have not focused on providing access to SQLCipher for Android via maven. |
I wonder if this should become more of a priority because:
|
Hi jeffdcamp, The update to the Android build system is interesting. Currently they don't support the NDK, which appears on their radar, but would be a requirement for this project. Certainly something to keep an eye on. Thanks! |
Is this still being looked at? I think development of projects using SQLCipher would be greatly simplified if SQLCipher would be available in official Maven repository. At the moment this is a lot of manual work. |
Hello svenjacobs, At this time we haven't modified the build/integration process. There is a fair amount of work involved in the main build process as this project is NDK based, however I can understand the desire for maven integration. That said, we are open to pull requests should you be interested in approaching it before we do. |
Your build process is a trifle unusual for an Android project. Trying to wrangle it into something that is Maven-aware is probably not going to be fun. Instead, you can create a separate Android library project that can be published as an AAR, that contains just the compiled binaries and assets. I have set up a proof of concept project for this. I am happy to explain more about how it works, how you can alter it to fit your needs (e.g., Maven group and artifact names), etc. Then, your overall release process would involve copying over the new binaries into your equivalent of this project, and running a We can discuss this further here, in issues on the GitHub repo for the proof of concept, on |
Yes, the realities of the native interop layer. ;-)
Thank you for providing a template to base this off of. We've generally preferred to provide the binary package from a single canonical source so there isn't confusion about where to get them, however a maven repository maybe the preferred route for simplicity going forward. In general, while I don't feel integrating SQLCipher for Android is difficult at this point, adding a line to a pom.xml or gradle file is certainly easier. We will take a look at implementing this. Thanks! |
It's not even so much a matter of being easier as it is Google telling people to stop using JARs (let alone bare NDK .so's). So far, they have only been telling people that on the |
Thanks Mark, that is also good to know as it will help from our planning perspective. |
Come here just to make a "+1". Currently using Gradle, I know that native libs is not usable with it. However, I just would like to give you another point of view for your sentence :
I am OK with you about the simplicity of adding a JAR to a project. I am working for a company and so your library will be shared among many developers. Having to bundle the jar and other stuff is not efficient (including binary content inside a repo, having developpers to be aware of the dependencies, ...). As you know, pom.xml and build.gradle files are here to centralize the dependencies of a project so team members will easily know what is included in the project AND a new dev can easily comes working on the project. What I want to say is that your project is a "particular case" in libraries inclusion and some people may not use it because of that (even if it's a really great solution). |
Please create a project repository in Maven to allow maven-android-plugin users to develop their applications with the maven dependency management tool.
More Information on how to do this can be found here:
http://maven.apache.org/repository/index.html
Thank you.
The text was updated successfully, but these errors were encountered: