Move internal modifier to the object to work around this build error

```
E:\AndroidStudioProjects\nowinandroid\core\datastore\build\generated\ksp\demoDebug\java\com\google\samples\apps\nowinandroid\core\datastore\di\DataStoreModule_ProvidesUserPreferencesDataStore$datastore_demoDebugFactory.java:71: error: cannot find symbol
    return Preconditions.checkNotNullFromProvides(DataStoreModule.INSTANCE.providesUserPreferencesDataStore$datastore_demoDebug(context, ioDispatcher, scope, userPreferencesSerializer));
                                                                          ^
  symbol:   method providesUserPreferencesDataStore$datastore_demoDebug(Context,CoroutineDispatcher,CoroutineScope,UserPreferencesSerializer)
  location: variable INSTANCE of type DataStoreModule
```
Simon Marquis 1 week ago
parent 7bb210d1a8
commit 7d21c179ec

@ -37,11 +37,11 @@ import javax.inject.Singleton
@Module @Module
@InstallIn(SingletonComponent::class) @InstallIn(SingletonComponent::class)
object DataStoreModule { internal object DataStoreModule {
@Provides @Provides
@Singleton @Singleton
internal fun providesUserPreferencesDataStore( fun providesUserPreferencesDataStore(
@ApplicationContext context: Context, @ApplicationContext context: Context,
@Dispatcher(IO) ioDispatcher: CoroutineDispatcher, @Dispatcher(IO) ioDispatcher: CoroutineDispatcher,
@ApplicationScope scope: CoroutineScope, @ApplicationScope scope: CoroutineScope,

Loading…
Cancel
Save