Skip to content
Snippets Groups Projects

NetworkModule.kt

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by a6-alrashdi
    Edited
    NetworkModule.kt 395 B
    package com.example.match.api
    
    import dagger.Module
    import dagger.Provides
    import dagger.hilt.InstallIn
    import dagger.hilt.components.SingletonComponent
    import javax.inject.Singleton
    
    @Module
    @InstallIn(SingletonComponent::class)
    object NetworkModule {
    
        @Provides
        @Singleton
        fun provideMatchApiService(): MatchApiService {
            return ApiClient.matchApi
        }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment