These steps should prepare you for developing the app.
- Install Android Studio
The app is developed on Android Studio. Please download and install it. - Install Git
While installing Android Studio, get the source code on GitHub. Git is used to develop the app in a distributed way. Please install Git or the GitHub Desktop. - Fork the repository to your GitHub Account.
- Get the source code
The code should appear automatically in GitHub Desktop. If using the command line client, clone the app with this command:Please replacegit clone https://github.com/YOUR_USER_NAME/mundraub-android.git
YOUR_USER_NAME
with your GitHub username. - Open the source code
Once Android Studio is installed, click on File → Open and navigate to the project. - Now you are ready to go. You can change the source code and build the app! Please view the Contribution Guidelines if you would like to share your improvements or just submit them and we will talk.
You can translate the app from English to your preferred language using Transifex. To build the app with translations included, use the Transifex client and download all of them at once.
Before building the app, download the current translations to include them in the build and test different layouts e.g. in German which uses the most space. To download the translations, follow the steps below:
- Install Transifex client.
- Go to the repository root
cd mundraub-android
- Pull the latest translations. You may need to log in or get an API key.
tx pull --all
The map is an HTML/CSS/JavaScript website which is displayed in the app as an Android WebView. This map can be worked on locally and in the app. To display the map, you need a web browser like Firefox.
Mundraub.org does not allow JavaScript access to the map
directly because it does not set the Access-Control-Allow-Origin
header therefore we need a proxy for this map.
The proxy can be run with the command scripts/runHTTPProxy.sh
You need java
and javac
for this.
Please the the API to know what the proxy provides.
The changelog resides in the CHANGELOG file.
It is automatically generated to the changelog folder using
the [command scripts/generate-changelog.py
][scripts].
You need Python 3 and the python3
command for this.