New Boxcar Android SDK 2

We have just released a new version of the Boxcar SDK for Android devices. More documentation about how to use it can be found here.

Boxcar Framework v2.0.0 includes the following changes:

SDK and demos are now available at Boxcar Maven repository

  • Android SDK library, javadoc and demos are hosted in our Boxcar Maven Repository at http://developer.boxcar.io/maven. Now your Maven and Gradle projects can just refer to our library without the need to manually installing it.
  • There are two available flavours of the SDK library. One is for debugging, the other is for production. They behave indentically, except that the development version outputs debug information into the android log system.
    • Debug version:

        io.boxcar.universalpush:android-push-sdk-debug:2.0.0
      
    • Production version:

        io.boxcar.universalpush:android-push-sdk:2.0.0
      

Latest Google Cloud Messaging implementation

API changes

  • push library now replaces POJO callback classes by EventBus to loosely couple your artifacts with the library. Your artifacts do not need to listen to all events, just those they are really interested in.
  • now SDK uses a delegate class to get parameters from your application. You should implement it in order to provide your configuration.
  • most API methods now require Context instance.
  • if SDK wasn’t initialized and any further method is called, do throw a runtime exception, so there is no need to use try - catch on code. This makes code much more clear and short.
  • allow developer to set username on each registration.
  • offer ways to inform user when Google Play APK is not installed but the error is recoverable, as documented on GCM docs.

Demo changes

  • single demo project for all variants.
  • demo project now managed entirely by Gradle.
  • demo doesn’t register on startup, just initializes the framework.
  • removes InboxActivity.
  • cleans AndroidManifest.xml content.
  • display an alert dialog to install or enable Google Play Services if it is not available.

Other improvements

  • SDK is now packaged in AAR format.
  • add more retries for UDID service query.
  • fixes and updates SDK Javadoc documentation.
  • fix lint warnings from SDK and demos.
  • removes useless resource files, reducing library size.

The new SDK is available in our Boxcar Maven Repository at http://developer.boxcar.io/maven and also on the developer download area.