Last active
June 15, 2023 19:28
-
-
Save tugceaktepe/30822e07b668082e9573df1fd8721d57 to your computer and use it in GitHub Desktop.
UrlModule.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aktepetugce.pagingmovieexample.di | |
import com.aktepetugce.pagingmovieexample.util.ApiConstants | |
import dagger.Module | |
import dagger.Provides | |
import dagger.hilt.InstallIn | |
import dagger.hilt.components.SingletonComponent | |
import javax.inject.Singleton | |
@Module | |
@InstallIn(SingletonComponent::class) | |
object UrlModule { | |
@Provides | |
@Singleton | |
fun provideUrl(): String = ApiConstants.BASE_URL | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment