feat (core:dataStore) Migrated to KMP#2352
Conversation
|
@itsPronay I have resolved all errors in this , build is fine but app is crashing saying the Instance is not created for koin. Can you look into it after your common PR |
WhatsApp.Video.2025-04-01.at.8.48.05.PM.mp4 |
# Conflicts: # feature/auth/src/main/java/com/mifos/feature/auth/login/LoginViewModel.kt # feature/center/src/main/java/com/mifos/feature/center/syncCentersDialog/SyncCentersDialogViewModel.kt # feature/client/src/main/java/com/mifos/feature/client/syncClientDialog/SyncClientsDialogViewModel.kt # feature/groups/src/main/java/com/mifos/feature/groups/syncGroupDialog/SyncGroupsDialogViewModel.kt # feature/settings/src/main/java/com/mifos/feature/settings/settings/SettingsScreen.kt
core/network/src/main/java/com/mifos/core/network/datamanager/DataManagerGroups.kt
Outdated
Show resolved
Hide resolved
core/model/src/commonMain/kotlin/com/mifos/core/model/objects/users/User.kt
Show resolved
Hide resolved
core/network/src/main/java/com/mifos/core/network/BaseApiManager.kt
Outdated
Show resolved
Hide resolved
core/network/src/main/java/com/mifos/core/network/MifosInterceptor.kt
Outdated
Show resolved
Hide resolved
core/network/src/main/java/com/mifos/core/network/datamanager/DataManagerCenter.kt
Outdated
Show resolved
Hide resolved
core/network/src/main/java/com/mifos/core/network/datamanager/DataManagerCenter.kt
Outdated
Show resolved
Hide resolved
...client/src/main/java/com/mifos/feature/client/syncClientDialog/SyncClientsDialogViewModel.kt
Outdated
Show resolved
Hide resolved
...data-table/src/main/java/com/mifos/feature/dataTable/dataTableList/DataTableListViewModel.kt
Outdated
Show resolved
Hide resolved
feature/path-tracking/src/main/java/com/mifos/feature/pathTracking/PathTrackingViewModel.kt
Show resolved
Hide resolved
feature/path-tracking/src/main/java/com/mifos/feature/pathTracking/PathTrackingViewModel.kt
Outdated
Show resolved
Hide resolved
feature/path-tracking/src/main/java/com/mifos/feature/pathTracking/PathTrackingViewModel.kt
Show resolved
Hide resolved
|
@revanthkumarJ Is it ready for merge? |
still doing some changes , i will update once all done |
feature/groups/src/main/java/com/mifos/feature/groups/createNewGroup/CreateNewGroupScreen.kt
Outdated
Show resolved
Hide resolved
| single<UserPreferencesRepository> { | ||
| UserPreferencesRepositoryImpl( | ||
| preferenceManager = get(), | ||
| ioDispatcher = get(named(MifosDispatchers.IO.name)), | ||
| unconfinedDispatcher = get(named(MifosDispatchers.Unconfined.name)), | ||
| ) | ||
| } |
There was a problem hiding this comment.
Since it's a repo and we are providing implementation here, use bind instead. See repositoryModule for reference.
| package com.mifos.core.datastore.model | ||
| import com.mifos.core.common.enums.MifosAppLanguage | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data class AppSettings( | ||
| val tenant: String, | ||
| val baseUrl: String, | ||
| val passcode: String? = null, | ||
| val appTheme: AppTheme = AppTheme.SYSTEM, | ||
| val language: MifosAppLanguage, | ||
| ) { | ||
| companion object { | ||
| val DEFAULT = AppSettings( | ||
| tenant = "default", | ||
| baseUrl = "https://tt.mifos.community/", | ||
| appTheme = AppTheme.SYSTEM, | ||
| language = MifosAppLanguage.SYSTEM_LANGUAGE, | ||
| ) | ||
| } | ||
| } |
There was a problem hiding this comment.
@niyajali Could you please take a look here? I was wondering when we already have ServerConfig defined, Do we really need to set the baseUrl , tenant again in this instance, or is there a reason it's being redefined here?!
There was a problem hiding this comment.
if we can add passcode, appTheme, language in ServerConfig then we can replace AppSettings
| return prefManager.userInfo.flatMapLatest { | ||
| userData -> | ||
| when (userData.userStatus) { |
There was a problem hiding this comment.
could you please format these type of lines? should be this instead
return prefManager.userInfo.flatMapLatest { userData ->
when (userData.userStatus) {
false -> flow {
|
@revanthkumarJ, please don't resolve conversations on your own. Please let the maintainer resolve them. |
* Initial Commit * updated * updated * updated * updated * Updated * Updated * Updated * Updated * Updated * updated * updated * updated * updated * updated * updated * Updated * Updated * Updated * Updated * Updated
* Initial Commit * updated * updated * updated * updated * Updated * Updated * Updated * Updated * Updated * updated * updated * updated * updated * updated * updated * Updated * Updated * Updated * Updated * Updated
Fixes - Jira-#MIFOSAC-330
Didn't create a Jira ticket, click here to create new.
Please Add Screenshots If there are any UI changes.
Please make sure these boxes are checked before submitting your pull request - thanks!
Run the static analysis check
./gradlew checkorci-prepush.shto make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.