forked from gpeal/Anvil-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabriel Peal
committed
May 22, 2022
1 parent
bdc67cf
commit 31a0780
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...ggerscopes/src/main/java/com/gpeal/droidconanvilsample/lib/daggerscopes/ContributesApi.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.gpeal.droidconanvilsample.lib.daggerscopes | ||
|
||
/** | ||
* Adds api to the @AppComponent graph. Equivalent to the following declaration in an application module: | ||
* Annotate a retrofit interface with this to automatically contribute it to the [AppScope] graph. | ||
* Equivalent to the following declaration in an application module: | ||
* | ||
* @Provides | ||
* @Reusable | ||
* public fun provideYourApi(retrofit: Retrofit): YourApi = retrofit.create(YourApi::class.java) | ||
* | ||
* The generated code created via the :anvilcodegen module. | ||
*/ | ||
@Target(AnnotationTarget.CLASS) | ||
annotation class ContributesApi |
This file contains 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