Skip to content

Remove Hilt dependency in api:anilist#617

Merged
imashnake0 merged 1 commit intomainfrom
no-hilt-anilist
Mar 14, 2026
Merged

Remove Hilt dependency in api:anilist#617
imashnake0 merged 1 commit intomainfrom
no-hilt-anilist

Conversation

@boswelja
Copy link
Copy Markdown
Collaborator

Summary of changes:

1.No Hilt in api:anilist

Tested changes:

App builds and runs

@boswelja boswelja requested a review from imashnake0 March 14, 2026 05:39
@boswelja boswelja self-assigned this Mar 14, 2026
*/
@Suppress("LongParameterList")
class AnilistMediaRepository @Inject constructor(
class AnilistMediaRepository(

Check warning

Code scanning / detekt

KDoc comments should match the actual function or class signature Warning

Documentation of AnilistMediaRepository is outdated
* @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

Documentation of AnilistSearchRepository is outdated
*/
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

Documentation of AnilistUserRepository is outdated
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

Top level constant names should match the pattern: [A-Z][_A-Z0-9]*

@Module
@InstallIn(SingletonComponent::class)
object AnilistApiModule {

Check warning

Code scanning / detekt

Public classes, interfaces and objects require documentation. Warning

AnilistApiModule is missing required documentation.
@Provides
@Singleton
@AuthorizedClient
fun provideAuthorizedApolloClient(

Check warning

Code scanning / detekt

Public functions require documentation. Warning

The function provideAuthorizedApolloClient is missing documentation.

@Provides
@Singleton
fun provideAnilistMediaRepository(client: ApolloClient): AnilistMediaRepository {

Check warning

Code scanning / detekt

Public functions require documentation. Warning

The function provideAnilistMediaRepository is missing documentation.

@Provides
@Singleton
fun provideAnilistSearchRepository(client: ApolloClient): AnilistSearchRepository {

Check warning

Code scanning / detekt

Public functions require documentation. Warning

The function provideAnilistSearchRepository is missing documentation.

@Provides
@Singleton
fun provideAnilistUserRepository(@AuthorizedClient client: ApolloClient): AnilistUserRepository {

Check warning

Code scanning / detekt

Public functions require documentation. Warning

The function provideAnilistUserRepository is missing documentation.

@Qualifier
@Retention(AnnotationRetention.BINARY)
annotation class AuthorizedClient

Check warning

Code scanning / detekt

Public classes, interfaces and objects require documentation. Warning

AuthorizedClient is missing required documentation.
@imashnake0 imashnake0 merged commit 886fbc5 into main Mar 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants