@Inject
@ContributesBinding(AppScope::class)
class F8eHttpClientProvider(
private val appId: AppId,
private val appVersion: String,
private val appVariant: AppVariant,
private val platformInfoProvider: PlatformInfoProvider,
private val datadogTracerPluginProvider: DatadogTracerPluginProvider,
private val networkingDebugService: NetworkingDebugService,
private val appInstallationDao: AppInstallationDao,
private val countryCodeGuesser: CountryCodeGuesser,
) { // note there is no supertype
Error:
e: [ksp] /Users/zhukov/src/squareup/wallet/app/shared/f8e-client/impl/src/commonMain/kotlin/build/wallet/f8e/client/F8eHttpClientProvider.kt:32: The bound type could not be determined for F8eHttpClientProvider. There are no super types.
e: [ksp] java.lang.IllegalArgumentException: The bound type could not be determined for F8eHttpClientProvider. There are no super types.
Current fix is to explicitly use class type as the bound type:
You don't need to "contribute a binding" when there is no binding. This is working as intended. By adding the @Inject annotation you can inject F8eHttpClientProvider.
Code:
Error:
Current fix is to explicitly use class type as the bound type: