Created
July 6, 2020 18:57
-
-
Save Audhil/3c1de94ac826716ef80fd8b0d8fa0afb to your computer and use it in GitHub Desktop.
module - gist 5
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(ApplicationComponent::class) | |
class APIModule { | |
@Provides | |
fun giveAPIService(): API = Retrofit.Builder().build().create(API::class.java) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment