Join Slack
Powered by
is there any benefit in having Dagger inject these...
# android
f
Florian
10/21/2020, 7:49 AM
is there any benefit in having Dagger inject these static calls đŸ¤”
o
orafaaraujo
10/21/2020, 7:58 AM
Hmmm Probably injecting a fake-test implementation when testing not relying on real Firebase
j
Javier
10/21/2020, 8:19 AM
Default args will do the same then đŸ¤”
o
orafaaraujo
10/21/2020, 8:25 AM
oh, that’s true this only would be possible in the class that is receiving the Firebase objects
orafaaraujo
10/21/2020, 8:27 AM
I would wrap it into interfaces, and make fake implementation on tests
g
gildor
10/21/2020, 12:31 PM
It was important before, when Kotlin objects were not supported by dagger, now those JvmStatics are useless for Dagger
2
Views
Open in Slack
Previous
Next