Skip to content

Commit

Permalink
refactor: savings module (openMF#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvneetSingh2001 authored Jul 1, 2024
1 parent dc68f7a commit 0dbbea9
Show file tree
Hide file tree
Showing 60 changed files with 358 additions and 514 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ dependencies {
implementation(projects.core.data)
implementation(projects.core.datastore)
implementation(projects.ui)

implementation(projects.feature.loan)
implementation(projects.feature.registration)
implementation(projects.feature.beneficiary)
implementation(projects.feature.guarantor)
implementation(projects.feature.savings)



implementation("androidx.legacy:legacy-support-v4:1.0.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.mifos.mobile.R
import org.mifos.mobile.databinding.ActivitySavingsAccountApplicationBinding
import org.mifos.mobile.ui.activities.base.BaseActivity
import org.mifos.mobile.core.model.enums.SavingsAccountState
import org.mifos.mobile.ui.savings_account_application.SavingsAccountApplicationFragment.Companion.newInstance
import org.mifos.mobile.ui.savings_account.SavingsAccountApplicationFragment.Companion.newInstance

/*
* Created by saksham on 30/June/2018
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import org.mifos.mobile.ui.client_charge.ClientChargeComposeFragment
import org.mifos.mobile.core.model.enums.AccountType
import org.mifos.mobile.core.model.enums.ChargeType
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.ui.savings_make_transfer.SavingsMakeTransferComposeFragment
import org.mifos.mobile.ui.savings_account.SavingsMakeTransferComposeFragment
import org.mifos.mobile.ui.third_party_transfer.ThirdPartyTransferComposeFragment
import org.mifos.mobile.ui.user_profile.UserProfileActivity
import org.mifos.mobile.core.datastore.PreferencesHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import org.mifos.mobile.ui.loan_account_transaction.LoanAccountTransactionFragme
import org.mifos.mobile.ui.loan_account_withdraw.LoanAccountWithdrawFragment
import org.mifos.mobile.ui.loan_account_application.LoanApplicationFragment
import org.mifos.mobile.ui.loan_repayment_schedule.LoanRepaymentScheduleFragment
import org.mifos.mobile.ui.savings_make_transfer.SavingsMakeTransferFragment
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.ui.loan_account_summary.LoanAccountSummaryFragment
import org.mifos.mobile.ui.qr_code_display.QrCodeDisplayComposeFragment
import org.mifos.mobile.ui.savings_make_transfer.SavingsMakeTransferComposeFragment
import org.mifos.mobile.ui.savings_account.SavingsMakeTransferComposeFragment
import org.mifos.mobile.utils.*
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ import org.mifos.mobile.core.ui.theme.MifosMobileTheme
import org.mifos.mobile.ui.activities.SavingsAccountContainerActivity
import org.mifos.mobile.ui.activities.base.BaseActivity
import org.mifos.mobile.ui.client_charge.ClientChargeComposeFragment
import org.mifos.mobile.ui.savings_account_transaction.SavingAccountsTransactionComposeFragment
import org.mifos.mobile.ui.savings_account_application.SavingsAccountApplicationFragment
import org.mifos.mobile.ui.savings_account_withdraw.SavingsAccountWithdrawFragment
import org.mifos.mobile.ui.savings_make_transfer.SavingsMakeTransferFragment
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.ui.qr_code_display.QrCodeDisplayComposeFragment
import org.mifos.mobile.ui.savings_make_transfer.SavingsMakeTransferComposeFragment
import org.mifos.mobile.core.common.Network
import org.mifos.mobile.core.datastore.PreferencesHelper
import org.mifos.mobile.core.model.entity.accounts.savings.SavingsWithAssociations
import org.mifos.mobile.core.model.enums.AccountType
import org.mifos.mobile.core.model.enums.ChargeType
import org.mifos.mobile.core.model.enums.SavingsAccountState
import org.mifos.mobile.feature.savings.savings_account.SavingAccountsDetailViewModel
import org.mifos.mobile.feature.savings.savings_account.SavingsAccountDetailScreen
import org.mifos.mobile.utils.QrCodeGenerator
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.savings_account_transaction
package org.mifos.mobile.ui.savings_account

import android.content.Intent
import android.net.Uri
Expand Down Expand Up @@ -42,6 +42,7 @@ import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getChec
import org.mifos.mobile.utils.StatusUtils
import org.mifos.mobile.utils.Toaster
import org.mifos.mobile.core.common.utils.getDatePickerDialog
import org.mifos.mobile.feature.savings.savings_account_transaction.SavingAccountsTransactionViewModel
import java.time.Instant
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.savings_account_application
package org.mifos.mobile.ui.savings_account

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -16,6 +16,8 @@ import org.mifos.mobile.core.common.Constants
import org.mifos.mobile.core.model.entity.accounts.savings.SavingsWithAssociations
import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getCheckedParcelable
import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getCheckedSerializable
import org.mifos.mobile.feature.savings.savings_account_application.SavingsAccountApplicationScreen
import org.mifos.mobile.feature.savings.savings_account_application.SavingsAccountApplicationViewModel

/*
* Created by saksham on 30/June/2018
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.savings_account_transaction
package org.mifos.mobile.ui.savings_account

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -10,6 +10,8 @@ import org.mifos.mobile.core.ui.component.mifosComposeView
import org.mifos.mobile.ui.activities.SavingsAccountContainerActivity
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.core.common.Constants
import org.mifos.mobile.feature.savings.savings_account_transaction.SavingAccountsTransactionViewModel
import org.mifos.mobile.feature.savings.savings_account_transaction.SavingsAccountTransactionScreen


@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.savings_account_withdraw
package org.mifos.mobile.ui.savings_account

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -13,6 +13,8 @@ import org.mifos.mobile.ui.activities.SavingsAccountContainerActivity
import org.mifos.mobile.ui.fragments.base.BaseFragment
import org.mifos.mobile.core.model.entity.accounts.savings.SavingsWithAssociations
import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getCheckedParcelable
import org.mifos.mobile.feature.savings.savings_account_withdraw.SavingsAccountWithdrawScreen
import org.mifos.mobile.feature.savings.savings_account_withdraw.SavingsAccountWithdrawViewModel

/*
* Created by saksham on 02/July/2018
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.savings_make_transfer
package org.mifos.mobile.ui.savings_account

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -15,7 +15,9 @@ import org.mifos.mobile.ui.transfer_process.TransferProcessComposeFragment
import org.mifos.mobile.core.model.entity.payload.TransferPayload
import org.mifos.mobile.core.common.utils.DateHelper
import org.mifos.mobile.core.common.utils.getTodayFormatted

import org.mifos.mobile.feature.savings.savings_make_transfer.ReviewTransferPayload
import org.mifos.mobile.feature.savings.savings_make_transfer.SavingsMakeTransferScreen
import org.mifos.mobile.feature.savings.savings_make_transfer.SavingsMakeTransferViewModel

@AndroidEntryPoint
class SavingsMakeTransferComposeFragment : BaseFragment() {
Expand Down
Loading

0 comments on commit 0dbbea9

Please sign in to comment.