AppModule

@Module
object AppModule

Dagger Hilt module that provides dependency injection for the application. This module is installed in the SingletonComponent, making the provided dependencies available as singletons throughout the application.

Functions

Link copied to clipboard
@Provides
@Singleton
fun okhttpClient(): OkHttpClient

Provides the OkHttpClient with an added AuthInterceptor.

Link copied to clipboard
@Provides
@Singleton
fun provideBlobService(): BlobApiService

Provides the BlobApiService using Retrofit.

Link copied to clipboard
@Provides
@Singleton
fun provideContext(application: Application): Context

Provides the application Context.

Link copied to clipboard
@Provides
@Singleton
fun provideRepository(api: SvkApiService, roomContainer: RoomContainer): SvkRepository

Provides the SvkRepository implementation.

Link copied to clipboard
@Provides
@Singleton
fun provideResourceProvider(context: Context): ResourceProvider

Provides the ResourceProvider implementation.

Link copied to clipboard
@Provides
@Singleton
fun provideRoomContainer(): RoomContainer

Provides the RoomContainer implementation.

Link copied to clipboard
@Provides
@Singleton
fun provideSvkApiService(): SvkApiService

Provides the SvkApiService using Retrofit.

Link copied to clipboard
@Provides
@Singleton
fun provideValidators(context: Context): Validators

Provides the Validators instance.