/spice

**** DEPRICATED *** This is an Android library that allows a similar experience to the iOS NSFetchedResultsController. It leverages Volley and GSON for REST requests and SugarORM for data (cache) persistence and retrieval.

Primary LanguageJavaMIT LicenseMIT

*** DEPRICATED *** NO LONGER SUPPORTED

Spice

This is an Android library that allows a similar experience to the iOS NSFetchedResultsController. It leverages Volley and GSON for REST requests and subsequent JSON parsing. It then integrates with your favorite ORM (SugarORM by default) for data (cache) persistence and retrieval. This is ideal for any application looking to do server calls and have a local database for offline viewing of the app.

Example

  • For an example, check out the app directory
  • To view the library source, look at the spice directory

Usage Instructions:

  • copy spice-{version}.jar and sugar-{version}.jar from top level folder into your libs folder
  • add the following dependencies to your build.gradle:

compile 'com.mcxiaoke.volley:library:1.0.+@aar'

compile 'com.google.code.gson:gson:2.3'

compile 'com.google.guava:guava:18.0'

compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1' compile('org.apache.httpcomponents:httpmime:4.3') { exclude module: "httpclient" }