package com.laseroptek.raman.di

import com.laseroptek.raman.data.source.serial.SerialPort
import com.laseroptek.raman.repository.SerialPortRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

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

    @Singleton
    @Provides
    fun provideSerialPortRepository(serialPort: SerialPort) = SerialPortRepository(serialPort)

}