Giter Site home page Giter Site logo

Comments (7)

eneim avatar eneim commented on May 4, 2024

"Store" doesn't need to be strictly used with Retrofit, your proposal should be a 3-rd party plugin :D.

from store.

digitalbuddha avatar digitalbuddha commented on May 4, 2024

It absoutely would be a seperate module/artifact. This is merely a convenience the way the Middleware is. Thinking about it more you don't even need to read annotations, just field types/names.

from store.

digitalbuddha avatar digitalbuddha commented on May 4, 2024

Step 1. Generate fetcher and Barcodes.
Step 2. Generate store for BufferedSource input only
Step 3. Add our own annotations to drive stores with and without persister/caches

from store.

michaldrabik avatar michaldrabik commented on May 4, 2024

Could you provide an example of how should it look like?

For example lets take Api interface from the sample app. Should the generator take both methods (annotated with @GET("r/{subredditName}/new/.json")) and generate Stores for RedditData and ResponseBody. Or should we be able to annotate particular methods.

Maybe I am missing something?

from store.

digitalbuddha avatar digitalbuddha commented on May 4, 2024

I'm actually going to bang this out tomorrow. What I was thinking is annotate the entire class with @Stores which would generate a store for each Get request. You'd have to pass a factory that can create a gson instance to the annotation. You'd also need to pass the factory that creates a file system. Sorry still half an idea. I'll open a pr tomorrow and we can refine from there.

from store.

digitalbuddha avatar digitalbuddha commented on May 4, 2024

not done but its a start: currently generating custom Barcodes and a Module that can be extended or used with Dagger to create Stores
#64

from store.

digitalbuddha avatar digitalbuddha commented on May 4, 2024

Dying on the vine but moshi adapter syntax gave me some ideas.

from store.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.