Classy Apps

Classy Apps with Maven and Eclipse Andmore

Download Classy Apps modules to your PC

Clone the Classy Apps Github repository to your PC. In a command window, go to your chosen workspace location and run:

git clone https://github.com/cybersearch2/classy_apps.git

Upon completion, the project will be found in the "classy_apps" sub directory, referred to here as the Classy Apps "home location".

JCenter

Classy Apps has a dependency on a release version of Classy Data located on the JCenter Maven Repository. If you have not already done so, add JCenter repository to your Maven settings file. For instructions, got to JCenter Maven Repository and click on "SET ME UP" link.

Build and deploy the Classy Apps artifacts

If you have not already installed Classy Data, then follow the steps in Getting Started and install Android before proceeding. Build all modules by going to the Classy Apps home location and run:

mvn clean install

Upon completion, the message "BUILD SUCCESS" should be displayed. If the build failed, then you will need to scroll back and investigate what error messages appeared during the build.

Running ClassyFy Sample from Maven

You can try the ClassyFy Sample on a device or emulator using ADB. Open a command console and go to Classy Apps directory classyfy/classyfy-application. Ensure the Android device is connected then use this Maven command to deploy and run the application:

mvn android:deploy android:run -Dandroid.adb.connectionTimeout=60000 -Dandroid.aaptExtraArgs=--no-version-vectors

Note the android.adb.connectionTimeout property is in units of milliseconds and the default value of 5000 is normally too short. The aaptExtraArgs property comes from Vector Drawables Backward Compatibility Solution.

Classyfy currently fails for pre-Lollipop devices because of support library issues. The other example applications are not affected.

For more details go to ClassyFy Sample

Android Development Technologies

Tool Description
Robolectric Robolectric is a unit test framework that de-fangs the Android SDK jar so you can test drive the development of your Android app.
Android Maven Plugin The Android Maven Plugin targets Android Archives (aar) and Android applications (apk).
Eclipse Andmore Android Eclipse tools integration plugin - includes Java Develoopment Tools (JDT) for Android Java applications
m2e-android The Android for Maven Eclipse connector adds maven support for projects using Android Tooling - installed by Andmore

Working with Classy Data Snapshot

Change the "classy_data.version" property in the Classy Apps home location pom.xml to a local snapshot version.

Andmore - Eclipse Android Tooling

For Android development, the original Eclipse ADT has been replaced by Andmore. All Android projects have been converted to Andmore.

Note that the API25 updates have caused JUnit tests to fail with an exception thrown by Robolectric - see Bug 525493 - Projects containing aar libraries currently fail with robolectric 3.2.1

Android Application Development with Eclipse

If using Eclipse for Android development, go to Getting Started with Eclipse for Android Developers.