c:geo is a simple yet powerful unofficial geocaching client for Android devices. In contrast to other similar applications, c:geo doesn't require a web browser nor file exports. You can just go geocaching with your phone and without any home preparation or worries. Of course, you can go without paying - it's free.
Perfect! Please tell us in the issue tracker before hacking on your great new feature. It would be bad if you have implemented something great, but we can't include it because it doesn't fit the remaining architecture and code. You might also want to chat with the developers on channel #cgeo on the freenode IRC network.
Fork the project source code, make changes to your clone and create a pull request afterwards.
- master is for development of new features. Nightly builds are created from this branch.
- release is for all bug fixes of already existing features. So if a bug is reported in released version, it should be fixed on this branch (and merged to master afterwards).
A more complex bugfix can be first tested against the master
branch and integrated in the nightly builds, while kept compatible with the release
branch for a later integration.
Such a procedure is described in the wiki.
- Install an Eclipse distribution for your OS from http://eclipse.org/downloads/ (you may choose the Java developers distribution).
- Start Eclipse, choose any directory as workspace. Close the welcome screen, if it appears.
- After the workbench has started, select File | Import | Install | Install Software Items From File and select a locally downloaded copy of https://github.com/cgeo/cgeo/tree/master/main/project/eclipse%20installation/cgeo%20eclipse%20components.p2f. This way you can easily install all necessary plugins.
- After forking the project you should import the Eclipse projects in your workspace with File | Import | Projects from Git.
- Android SDK (latest version) including Google APIs V11 (although we target API 4)
- Ant 1.6.0+ for building c:geo on the command line (not necessary when using only Eclipse)
- If you use Microsoft Windows, Google USB Driver to install the application on the smartphone
c:geo sources and executables are located in the main
directory. Tests are located in the tests
directory.
If the workspace directory name contains a space and leads to errors in the -dex Ant target, then you need to set the property "basedir" in your local.properties
to the 8.3 name of the directory where this script is located on your disk.
- copy
./main/templates/private.properties
to./main/
- edit
private.properties
(see comments in the file) - copy
./main/templates/local.properties
to./main/
- copy
./main/templates/local.properties
to./tests/
- edit
local.properties
(see comments in the file) - copy
./main/templates/mapsapikey.xml
to./main/res/values/
- edit
./main/res/values/mapsapikey.xml
and insert your Maps API key (see comments in the file) - copy
./main/templates/ocde_okapi.xml
to./main/res/values/
- request your personal ConsumerKey and -Secret at opencaching.de OKAPI signup
- edit
./main/res/values/ocde_okapi.xml
and insert your keys there. - Repeat steps 8-10 with
ocpl_okapi.xml
and opencaching.pl OKAPI signup
Run one of the following commands in ./main
ant help
ant clean
ant debug
ant release
or use the Ant view of Eclipse
In Eclipse, create a Debug Configuration for an Android Application using the menu Run | Debug Configurations
The Test classes can be found in the project cgeo-os-test. Test classes should be located in the same package as the class under test. Every class can be "Run As" (or "Debug As") an Android JUnit Test from Eclipse. To run all tests use the same "Run As" menu item from the context menu of the test project.
For tests to run successfully you need to configure c:geo on the emulator that runs the test with a valid geocaching.com account. In order for all tests to be successfull the account needs to be premium.
c:geo is distributed under Apache License, Version 2.0.
- Website: http://www.cgeo.org/
- Support: [email protected]
- Twitter: http://twitter.com/android_gc
- Facebook: http://www.facebook.com/android.geocaching
- Google+: https://plus.google.com/105588163414303246956
- Google Play: https://play.google.com/store/apps/details?id=cgeo.geocaching
- Live status: http://status.cgeo.org/