LDSTechForumProjects

Scripture Mastery Android Project Setup

Scripture Mastery for Android Index edit

This guide assumes that you have already completed the Environment Setup Guide

Dowloading the Project

To download the project into your Eclipse workspace, we will use the "Check Out Maven Projects from SCM" wizard. To access this wizard, hit File > Import > Maven > Check Out Maven Projects from SCM. Once you have opened the wizard, set the SVN URL type to "svn" and paste https://code.lds.org/svn/si/scripture_mastery/android/trunk/ in the text field. To finish the import process, hit "Finish". Several new projects should show up in your workspace.

Importing Libraries

Following the instructions in this section is only necessary if you want to build and run the project from Eclipse. If you are content just using the command line, than you do not need to follow these instructions.

Because the Android Developer Tools (ADT) plugin does not understand Maven projects, it does not know where to look to find the libraries that we depend on. To work around this, we manually import these libraries into our workspace, so that ADT can find them. In order to do this, we follow these steps:

ActionBarSherlock

  1. Hit File > Import > Maven > Check Out Maven Projects from SCM
  2. In the text box, paste the following URL: https://github.com/JakeWharton/ActionBarSherlock/tags/4.4.0
  3. Uncheck Checkout All Projects.
  4. Hit Finish.
  5. After a short while, a dialog will appear. Hit Deselect All, then check /pom.xml and actionbarsherlock/pom.xml.
  6. Finally, open the Advanced tab and type abs-[artifactId] into the Name template text box.
  7. Hit Finish.

ViewPagerIndicator

  1. Hit File > Import > Maven > Check Out Maven Projects from SCM
  2. In the text box, paste the following URL: https://github.com/JakeWharton/Android-ViewPagerIndicator/tags/2.4.1
  3. Uncheck Checkout All Projects.
  4. Hit Finish
  5. After a short while, a dialog will appear. Hit Deselect All, then check /pom.xml and library/pom.xml.
  6. Open the Advanced tab and type vpi-[artifactId] into the Name template text box.
  7. Hit Finish.
  8. Finally, right-click vpi-library, select Properties > Android, and then check the Android 4.3 box, and hit OK.

Finally, right-click sm-project and select Maven > Update Project, then hit OK. The project should now build and run without errors.

This page was last modified on 23 August 2013, at 10:09.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.