Remove Hilt dependency in api:anilist#617
Conversation
| */ | ||
| @Suppress("LongParameterList") | ||
| class AnilistMediaRepository @Inject constructor( | ||
| class AnilistMediaRepository( |
Check warning
Code scanning / detekt
KDoc comments should match the actual function or class signature Warning
| * @property fetchSearch Fetch a list of `search`es. | ||
| */ | ||
| class AnilistSearchRepository @Inject constructor( | ||
| class AnilistSearchRepository( |
Check warning
Code scanning / detekt
KDoc comments should match the actual function or class signature Warning
| */ | ||
| class AnilistUserRepository @Inject constructor( | ||
| @param:AuthorizedClient private val apolloClient: ApolloClient | ||
| class AnilistUserRepository( |
Check warning
Code scanning / detekt
KDoc comments should match the actual function or class signature Warning
| import kotlinx.coroutines.Dispatchers | ||
| import kotlinx.coroutines.flow.first | ||
|
|
||
| private const val BaseUrl = "https://graphql.anilist.co/" |
Check warning
Code scanning / detekt
Top level property names should follow the naming convention set in the projects configuration. Warning
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| object AnilistApiModule { |
Check warning
Code scanning / detekt
Public classes, interfaces and objects require documentation. Warning
| @Provides | ||
| @Singleton | ||
| @AuthorizedClient | ||
| fun provideAuthorizedApolloClient( |
Check warning
Code scanning / detekt
Public functions require documentation. Warning
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideAnilistMediaRepository(client: ApolloClient): AnilistMediaRepository { |
Check warning
Code scanning / detekt
Public functions require documentation. Warning
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideAnilistSearchRepository(client: ApolloClient): AnilistSearchRepository { |
Check warning
Code scanning / detekt
Public functions require documentation. Warning
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideAnilistUserRepository(@AuthorizedClient client: ApolloClient): AnilistUserRepository { |
Check warning
Code scanning / detekt
Public functions require documentation. Warning
|
|
||
| @Qualifier | ||
| @Retention(AnnotationRetention.BINARY) | ||
| annotation class AuthorizedClient |
Check warning
Code scanning / detekt
Public classes, interfaces and objects require documentation. Warning
CONTRIBUTING.md.Summary of changes:
1.No Hilt in api:anilist
Tested changes:
App builds and runs