Skip to content

Commit

Permalink
chore #13: ServiceModule
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 2bf2804 commit ce45e9e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/src/main/java/org/sopt/and/data/di/ServiceModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.sopt.and.data.service.WavveService
import org.sopt.and.data.service.AuthService
import org.sopt.and.data.service.MyService
import retrofit2.Retrofit
import javax.inject.Singleton

Expand All @@ -13,6 +14,11 @@ import javax.inject.Singleton
object ServiceModule {
@Provides
@Singleton
fun providerService(retrofit: Retrofit): WavveService =
retrofit.create(WavveService::class.java)
fun providerAuthService(retrofit: Retrofit): AuthService =
retrofit.create(AuthService::class.java)

@Provides
@Singleton
fun providerMyService(retrofit: Retrofit): MyService =
retrofit.create(MyService::class.java)
}

0 comments on commit ce45e9e

Please sign in to comment.