package com.example.p3.di

import android.content.Context
import com.example.p3.IapPosService
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 P3Module {

    @Provides
    @Singleton
    fun provideIapPosService(@ApplicationContext context: Context): IapPosService {
        return IapPosService(context)
    }
}
