Hello everyone, I am using Koin to inject shared preferences instance. I have one instance which works fine, but now i would like to add the second. How can I distinguish which one should be used? Here is my implementation:
Copy code
val preferencesModule = module {
single { provideSettingsPreferences(androidApplication()) }
}
private const val PREFERENCES_FILE_KEY = "com.myapp.shared_preferences"
private fun provideSettingsPreferences(app: Application): SharedPreferences =
app.getSharedPreferences(PREFERENCES_FILE_KEY, Context.MODE_PRIVATE)