Closed azimsidd closed 3 years ago
Can you also show an example of injection maybe as simple as providing application context? Just to show a gist of how to make app module and use basic @Provides and @Inject annotation.
Yes i can make appModule file, but for that i need to remove the code from API service and place it in the App Module class.
If you want I can do that in another PR.
On Tue, 5 Oct 2021, 20:46 Siddharth sharma, @.***> wrote:
Can you also show an example of injection maybe as simple as providing application context? Just to show a gist of how to make app module and use basic @provides https://github.com/provides and @Inject https://github.com/Inject annotation.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sidsharma2002/PracticeApp/pull/10#issuecomment-934503493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTKGGWWJNMO7GKP3CUVQ7TUFMJFVANCNFSM5FLDKMCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
yeah that is if you want to show how to inject retrofit instance.. you can do so.
Have you merge my PR?
please make a pr for api service also. and don't merge it until i give a green flag
This project is not showing in hacktoberFest. please add this tag "hacktoberfest-accepted" in PR.
this PR is not showing in hacktoberfest site. can you please mark this Accepted
Please add hacktoberfest Accepted tag in this PR also.
MVVM and Hilt implementation done. I have make an empty repository and inject it into ViewModelA using Hilt. i also have mentioned the comment for the hilt annotations
work proof
.