Builder is not generated for fragment without any @Arg annotated memeber
See original GitHub issueI am in process of reducing boilerplate code and I would like to all my Fragments to use FragmentArgs. As part of unification I’d like to always instantiate my fragments using FragmentArgs’ generated builder class, however it seems that version 3.x is not generating any builder if fragment annotated with @FragmentWithArgs
got no members annotated with @Arg
. Unless I miss something obvious here I believe this is a bug in the lib as there should be no reason that could prevent having builder in such case.
The workaround which I am using now is to simply add:
@Arg(required = false)
boolean foo;
but naturally this pollutes the code. Any comments welcome. Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Dagger 2 component not generated - Stack Overflow
This issue is related to Android Studio ( V4.1.2 and up) and you can fix it by doing the below steps: Pref ->...
Read more >Fragment | Android Developers
The fragment // may still be created from its saved state, but there is // no reason to try to create its view...
Read more >Dependency Injection with Dagger 2 - CodePath Cliffnotes
The Dagger compiler generates code that is used to create the dependency graph of the classes defined in your source code. These classes...
Read more >@ToString - Project Lombok
Annotating a class with @ToString will cause lombok to generate an ... Members without a rank are considered to have rank 0, members...
Read more >112 Declarative Services Specification - OSGi Compendium 7
Optionality - Can the component function without any bound service present? ... is no annotated member from which the name or service can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in about a week
when you think 4.0 could be officially released?