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

Developer's guide

suomiy edited this page Feb 1, 2017 · 1 revision

Prerequisites

To start contributing to moVirt, you will need to install the following things:

  • oVirt
  • Android Studio, Git
  • Android 4.1+ or emulator

Android studio setup

For Windows users:

  • Download and install Android Studio Bundle.
  • Add packages in Android SDK Manager (guide), you need:
    • Android SDK Platform-tools
    • Android SDK Build-tools; see version in moVirt/build.gradle
    • Android Support Library and Repository
    • Android API SDK (you can install additional SDK as per your needs).

For Linux/MacOS users:

  • Download Android SDK
  • Download and install Android Studio or any other IDE for Java development.
  • Install Android SDK (guide)
  • Add packages in Android SDK Manager (guide), you need:
    • Android SDK Platform-tools
    • Android SDK Build-tools; see version in moVirt/build.gradle
    • Android Support Library and Repository
    • Android API SDK (you can install additional SDK as per your needs).

Importing the project

  1. This step only for Windows users.
  • Before importing you need to change symlink. To do this run CMD with admin rights, change directory with cd [/d] path\to\movirt\root, and run symlink.bat. Repeat every time after updating repo.
  • Also you might want to exclude symlink from your local repo. To do this add AndroidManifest.xml to the end of .git\info\exclude file.
  1. File -> Open -> ~/" path to moVirt project "/build.gradle. Or select "Import project" from Welcome page.
  2. On the import dialog : Select local gradle distribution. Give the path to gradle; see version in gradle/gradle-wrapper.properties

    After this, the prompt asks you to enter the path to the android sdk.
    You can refer the following image for the complete SDK path.
  3. Press OK. The build takes a while to complete. After it is done, the project is reloaded.
  4. Run the android application on an emulator or a developer's device.
    Run -> Run -> Select moVirt-moVirt
    For the first time Run -> Edit Configurations
    Click on the + icon -> Android application -> in right panel General tab select the moVirt-moVirt module.
    Click Apply. Click OK.

Installing oVirt

See http://www.ovirt.org/documentation/quickstart/quickstart-guide/

Clone this wiki locally