pthomain / dejavu Goto Github PK
View Code? Open in Web Editor NEWDead simple Retrofit / RxJava cache
License: Apache License 2.0
Dead simple Retrofit / RxJava cache
License: Apache License 2.0
Could you please provide a Java version Demo? That maybe let this library more popular,Thank you
I'm calling my API in the context of a Worker. Since this runs in the background already, instead of using a Single<T>
, the API method returns a Call<T>
.
This in turn causes the following error:
Caused by: kotlin.TypeCastException: null cannot be cast to non-null type retrofit2.CallAdapter<kotlin.Any, kotlin.Any>
at dev.pthomain.android.dejavu.retrofit.RetrofitCallAdapterFactory.get(RetrofitCallAdapterFactory.kt:112)
at retrofit2.Retrofit.nextCallAdapter(Retrofit.java:243)
at retrofit2.Retrofit.callAdapter(Retrofit.java:227)
at retrofit2.HttpServiceMethod.createCallAdapter(HttpServiceMethod.java:103)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:66)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:37)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:192)
at retrofit2.Retrofit$1.invoke(Retrofit.java:149)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy2.updateField(Unknown Source)
I'm using com.github.pthomain:dejavu:2.0.0-beta13
If you need any more context or have a tip how I can solve this, let me know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.