FrostWire is a file sharing client and media management tool that was made using lots of cool open source projects. It was born from the legendary LimeWire Gnutella client, but it's evolved a hell of a lot since then.
FrostWire no longer supports Gnutella,** it's a BitTorrent client, an Internet Radio client and Media Player.**
Unlike most BitTorrent clients out there, FrostWire focuses on searching files and tries hard to make it as easy and convenient as possible to users.
Old FrostWire users were used to the Gnutella experience (searching for single files), so FrostWire makes use of BitTorrent a little differently to make it simple for them.
FrostWire will connect to all the major BitTorrent indexes of the internet and pre-fetch torrents (via the libtorrent DHT or via HTTP if it can't find it on the DHT), it will then index locally all the available metadata that's indexed by the torrent file, as the user searches, the local index gets better and better to yield richer and instant results.
This makes FrostWire a very powerful client that will help you find the rarest of files on the bittorrent network, sometimes it will find files that even the best BitTorrent indexes won't yield in the search results.
The main software architecture (how things are organized) depends on the late LimeWire 4, but it has evolved through FrostWire 5, and now the source code layout has been simplified enourmously for FrostWire 6.
- The BitTorrent power comes from the frostwire-jlibtorrent library.
- Media playback comes from the *MPlayer* project
- The good looks and skinning system comes from the Substance skinning project (which we've had to maintain on our repo to make it fit FrostWire needs)
- HTTP interaction comes from the Apache Commons project
- The search is built using the awesome H2 database and Lucene indexes
- JSON parsing comes from google-gson, and so on and so on.
Introductions aside, here's how you build this.
Make sure your CLASSPATH, JAVA_HOME, ANT_HOME and your PATH variables are set correctly.
Example on a Ubuntu system's .bashrc file:
JAVA_HOME=/usr/lib/jvm/java-7-sun
CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib
PATH=${PATH}:${JAVA_HOME}/bin
export JAVA_HOME CLASSPATH PATH
In some cases, you will need to set the variable ANT_HOME
Must build problems are usually solved by having those environment variables set correctly. If you are a Windows or Mac user the process is fairly similar.
- Try having the JDK 1.7 or latest available (OpenJDK or Oracle JDK)
- Apache Ant, Gradle
- GIT to clone, check out the project to your machine.
We recommend using IntelliJ Idea as your development environment.
git clone https://github.com/frostwire/frostwire-common.git
git clone https://github.com/frostwire/frostwire-jlibtorrent.git
git clone https://github.com/frostwire/frostwire-desktop.git
cd frostwire-desktop
git pull
This will pull the latest changes and automatically merge them with your local copy of the repository.
Be sure that you're in the project root, else then execute :
cd frostwire-desktop
If you're already in project root, simply execute :
gradle clean
gradle build
Then run the project with:
./run
"My environment variables are fine, my requirements are met, there's an error during the build."*
It's very hard that it happens but we might have pushed out a broken build.
If you do have any issues building, please yell on the comments of the offending commit log at github.com so we can address the issue right away.
If the build is not broken, hit us up at the Developer Forum
Location | Contains |
---|---|
src/com/frostwire/ | Search, mp3 parsing, Json Engine, mplayer integration, bittorrent, . |
src/com/limegroup/gnutella/gui/ | Everything the user sees on screen is here.Like Java Swing? this is probably a great place to learn more about it. If you're going to be adding new UI elements make sure you put them inside com.frostwire.gui.* (Most of the stuff on com.limewire.gui are legacy code from LimeWire) Good starting points to see how it all works are the *Mediator.java files. Being the McDaddy GUIMediator.java |
resources/ | This is where most graphical assets are stored. |
lib/jars | This is where we keep pre-compiled jars from projects we don't maintain. |
lib/jars-src | This is where we keep the sources of those third party projects. We do this because we hope one day we'll be accepted into debian or ubuntu and it's a requirement that your packages can be compiled without any binary dependency. This also helps us help those projects, sometimes we fix bugs that affect us and we send patches back to those projects. Also on eclipse it's awesome to be able to browse the source of those dependencies and to step-by-step debug to see what the hell those developers were thinking. |
lib/messagebundles | Where we keep the translation files. |
lib/icons | Where we keep the FrostWire launcher icons for the differentoperating systems. |
splashes/ | Where we keep all the splash screens for each major version of FrostWire. There are tools there to build the splash.jar and to build a collage of pictures with all the splashes for a release. |
If you're using Eclipse as your IDE, we suggest you use the "eclipse.formatter.xml" on your project. We try to stick as much as we remember to the Google Java code style except for a few things we don't like because we all work on eclipse and we do have monitors with over 1200 pixels of width.
[5 Object Oriented Programming Principles learned during the last 15 years][3] [3]: http://bit.ly/y0hdR4
Basically, Keep it simple and try not to repeat yourself at all.
Every countribution merged to the master branch will automatically receive a tip of 1% of whatever funds are available on the tip4commit fund.
If you want to contribute code, start by looking at the open issues on github.com [https://github.com/frostwire/frostwire-desktop/issues][4] [4]: https://github.com/frostwire/frostwire-desktop/issues
If you want to fix a new issue that's not listed there, create the issue, see if we can discuss a solution, if you already have one the best way to proceed is to:
- Fork the source.
- Clone it locally
- Create a branch with a descriptive name of the issue you are solving.
- Code, Commit, Push, Code, Commit, Push, until you are done with your branch.
- If you can add tests to demonstrate the issue and the fix, even better.
- Submit a pull request that's as descriptive as possible.
- We'll code review you, maybe ask you for some more changes, and after we've tested it we'll merge your changes.
Repeat and rinse, if you send enough patches to demonstrate you have a good coding skills, we'll just give you commit access on the real repo and you will be part of the development team.
Main Website Frostwire.com | Frostwire Forum | Facebook | Twitter @frostwire | Tumblr