-
Notifications
You must be signed in to change notification settings - Fork 64
Eclipse build environment setup
JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eclipse IDE: http://www.eclipse.org/downloads/
Android SDK: http://developer.android.com/sdk/index.html
Eclipse ADT plugin: http://developer.android.com/tools/sdk/eclipse-adt.html
Eclipse GIT plugin: http://www.eclipse.org/egit/download/
Install Eclipse IDE with all the required plugin. Start Eclipse and choose a workspace.
Add the "Git Repositories" view to the used perspective. From the "Window" menu choose "Show view" and then "Other". Or press "ALT+SHIFT+Q" and then "Q". Select "Git Repositories" and press "OK"
Copy the following URL to clipboard https://github.com/photo/mobile-android.git. Right click in the "Git Repositories" view and choose "Paste Repository Path or URI". You should see window like this
Click next and select master as in the shot
Click next and specify local repository path. Also please specify "Clone submodules" checkbox.
Press finish. The cloning will start.
After the cloning is done press "File" menu in the Eclipse IDE and choose "Import". Select "Existing Android Code Into Workspace" and press "Next"
Select cloned repository path as root and select next projects to import
Press "Finish"
After the import is done app will not compile such as we still need HoloEverywhere dependencies
To import HoloEverywhere dependencies select "File" then "Import". Choose "Existing Projects into Workspace" and press next.
Select required HoloEverywhere projects and press next
To speedup projects opening please select same android SDK for each project and library
If you have Maven plugin installed, you need to disable Maven nature for HoloEverywher project. Right click on the project and select "Maven"->"Disable Maven nature".
Now actionbarsherlock dependency requires android support lib update. Right click on "actoinbarsherlock" project. Select "Android Tools" -> "Add Support Library". Accept agreement and install
viewpager-indicator library also has its own support library so we need either install same new version there or remove already present library and add actionbarsherlock as a dependency. Expand library/libs folder and right click at android-support-v4.jars file. Then choose delete and confirm
Right click on the library project and choose "Properties". Navigate to the Android and press "Add" button under library section. Choose actionbarsherlock and press "OK"
Now if you have some unresolved build path errors perform cleaning of all projects. Select "Project" menu and choose "Clean". Then press "OK"
Now you need to download formatting which is used in Trovebox project. Download it from here and save somewhere. Right click on "Trovebox-Android-App" project and go to formatting settings. Select "Enable project specific settings" and press "Import" button. Navigate to the saved file and press "Open". Then select it as "Active profile" and press "OK"
Use same formattign for the "Trovebox-Android-Common" project.
Trovebox app still have one compilation issue
Double click on the error and replace AccountTroveboxApi with the FakeAccountTroveboxApi and save
Congratulations. Now you should be able to run Trovebox Android app on your device or emulator.
Connect your device or start emulator instance. Right click on "Trovebox-Android-App" project and choose "Run As"->"Android Application". Select the device to run
and see the result