I am working on a Android Library. I need to use various open source libraries like volley, socket.io etc. Should I add dependency in build.gradle file or Should I include the source code as a package in my library module ?
Since Volley and Socket.io are pretty common libraries, I want to avoid any type of conflict in the future? It should work well under following coditions.
- User adds the same library (jar, gradle dependency)
- Difference in version added by user (say Volley, included is 1.0, and user adds 1.2).
I need to export the library to jCenter;
There aren't much resources available, the one which are available, are complex.