diff --git a/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataState.kt b/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataState.kt index 7f1e10f9d..091dfa728 100644 --- a/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataState.kt +++ b/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataState.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.common +package org.mifos.mobile.core.common import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.catch diff --git a/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataStateExtensions.kt b/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataStateExtensions.kt index f2f727a4f..db67c645e 100644 --- a/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataStateExtensions.kt +++ b/core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataStateExtensions.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.common +package org.mifos.mobile.core.common import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.transformWhile @@ -62,7 +62,7 @@ fun combineResults( dataState1 is DataState.Loading || dataState2 is DataState.Loading -> DataState.Loading // Pending state for everything while any one piece of data is updating. - // Both states are _root_ide_package_.org.mifospay.core.common.Result.Success and have data + // Both states are _root_ide_package_.org.mifos.mobile.core.common.Result.Success and have data else -> { @Suppress("UNCHECKED_CAST") DataState.Success(transform(dataState1.data as T1, dataState2.data as T2)) diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/AccountsRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/AccountsRepository.kt index 6924e40a3..384a272fe 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/AccountsRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/AccountsRepository.kt @@ -10,8 +10,8 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.client.ClientAccounts -import org.mifospay.core.common.DataState interface AccountsRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/BeneficiaryRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/BeneficiaryRepository.kt index b6ed4e941..7c68cb681 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/BeneficiaryRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/BeneficiaryRepository.kt @@ -10,11 +10,11 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.beneficiary.Beneficiary import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryPayload import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryUpdatePayload import org.mifos.mobile.core.model.entity.templates.beneficiary.BeneficiaryTemplate -import org.mifospay.core.common.DataState interface BeneficiaryRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientChargeRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientChargeRepository.kt index 4daf8915f..2cf7fd6c8 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientChargeRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientChargeRepository.kt @@ -10,9 +10,9 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.Charge import org.mifos.mobile.core.model.entity.Page -import org.mifospay.core.common.DataState interface ClientChargeRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientRepository.kt index 19ba13ec9..c226c90ef 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ClientRepository.kt @@ -10,9 +10,9 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.Page import org.mifos.mobile.core.model.entity.client.Client -import org.mifospay.core.common.DataState interface ClientRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/GuarantorRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/GuarantorRepository.kt index 114ccfb6d..d53a3436d 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/GuarantorRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/GuarantorRepository.kt @@ -10,10 +10,10 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.guarantor.GuarantorApplicationPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorTemplatePayload -import org.mifospay.core.common.DataState interface GuarantorRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/HomeRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/HomeRepository.kt index b42fc35cc..2e4bc9c65 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/HomeRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/HomeRepository.kt @@ -11,9 +11,9 @@ package org.mifos.mobile.core.data.repository import io.ktor.client.statement.HttpResponse import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.client.Client import org.mifos.mobile.core.model.entity.client.ClientAccounts -import org.mifospay.core.common.DataState interface HomeRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/LoanRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/LoanRepository.kt index b5ad79b60..de5f277db 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/LoanRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/LoanRepository.kt @@ -10,10 +10,10 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithAssociations import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithdraw import org.mifos.mobile.core.model.entity.templates.loans.LoanTemplate -import org.mifospay.core.common.DataState interface LoanRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/NotificationRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/NotificationRepository.kt index 794ece8bf..c008d80dd 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/NotificationRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/NotificationRepository.kt @@ -10,8 +10,8 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.MifosNotification -import org.mifospay.core.common.DataState interface NotificationRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/RecentTransactionRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/RecentTransactionRepository.kt index b00ba54c1..83c681a33 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/RecentTransactionRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/RecentTransactionRepository.kt @@ -10,9 +10,9 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.Page import org.mifos.mobile.core.model.entity.Transaction -import org.mifospay.core.common.DataState interface RecentTransactionRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ReviewLoanApplicationRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ReviewLoanApplicationRepository.kt index 846b0a9f4..202fcc34c 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ReviewLoanApplicationRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ReviewLoanApplicationRepository.kt @@ -9,9 +9,9 @@ */ package org.mifos.mobile.core.data.repository +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.payload.LoansPayload import org.mifos.mobile.core.model.enums.LoanState -import org.mifospay.core.common.DataState interface ReviewLoanApplicationRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/SavingsAccountRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/SavingsAccountRepository.kt index 04b8824d4..b003afd9f 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/SavingsAccountRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/SavingsAccountRepository.kt @@ -10,13 +10,13 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountApplicationPayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountUpdatePayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountWithdrawPayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsWithAssociations import org.mifos.mobile.core.model.entity.templates.account.AccountOptionsTemplate import org.mifos.mobile.core.model.entity.templates.savings.SavingsAccountTemplate -import org.mifospay.core.common.DataState interface SavingsAccountRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ThirdPartyTransferRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ThirdPartyTransferRepository.kt index c6b35283c..5c4421ef8 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ThirdPartyTransferRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/ThirdPartyTransferRepository.kt @@ -10,8 +10,8 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.templates.account.AccountOptionsTemplate -import org.mifospay.core.common.DataState interface ThirdPartyTransferRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/TransferRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/TransferRepository.kt index bde1ea0b0..b6e47c094 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/TransferRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/TransferRepository.kt @@ -9,8 +9,8 @@ */ package org.mifos.mobile.core.data.repository +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.enums.TransferType -import org.mifospay.core.common.DataState interface TransferRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserAuthRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserAuthRepository.kt index 3617c1891..d696e30c3 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserAuthRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserAuthRepository.kt @@ -9,8 +9,8 @@ */ package org.mifos.mobile.core.data.repository +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.User -import org.mifospay.core.common.DataState interface UserAuthRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDataRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDataRepository.kt index 6687199c6..e01c1ad6e 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDataRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDataRepository.kt @@ -10,8 +10,8 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.UserData -import org.mifospay.core.common.DataState interface UserDataRepository { /** diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDetailRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDetailRepository.kt index 1011f9e8b..ca4421eb7 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDetailRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repository/UserDetailRepository.kt @@ -10,9 +10,9 @@ package org.mifos.mobile.core.data.repository import kotlinx.coroutines.flow.Flow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.model.entity.notification.NotificationRegisterPayload import org.mifos.mobile.core.model.entity.notification.NotificationUserDetail -import org.mifospay.core.common.DataState interface UserDetailRepository { diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AccountsRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AccountsRepositoryImp.kt index c54ea7df0..771d8740e 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AccountsRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AccountsRepositoryImp.kt @@ -12,11 +12,11 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.AccountsRepository import org.mifos.mobile.core.model.entity.client.ClientAccounts import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class AccountsRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AuthenticationUserRepository.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AuthenticationUserRepository.kt index 92b9a15f6..be1f3e719 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AuthenticationUserRepository.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/AuthenticationUserRepository.kt @@ -15,10 +15,10 @@ import kotlinx.coroutines.flow.firstOrNull import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.data.repository.UserDataRepository import org.mifos.mobile.core.datastore.UserPreferencesRepository import org.mifos.mobile.core.model.UserData -import org.mifospay.core.common.DataState class AuthenticationUserRepository( private val preferencesHelper: UserPreferencesRepository, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/BeneficiaryRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/BeneficiaryRepositoryImp.kt index af590c0e2..e2b53428a 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/BeneficiaryRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/BeneficiaryRepositoryImp.kt @@ -13,14 +13,14 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.BeneficiaryRepository import org.mifos.mobile.core.model.entity.beneficiary.Beneficiary import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryPayload import org.mifos.mobile.core.model.entity.beneficiary.BeneficiaryUpdatePayload import org.mifos.mobile.core.model.entity.templates.beneficiary.BeneficiaryTemplate import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class BeneficiaryRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ClientRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ClientRepositoryImp.kt index b3461f467..df08e2782 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ClientRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ClientRepositoryImp.kt @@ -12,12 +12,12 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.ClientRepository import org.mifos.mobile.core.model.entity.Page import org.mifos.mobile.core.model.entity.client.Client import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class ClientRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/GuarantorRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/GuarantorRepositoryImp.kt index b5dea1995..756f64e3b 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/GuarantorRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/GuarantorRepositoryImp.kt @@ -13,13 +13,13 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.GuarantorRepository import org.mifos.mobile.core.model.entity.guarantor.GuarantorApplicationPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorPayload import org.mifos.mobile.core.model.entity.guarantor.GuarantorTemplatePayload import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class GuarantorRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/HomeRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/HomeRepositoryImp.kt index 4b498228a..fa29aa59b 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/HomeRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/HomeRepositoryImp.kt @@ -13,13 +13,13 @@ import io.ktor.client.statement.HttpResponse import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.HomeRepository import org.mifos.mobile.core.data.repository.NotificationRepository import org.mifos.mobile.core.model.entity.client.Client import org.mifos.mobile.core.model.entity.client.ClientAccounts import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class HomeRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/LoanRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/LoanRepositoryImp.kt index c81c0ea83..716716a9b 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/LoanRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/LoanRepositoryImp.kt @@ -13,13 +13,13 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.LoanRepository import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithAssociations import org.mifos.mobile.core.model.entity.accounts.loan.LoanWithdraw import org.mifos.mobile.core.model.entity.templates.loans.LoanTemplate import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class LoanRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/NotificationRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/NotificationRepositoryImp.kt index e37bb36c3..5268ebedd 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/NotificationRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/NotificationRepositoryImp.kt @@ -13,9 +13,9 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.data.repository.NotificationRepository import org.mifos.mobile.core.model.entity.MifosNotification -import org.mifospay.core.common.DataState class NotificationRepositoryImp( // private val notificationDao: MifosNotificationDao, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/RecentTransactionRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/RecentTransactionRepositoryImp.kt index 5bd9662ba..8faae495c 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/RecentTransactionRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/RecentTransactionRepositoryImp.kt @@ -12,12 +12,12 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.RecentTransactionRepository import org.mifos.mobile.core.model.entity.Page import org.mifos.mobile.core.model.entity.Transaction import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class RecentTransactionRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ReviewLoanApplicationRepositoryImpl.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ReviewLoanApplicationRepositoryImpl.kt index d49144c60..1802e1735 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ReviewLoanApplicationRepositoryImpl.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ReviewLoanApplicationRepositoryImpl.kt @@ -11,11 +11,11 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.data.repository.ReviewLoanApplicationRepository import org.mifos.mobile.core.model.entity.payload.LoansPayload import org.mifos.mobile.core.model.enums.LoanState import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState class ReviewLoanApplicationRepositoryImpl( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/SavingsAccountRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/SavingsAccountRepositoryImp.kt index 8f5e5c4be..430814f9a 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/SavingsAccountRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/SavingsAccountRepositoryImp.kt @@ -13,6 +13,8 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.SavingsAccountRepository import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountApplicationPayload import org.mifos.mobile.core.model.entity.accounts.savings.SavingsAccountUpdatePayload @@ -21,8 +23,6 @@ import org.mifos.mobile.core.model.entity.accounts.savings.SavingsWithAssociatio import org.mifos.mobile.core.model.entity.templates.account.AccountOptionsTemplate import org.mifos.mobile.core.model.entity.templates.savings.SavingsAccountTemplate import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class SavingsAccountRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ThirdPartyTransferRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ThirdPartyTransferRepositoryImp.kt index 66d5f10fa..69522a9e5 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ThirdPartyTransferRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/ThirdPartyTransferRepositoryImp.kt @@ -12,11 +12,11 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.ThirdPartyTransferRepository import org.mifos.mobile.core.model.entity.templates.account.AccountOptionsTemplate import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class ThirdPartyTransferRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/TransferRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/TransferRepositoryImp.kt index 8bcbc35c0..0b22d0be2 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/TransferRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/TransferRepositoryImp.kt @@ -11,11 +11,11 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.data.repository.TransferRepository import org.mifos.mobile.core.model.entity.payload.TransferPayload import org.mifos.mobile.core.model.enums.TransferType import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState class TransferRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserAuthRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserAuthRepositoryImp.kt index e4b3036ea..816e94ff5 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserAuthRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserAuthRepositoryImp.kt @@ -11,6 +11,7 @@ package org.mifos.mobile.core.data.repositoryImpl import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.data.repository.UserAuthRepository import org.mifos.mobile.core.model.entity.UpdatePasswordPayload import org.mifos.mobile.core.model.entity.User @@ -18,7 +19,6 @@ import org.mifos.mobile.core.model.entity.payload.LoginPayload import org.mifos.mobile.core.model.entity.register.RegisterPayload import org.mifos.mobile.core.model.entity.register.UserVerify import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState class UserAuthRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserDetailRepositoryImp.kt b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserDetailRepositoryImp.kt index de3ffc7eb..469ab70bc 100644 --- a/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserDetailRepositoryImp.kt +++ b/core/data/src/commonMain/kotlin/org/mifos/mobile/core/data/repositoryImpl/UserDetailRepositoryImp.kt @@ -13,12 +13,12 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.withContext +import org.mifos.mobile.core.common.DataState +import org.mifos.mobile.core.common.asDataStateFlow import org.mifos.mobile.core.data.repository.UserDetailRepository import org.mifos.mobile.core.model.entity.notification.NotificationRegisterPayload import org.mifos.mobile.core.model.entity.notification.NotificationUserDetail import org.mifos.mobile.core.network.DataManager -import org.mifospay.core.common.DataState -import org.mifospay.core.common.asDataStateFlow class UserDetailRepositoryImp( private val dataManager: DataManager, diff --git a/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt b/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt index bc7aea8e0..c9b1ae5e9 100644 --- a/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt +++ b/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.data +package org.mifos.mobile.core.data import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf diff --git a/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.desktop.kt b/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.desktop.kt index 1970d8c94..92c201de9 100644 --- a/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.desktop.kt +++ b/core/data/src/desktopMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.desktop.kt @@ -11,7 +11,7 @@ package org.mifos.mobile.core.data.di import org.koin.core.module.Module import org.koin.dsl.module -import org.mifospay.core.data.JsPlatformDependentDataModule +import org.mifos.mobile.core.data.JsPlatformDependentDataModule actual val getPlatformDataModule: PlatformDependentDataModule get() = JsPlatformDependentDataModule() diff --git a/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt b/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt index bc7aea8e0..c9b1ae5e9 100644 --- a/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt +++ b/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.data +package org.mifos.mobile.core.data import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf diff --git a/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.js.kt b/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.js.kt index 1970d8c94..92c201de9 100644 --- a/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.js.kt +++ b/core/data/src/jsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.js.kt @@ -11,7 +11,7 @@ package org.mifos.mobile.core.data.di import org.koin.core.module.Module import org.koin.dsl.module -import org.mifospay.core.data.JsPlatformDependentDataModule +import org.mifos.mobile.core.data.JsPlatformDependentDataModule actual val getPlatformDataModule: PlatformDependentDataModule get() = JsPlatformDependentDataModule() diff --git a/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/NativePlatformDependentDataModule.kt b/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/NativePlatformDependentDataModule.kt index bd1453513..727980834 100644 --- a/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/NativePlatformDependentDataModule.kt +++ b/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/NativePlatformDependentDataModule.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.data +package org.mifos.mobile.core.data import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf diff --git a/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.native.kt b/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.native.kt index 4c6d4d71a..f8324041c 100644 --- a/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.native.kt +++ b/core/data/src/nativeMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.native.kt @@ -11,7 +11,7 @@ package org.mifos.mobile.core.data.di import org.koin.core.module.Module import org.koin.dsl.module -import org.mifospay.core.data.NativePlatformDependentDataModule +import org.mifos.mobile.core.data.NativePlatformDependentDataModule actual val getPlatformDataModule: PlatformDependentDataModule get() = NativePlatformDependentDataModule() diff --git a/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt b/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt index bc7aea8e0..c9b1ae5e9 100644 --- a/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt +++ b/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/JsPlatformDependentDataModule.kt @@ -7,7 +7,7 @@ * * See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md */ -package org.mifospay.core.data +package org.mifos.mobile.core.data import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf diff --git a/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.wasmJs.kt b/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.wasmJs.kt index 1970d8c94..92c201de9 100644 --- a/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.wasmJs.kt +++ b/core/data/src/wasmJsMain/kotlin/org/mifos/mobile/core/data/di/PlatformDependentDataModule.wasmJs.kt @@ -11,7 +11,7 @@ package org.mifos.mobile.core.data.di import org.koin.core.module.Module import org.koin.dsl.module -import org.mifospay.core.data.JsPlatformDependentDataModule +import org.mifos.mobile.core.data.JsPlatformDependentDataModule actual val getPlatformDataModule: PlatformDependentDataModule get() = JsPlatformDependentDataModule() diff --git a/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepository.kt b/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepository.kt index 5e1ba564e..5d17c5b34 100644 --- a/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepository.kt +++ b/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepository.kt @@ -11,10 +11,10 @@ package org.mifos.mobile.core.datastore import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.StateFlow +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.datastore.model.AppSettings import org.mifos.mobile.core.datastore.model.AppTheme import org.mifos.mobile.core.datastore.model.UserData -import org.mifospay.core.common.DataState interface UserPreferencesRepository { val userInfo: Flow diff --git a/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepositoryImpl.kt b/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepositoryImpl.kt index 42756439b..5dd76cea5 100644 --- a/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepositoryImpl.kt +++ b/core/datastore/src/commonMain/kotlin/org/mifos/mobile/core/datastore/UserPreferencesRepositoryImpl.kt @@ -15,10 +15,10 @@ import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.stateIn +import org.mifos.mobile.core.common.DataState import org.mifos.mobile.core.datastore.model.AppSettings import org.mifos.mobile.core.datastore.model.AppTheme import org.mifos.mobile.core.datastore.model.UserData -import org.mifospay.core.common.DataState class UserPreferencesRepositoryImpl( private val preferenceManager: UserPreferencesDataSource,