Josh Feinberg
04/30/2025, 3:52 AMJosh Feinberg
04/30/2025, 3:52 AM@NetworkScope @Provides
fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdatesClient = MonthlyUpdateRoutesImpl(client)
MontlhyUpdatesClient
is a typealias
typealias MonthlyUpdatesClient = MonthlyUpdateRoutes
Josh Feinberg
04/30/2025, 3:53 AM[ksp] Cannot find an @Inject constructor or provider for: com.joshafeinberg.common.routes.MonthlyUpdateRoutes
Josh Feinberg
04/30/2025, 3:54 AMMonthlyUpdateRoutes
@NetworkScope @Provides
fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdateRoutes = MonthlyUpdateRoutesImpl(client)
then it works fineJosh Feinberg
04/30/2025, 3:56 AMMontlhyUpdatesClient/MonthlyUpdateRoutes
always have MonthlyUpdatesClient
in their constructor param