2015-08-24 10:34:22 -07:00
|
|
|
Contributing
|
|
|
|
============
|
|
|
|
|
2015-08-26 20:05:52 -07:00
|
|
|
Reporting issues
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Remember to include:
|
|
|
|
|
|
|
|
* Android version
|
|
|
|
* Device model
|
|
|
|
* F-Droid version
|
|
|
|
* Steps to reproduce the issue
|
|
|
|
* Logcat - see [instructions](https://f-droid.org/wiki/page/Getting_logcat_messages_after_crash)
|
|
|
|
|
2015-08-24 10:34:22 -07:00
|
|
|
Style
|
|
|
|
-----
|
|
|
|
|
|
|
|
We follow the [Google Java style](https://google-styleguide.googlecode.com/svn/trunk/javaguide.html).
|
|
|
|
To summarize it:
|
|
|
|
|
2015-08-26 20:05:52 -07:00
|
|
|
* Four space indentation
|
|
|
|
* UTF-8 source files
|
|
|
|
* Exactly one top-level class per file
|
|
|
|
* No wildcard imports
|
|
|
|
* One statement per line
|
|
|
|
* K&R spacings with braces and parenthesis
|
|
|
|
* Commented fallthroughs
|
|
|
|
* Braces are always used after if, for and while
|
2015-08-24 10:34:22 -07:00
|
|
|
|
|
|
|
The current code base doesn't follow it entirely, but new code should follow
|
|
|
|
it.
|
|
|
|
|
|
|
|
Debugging
|
|
|
|
---------
|
|
|
|
|
|
|
|
To get all the logcat messages by F-Droid, you can run:
|
|
|
|
|
|
|
|
adb logcat | grep `adb shell ps | grep org.fdroid.fdroid | cut -c10-15`
|