Created
April 28, 2022 10:51
-
-
Save YuanLiou/950b08987a85fa902fadb4714e808c3f to your computer and use it in GitHub Desktop.
Hilt Scope Sample 03
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
@Module | |
@InstallIn(SingletonComponent::class) | |
object NetworkModule { | |
@Provides | |
fun provideRetrofit(): Retrofit { | |
return Retrofit.Builder() | |
.baseUrl("https://sample.com") | |
.build() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment