Skip to content

Instantly share code, notes, and snippets.

@tugceaktepe
Last active June 15, 2023 19:28
Show Gist options
  • Save tugceaktepe/30822e07b668082e9573df1fd8721d57 to your computer and use it in GitHub Desktop.
Save tugceaktepe/30822e07b668082e9573df1fd8721d57 to your computer and use it in GitHub Desktop.
UrlModule.kt
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