Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Fix crash in sample application
Browse files Browse the repository at this point in the history
  • Loading branch information
erikeeldeiz committed Oct 15, 2018
1 parent 164d60d commit 67056bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrench-sample/src/main/java/com/example/wrench/di/Module.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.example.wrench.livedataprefs.LiveDataPreferencesFragmentViewModel
import com.example.wrench.service.WrenchServiceFragmentViewModel
import com.example.wrench.wrenchprefs.WrenchPreferencesFragmentViewModel
import com.izettle.wrench.preferences.WrenchPreferences
import com.izettle.wrench.service.Provider
import com.izettle.wrench.service.WrenchPreferenceProvider
import com.izettle.wrench.service.WrenchService
import org.koin.android.ext.koin.androidContext
Expand All @@ -14,7 +15,7 @@ val sampleAppModule = module {
factory { WrenchPreferences(androidContext()) }
factory { androidContext().resources }
factory { WrenchService.with(get()) }
factory { WrenchPreferenceProvider(get<WrenchPreferences>()) }
factory<Provider> { WrenchPreferenceProvider(get<WrenchPreferences>()) }
viewModel { LiveDataPreferencesFragmentViewModel(androidContext()) }
viewModel { WrenchPreferencesFragmentViewModel(get(), get()) }
viewModel { WrenchServiceFragmentViewModel(get()) }
Expand Down

0 comments on commit 67056bd

Please sign in to comment.