I dont understand the difference between the two of those.
From what I understand:
- Both of them save data on disc using Gson.
- Both of them can handle any POJO object.
So what's the difference?
I dont understand the difference between the two of those.
From what I understand:
So what's the difference?
Copyright © 2021 Jogjafile Inc.
The
GsonObjectPersisterFactoryis used in the robospice-google-http-client and robospice-spring-android Robospice extensions. TheGsonRetrofitObjectPersisterFactoryis used in the robospice-retrofit extension.The difference is in the
retrofit.converter.Converterobject passed as a constructor argument to theGsonRetrofitObjectPersisterFactory. This object basically acts as a bridge between Robospice and Retrofit in the caching part. A different RetrofitConverteris used for the different JSON mapping solutions used in the robospice-retrofit extension, therefore you have aJacksonRetrofitObjectPersisterFactoryas well.See
com.octo.android.robospice.persistence.retrofit.RetrofitObjectPersisterFactoryand its package for more info.