Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Building Clover

Floens edited this page Apr 10, 2016 · 8 revisions

Building Clover

Install the required tools

Fork and clone

  • Fork Clover by pressing the Fork button
  • Open up a terminal (git bash if on Windows)
  • Clone your new repo git clone https://github.com/YOURNAME/Clover

Setup Android Studio

  • Open Android Studio
  • Click "Open an existing Android Studio project"
  • Select the file Clover/Clover/build.gradle and press OK
  • Open up the build.gradle file and note the buildToolsVersion and the compileSdkVersion, you will need to install the same versions.
  • Open the SDK Manager by clicking the button at the top, and make sure that the correct SDK Tools versions and SDK Platforms versions are installed.
  • Sync the project again and it should be ready.

Create a pull request

  • Commit your changes git commit -a i, enter a descriptive message and save with ESC :wq ENTER
  • Push your changes to your repo git push
  • Make a pull request at https://github.com/YOURNAME/Clover/pulls
  • Make a descriptive title and click Create pull request button

I just want an apk!

You will still need the Android sdk installed, but because we use gradle the following command in the terminal should be enough: ./gradlew assembleRelease, or go to the gradle pane at the right in Android Studio and execute the assembleRelease task. The apk ends up in Clover/Clover/app/build/outputs/apk/. See the comment in the build.gradle file how to sign your apk.