Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Setup for Gradle users

stephanenicolas edited this page Jun 11, 2014 · 8 revisions

Browse our gradle samples to find out how to use RoboSpice and its extension modules.

Latest version of RoboSpice and extension modules can be found on maven central.

You will find additional setup details below.

Summary

##RoboSpice core

compile 'com.octo.android.robospice:robospice:x.y.z'

##Spring Android module

The Spring Android module wiki page details the goal of this module.

To use it under gradle add this dependency to your build.gradle file:

compile 'com.octo.android.robospice:robospice-spring-android:x.y.z'

The RoboSpice Spring Android module uses 3 optional dependencies for persistence :

  • using jackson
compile 'org.codehaus.jackson:jackson-mapper-asl:x.y.z'

where x.y.z is the latest jackson 1 version.

  • using gson
compile 'com.google.code.gson:gson:x.y.z'

where x.y.z is the latest gson version.

  • using XML Serializer, you will need to add exclusions
compile('org.simpleframework:simple-xml:x.y.z') {
  exclude module: 'xpp3'
  exclude group: 'stax'
}

where x.y.z is the latest simple XML Serializer version.

##RoboSpice Google Http Java Client module

The Google Http Java Client module wiki page details the goal of this module.

To use it under gradle add this dependency to your build.gradle file:

compile 'com.octo.android.robospice:robospice-google-http-client:x.y.z'

The RoboSpice Google Http Java Client module uses 3 optional dependencies for persistence :

  • using jackson 1, you will need to add exclusions
compile('com.google.http-client:google-http-client-jackson:x.y.z') {
  exclude module: 'xpp3'
  exclude group: 'stax'
}
  • using jackson 2, you will need to add exclusions
compile('com.google.http-client:google-http-client-jackson2:x.y.z') {
  exclude module: 'xpp3'
  exclude group: 'stax'
}
  • using gson, you will need to add exclusions
compile('com.google.http-client:google-http-client-gson:x.y.z') {
  exclude module: 'xpp3'
  exclude group: 'stax'
}

##ORMLite module

Check out the ORMLite module wiki page for details about this module.

To use it under gradle add this dependency to your build.gradle file:

compile 'com.octo.android.robospice:robospice-ormlite:x.y.z'

##Retrofit module

Check out the Retrofit module wiki page for details about this module.

To use it under gradle add this dependency to your build.gradle file:

compile 'com.octo.android.robospice:robospice-retrofit:x.y.z'

##UI SpiceList module

Check out the UI SpiceList module wiki page for details about this module.

To use it under gradle add this dependency to your build.gradle file:

compile 'com.octo.android.robospice:robospice-ui-spicelist:x.y.z'

##Special note on Jackson 2

If you intend to use Jackson 2 and want to get an app that is compatible with Android SDK 8, you must not upgrade after version 2.2.3 of Jackson 2. After this, Jackson 2 is only compatible with Android SDK 9+.

##What's next ?

If you need any help setting up or using RoboSpice you can reach us on Google Groups