Android WTF - Using Firebase/Google/Facebook Sign In with Clean Architecture + Kotlin Coroutines

preview_player
Показать описание
I had a question about how to use startActivityForResult() and GoogleSignInOptions in an MVP (I don't use that name any more, but my architecture is similar to MVP) Clean Architecture.
Unfortunately, the one valid excuse to breaking Clean principles is when you have no other choice but to do so due to platform or library limitations. With that being said, I still recommend decoupling things as much as conveniently possible, and you can still keep your Domain Layer/Module free of third party libraries if you follow the approach I describe in this video.

If this video was useful, please consider supporting me via social media or donation.

Follow the wiseAss Community:

Support wiseAss here:
Рекомендации по теме
Комментарии
Автор

Waw.. thanks Ryan, that was a quick detailed answer...
I believe as you said sometimes we hit the wall with designing an architecture to put all these own APIs and 3rd party APIs together. Google themselves (in their documentations) who designed these APIs and require to call them in their own way makes it tough to follow the design patterns that the industry follows.
Now if you can just imagine how much developers depend on APIs like google maps, google sign in, facebook sign in, etc... and the list goes on.. then you need to follow certain standard (MVP, MVVM, Dagger2, etc...) that your team has set to follow and so on...

thanks again for this super fast response that not even few can provide on social media.. and you made it in class .. thanks

therealmujtaba
Автор

hey, the sign in option is not working for me.. I got the app running and connected it to a new firebase project, but Sign In option isnt working (I select my google account but get a 10 and the onActivityResult return with resultcode 0).. are there setup steps I might be missing?

MegaBezalel