Closed eboudrant closed 6 years ago
I think it's reasonable to provide some of this in a module that we ship.
The downside is that so much of the fragment implementation is up to how you choose to use MvRx, so it's hard to provide a one size fits all solution.
Playing devil's advocate, how hard is it to copy 1 or 2 files? We could update the documentation to be more clear about where the files live.
@eboudrant @elihart There was a reason for each one:
BuildConfig
constant from your application package which we can't do for you.I get that this is slightly confusing so I added a few sentences to this wiki page explaining this.
While testing MvRx it happened I did a lot of code copy/paste from the sample app. Mainly theses classes :
MvRxEpoxyController
,BaseFragment
(minus theandroidx.navigation
part),MvRxViewModel
. I think it would really help to have theses class in the library. Especially the epoxy related classes. May be in an optional library when we combine MvRx with Epoxy. To add on this, some of the class from sample app are referenced in the doc, it is a bit confusing to not see them in the main library (ex: https://github.com/airbnb/MvRx/wiki/Advanced-Concepts#mvrxviewmodel). Thanks!