-
Notifications
You must be signed in to change notification settings - Fork 126
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
Make a separate, independent java library out of the core
package
#10
Comments
Yes this would be a good idea |
Let me know if you need my help! If you don't have the time to do it I can also try to do it myself. |
Hello @adolfintel It has been some time since I opened this issue. You can find it in my fork in the branch Here are a few points I wanted to mention:
Let me know what you think. |
It's ok, I was planning to do this in the next update, that's why I didn't close the issue. Your work seems pretty good to me. Removing the android dependencies was something that I wanted to do as well because I intend to use the core package as a base for the command line client that I'll be developing some time in the future. There's probably some way to keep both an android and a non-android version of the user-agent code in the same file (something like C preprocessor directives), you might want to look into it. Good job, keep me posted :) |
The problem with the android code is that it needs some android libraries to be added to the If you want to use the code I have as a base, could you please create an empty branch in your repository? Then I will be able to create a Pull Request which will facilitate development. |
Done, there's a coreOnly branch now |
Thank you! |
I want to use the core only branch as a library. I checked out the branch, but it came empty. Have I committed a mistake or is the branch really yet to be filled? I have some questions related to de license. I read about LGPL, but it is a complex license. I intend to use the core-only branch as a library in my proprietary Android App. Am I allowed to do this if I generate a jar from the core only branch and then use the jar in the build of my proprietary app? Am I allowed to do this if I simply include the source code of the core package directly in the build of my proprietary app? Thank you. |
@MarceloTabian The branch is empty because the work on it was never finished. To answer your questions:
Yes, you can. The LGPL license merely requires that you release modifications to my code, you are free to use whatever license you prefer for yours.
Yes
Technically it's possible, but I would strongly suggest creating a repo on github instead |
Thank you for the fast answer. So I will try to compile the core package and generate a jar. Then I will include the jar in the project of the proprietary App. If I modify the code of the core package, then I will submit a push to this git hub project. Wouldn't it be better to have two separate github repositories, one for your app and one for your library as suggested before? I really think that the separate library would be a great contribution of yours to Android developers. If you or someone else modifies the core package, no action of my part is required, right? |
The core is designed to be independent from the UI, so you shouldn't have problems with that. Technically that counts as a modification according to the LGPL license but I'm willing to make an exception if you're not touching the core code.
Yes, that was the intention of the original author, he wanted to modify the core so that it could work as a library that could be used in any java app, and not just android.
No, but you should check for updates every once in a while. |
I have divided the project in two. Now, one project builds an arr, which is a library for Android, containing the core package and the other uses the arr and contains the UI package. Using Android Studio, I created a project with two modules, an app and a library. Them I copied the files from the original project to the correct places. May I push the changes to a new branch? |
That's great. Fork the project and make a PR to the coreOnly branch |
I did it, but named the branch split, because it contains both the core package, arranged to generate an arr, and the UI package to use the arr. |
Currently, this repository contains two things:
core
package which provides an interface to execute speedtestsI suggest that you separate these two things into two separate repositories. One for the speedtest library and one for the android app template.
This would give the following advantages:
core
package), not only in android apps but also in any java appA good alternative to multiple repositories could also be multiple branches inside one repository.
The text was updated successfully, but these errors were encountered: