|
CodeContributions
How to compile Transdroid and contribute code
Developer IntroductionTransdroid is open-source and of course I greatly welcome any code contributions, small and large. Besides bug fixes and (UI) improvements consider completing or adding support for different torrent clients or enhancing customization. Modular setupThe full project is divided into:
Note that effectively two Android applications (.apk's) are produced: 1 for the search project and one for the Transdroid app. Code project setupEasiest is to use Eclipse. Create a directory (I assume ~/transdroid/ here) as root development dir. Transdroid now uses Mercurial (hg), while the search project is still on Subversion (svn). Run: cd ~/transdroid hg clone https://erickok@code.google.com/p/transdroid/ svn checkout http://transdroid-search.googlecode.com/svn/trunk/ transdroid-search Create a new workspace in Eclipse. Make sure you have the Android SDK tools (currently minimum version is r14) set up and pointing to the local Android SDK directory. You should have at least the SDK for API level 13 (Android 3.2) installed, as Transdroid is currently compiled against this (while the minimum supported version is Android 1.6). Now add the Transdroid projects and ActionBarSherlock by using the import function and pointing to ~/transdroid/transdroid. The import wizard should show 3 projects. Repeat this import process for ~/transdroid/transdroid-search. Once these have been added all the projects should compile and you can debug. If something doesn't compile/work, check:
For more detailed help, please visit the Transdroid support forum at www.transdroid.org/support/ Code formattingIn principle the code is formatted according to the Eclipse IDE defaults. There are some small differences:
Commenting is highly encouraged but in a meaningful way of course. Contributing codeIf you like to contribute code (or resources) back to the projet, compile a patch (hg diff > patch.diff) and send it to transdroid.org@gmail.com. If you plan on more regular contributions I am happy to add you as code committer at this Google Code project site. |