mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 16:07:01 +05:30
all: use Dagger Hilt VM injection
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
e9a55cc1db
commit
19c5bac6d3
6 changed files with 8 additions and 13 deletions
|
@ -5,7 +5,7 @@ import dagger.Module
|
|||
import dagger.Lazy
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.android.components.ActivityComponent
|
||||
import dagger.hilt.android.components.ViewModelComponent
|
||||
import dev.msfjarvis.lobsters.data.api.LobstersApi
|
||||
import okhttp3.OkHttpClient
|
||||
import retrofit2.Retrofit
|
||||
|
@ -13,7 +13,7 @@ import retrofit2.converter.moshi.MoshiConverterFactory
|
|||
import retrofit2.create
|
||||
|
||||
@Module
|
||||
@InstallIn(ActivityComponent::class)
|
||||
@InstallIn(ViewModelComponent::class)
|
||||
object ApiModule {
|
||||
|
||||
@Provides
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue