I am following architecture-components-samples: GithubBrowserSample
I have a Viewmodel that has a dependency and is provided through constructor injection, Since App component is singleton dagger forces me to use Singleton scope only if I use any other scope for those components I get below error
com.example.AppComponent scoped with @Singleton may not reference bindings with different scopes:
I tried this as well but still same
@Binds
@IntoMap
@ViewModelKey(MyViewModel::class)
@PerActivity
abstract fun bindMyViewModel(myViewModel: MyViewModel): ViewModel