<How to inject interface into class with Hilt in A...
# stackoverflow
u
How to inject interface into class with Hilt in Android In my application I want use MVP structure and for this I create Contracts file. Contract codes: interface ShopContracts { interface View { fun showAllData(data: List) } interface Presenter : BasePresenter { fun loadAllShop() } } I use this interface into presenter class, in this class I want set 2 file in constructor such as below : class ShopPresenter @Inject constructor(private val repository: ShopRepository, private val view: ShopContracts.View) :...