c:geo is an open source, full-featured, always ready-to-go client for geocaching.com (unofficial) and offers basic support for other geocaching platforms. It does not require a web browser or exports - just download and start right away.
You want to contribute?
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.
Starting points for contribution
You can also take a look onto the project page of our repository. For example we have a collection of urgent issues and a list of beginner topics which collects issues, which might be suitable for your first contribution.
Get the source
- 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).
Note: Regular merging of release to master (after changes have been done on release) is highly recommended to avoid unnecessary merge conflicts later on.
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.
Setting up an IDE
The standard IDE for Android projects is Android Studio, which is based on IntelliJ IDEA. We use it for the development of c:geo. It is also possible to use eclipse for writing code/testing and Android Studio for building. This is not supported officially anymore.
Details for setting up the IDE is described in the wiki (https://github.com/cgeo/cgeo/wiki/IDE).
- Android SDK (latest version) including Google APIs (at least) V26, Google repository and Android support repository. (File => Settings, Appearance & Behaviour => System Settings => Android SDK, Check "Show Package Details" on "SDK Platforms" tab and check subpackages as needed.)
- If you use Microsoft Windows, Google USB Driver to install the application on the smartphone.
- You need to provide several API keys for compiling the app. See next sections for details.
For the full usability of c:geo you need some API keys - for Google Maps and the opencaching sites. You can leave all entries in the configuration empty, but then Google Maps and the Opencaching sites don't work.
For using the Google Maps function it is necessary to have a Google Maps API v2 key. For this follow
The key itself is free, and you don't have to enter any credit card info, although the web form seems to force you to.
Also to be able to use Google Maps you need to use a Google API enabled image, so make sure to select the right image for your emulator/device, otherwise Google Maps won't be offered as map provider in c:geo.
Request your personal API key for the various OpenCaching sites we support. If you leave these blank, then those networks will remain disabled.
- opencaching.de OKAPI signup
- opencaching.pl OKAPI signup
- opencaching.ro OKAPI signup
- opencaching.nl OKAPI signup
- opencaching.us OKAPI signup
- opencache.uk OKAPI signup
API keys installation
In c:geo we have a semi-automatic configuration
private.propertieswith your keys
- on the gradle build the
./main/res/values/keys.xmlis created and filled with the data from
The third point works only if the file
keys.xml does not exist. When changing your API keys you have to delete the
If you want to fill the
keys.xml by hand copy
./main/res/values/. Then edit the copied
keys.xml. For each key, replace the value starting with @ and ending with @ (inclusive) with the key. If a key is missing, remove the value and the leading and trailing @).
Building with gradle
gradlew from the root directory of the git repository. That will install the necessary build framework and display how to build cgeo.
gradlew assembleBasicDebug might be a good start. Alternatively you can use "make" in Android Studio ("Build" => "Make Project")
To be able to create an installable Android package (APK) you need to create a signing key first. In Android Studio go to "Build" => "Generate Signed Bundle & APK", select "APK" and follow the instructions. You will create a key storage and an project specific key. Enter path and access information to those in file cgeo/private.properties.
The Test classes can be found in the project test. Test classes should be located in the same package as the class under test. Every class can be run with
Run '<class name>' or debugged with
Debug '<class name>') as an Android JUnit Test. To run all tests use the same
Run 'Tests in <package name>' menu item from the context menu of a package in 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 a premium member.
Tests may also be launched from command line. Use
gradlew assembleBasicDebug from the root directory of the git repository.
Deploying the app locally for testing purposes
Android Studio needs to be configured for which device(s) c:geo to deploy to. Use "run" => "run" (2nd entry with this heading). You can create several profiles for either a physical device attached via USB as well as virtual devices run in an emulator. (If the emulator is not installed yet do so via File => Settings, Appearance & Behaviour => System Settings => Android SDK, tab "SDK Tools", check "Android Emulator" and apply.)
c:geo is distributed under Apache License, Version 2.0.
- Website: https://www.cgeo.org/
- Support: firstname.lastname@example.org
- Twitter: https://twitter.com/android_gc
- Facebook: https://www.facebook.com/android.geocaching
- Google Play: https://play.google.com/store/apps/details?id=cgeo.geocaching
- Live status: https://status.cgeo.org/
- Developer chat: #cgeo on freenode.net