package com.isidroid.location.di

import android.content.Context
import com.isidroid.location.repository.LocationRepositoryImpl
import com.isidroid.location.repository.LocationRepository
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

@Module
@InstallIn(SingletonComponent::class)
object LocationBridgeModule {
    @Provides @Singleton
    fun provideLocationRepository(@ApplicationContext context: Context): LocationRepository = LocationRepositoryImpl(context)
}