Scripture Mastery Android Project Setup
Scripture Mastery for Android Index edit | |
This guide assumes that you have already completed the Environment Setup Guide
Contents
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
- Hit File > Import > Maven > Check Out Maven Projects from SCM
- In the text box, paste the following URL:
https://github.com/JakeWharton/ActionBarSherlock/tags/4.4.0
- Uncheck
Checkout All Projects
. - Hit
Finish
. - After a short while, a dialog will appear. Hit
Deselect All
, then check/pom.xml
andactionbarsherlock/pom.xml
. - Finally, open the
Advanced
tab and typeabs-[artifactId]
into theName template
text box. - Hit
Finish
.
ViewPagerIndicator
- Hit File > Import > Maven > Check Out Maven Projects from SCM
- In the text box, paste the following URL:
https://github.com/JakeWharton/Android-ViewPagerIndicator/tags/2.4.1
- Uncheck
Checkout All Projects
. - Hit
Finish
- After a short while, a dialog will appear. Hit
Deselect All
, then check/pom.xml
andlibrary/pom.xml
. - Open the
Advanced
tab and typevpi-[artifactId]
into theName template
text box. - Hit
Finish
. - Finally, right-click
vpi-library
, selectProperties > Android
, and then check theAndroid 4.3
box, and hitOK
.
Finally, right-click sm-project and select Maven > Update Project
, then hit OK
. The project should now build and run without errors.