No Image

Android – Source architecture – How to create Shared Preference repository?

June 3, 2019 hung-nb 1

Source structure app\—— java\————- [package name]\———————- AppApplication.kt———————- repository\——————————- UserPreferenceRepository.kt——————————- RepositoryModule.kt Create “RepositoryModule.kt” Create “UserPreferenceRepository.kt” Declare Koin module into “AppApplication.kt”