Closed Rainer-Lang closed 7 years ago
I believe that you'll be better off with using Victors library since it is more seasoned :) This is my take on it. I will try to keep it as simple as possible (and working of course), to learn something along the way and to spread the knowledge :)
I like your convenience methods. Maybe it's possible for you to contribute to Victors lib with some of your ideas....?
@PetarMarijanovic I can't agree with you, that VictorAlbertos
lib is better nowdays :)
VictorAlbertos lib "helps" you to perform two things:
onActivityResult()
I believe, that standard LiveData
does 2nd job better nowdays. Thus I would like to have simple lib, which does only Rx api part, e.g. task 1 in the list above.
I was about actually to create my own lib doing exactly what you lib already does. Likely I found your lib before doing this. I will try to use it and give the feedback. So far I like it exactly because of simplicity and doing only one dedicated task.
Also I like current approach with "helper fragment". As for me it is more elegant and safe then approach with "helper activity" in VictorAlbertos lib.
Btw, I have updated the same app to demonstrate how this lib works nicely with LiveData to acomplish before-mentioned job: https://github.com/PetarMarijanovic/RxActivityResult/pull/8
Do you know this lib? https://github.com/VictorAlbertos/RxActivityResult
UPDATE: What are the differences? Pros/cons?