Coder Social home page Coder Social logo

Replace @ActivityStarterConfig(converters = { ParcelarArgConverter.class }) to @Arg(bundler = ParcelarArgConverter.class) about activitystarter HOT 1 CLOSED

marcinmoskala avatar marcinmoskala commented on June 24, 2024
Replace @ActivityStarterConfig(converters = { ParcelarArgConverter.class }) to @Arg(bundler = ParcelarArgConverter.class)

from activitystarter.

Comments (1)

MarcinMoskala avatar MarcinMoskala commented on June 24, 2024

I am really busy for next month. I would like to keep previous format because thanks to it there is no need to define converter in every line. But I am open for definition in arg annotation that will be designed to define converter just for single element. Feel free to contribute.

Also bundler is not correct name in this case. It was in FragmentArgs where it was used just to add elements to Fragment bundle. While this library is supporting also Intents (in Activities and Services) this name was not adequate. Also this would lead to problem of separate definitions for Intents and Bundles what could lead to problems and confusion. From them same reasons I decided that way of saving element to Intent or Bundle should be done by library. Thanks to that we can be sure that there are no key problems. As a conclusions I decided that instead of class that is defining how custom type should be saved, there should be class that is defining a way how element is changed from not supported object to one that is supported. And this are converters.

Also about Parceler - I am planning to make build-in support for this feature. Then no converter will be needed for them. I am just really overloaded right now. According to my plans, I would be able to sit to that feature in August. Unless someone will decide to implement it earlier. Another time - feel free to contribute.

from activitystarter.

Related Issues (18)

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.