package com.isidroid.rendering.di

import android.content.Context
import com.isidroid.core.DiDebuggableBuild
import com.isidroid.rendering.repository.RenderRepository
import com.isidroid.rendering.repository.RenderRepositoryIml
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@InstallIn(SingletonComponent::class)
@Module
object RenderModule {
    @Singleton @Provides
    fun provideRenderRepository(
        @ApplicationContext context: Context,
        @DiDebuggableBuild isDebug: Boolean
    ): RenderRepository = RenderRepositoryIml(context)
}