Proto DataStore interop #1341
Unanswered
charlie-niekirk
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Can you paste the full trace? It's currently cut off before any metro sources. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Seems similar to this issue. #1358 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've created a
datastoremodule in my application and am trying to use Metro to provide theDataStore<T>dependency and am struggling a bit.Here's my
BindingContainerthat provides theDataStoredependencies:Here's how I'm using it in the
appmodule:@DependencyGraph( scope = AppScope::class, bindingContainers = [ NetworkProviders::class, DatabaseProviders::class, DatastoreProviders::class, PlatformProviders::class, ] ) interface OnTrackGraph : ViewModelGraph.Factory, DataProviders { @Provides @ApplicationContext fun provideApplicationContext(application: Application): Context = application @Multibinds val activityProviders: Map<KClass<out Activity>, Provider<Activity>> @DependencyGraph.Factory fun interface Factory { fun create(@Provides application: Application): OnTrackGraph } }When I build my project I am getting this (not massively intuitive) error:
Could it be due to the fact that the Metro compiler can't see the generated type? I'd appreciate any help, thanks!
Beta Was this translation helpful? Give feedback.
All reactions