Skip to content

Commit

Permalink
applied spotless and detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
itsPronay committed Jan 14, 2025
1 parent 53c52b3 commit 65131e3
Show file tree
Hide file tree
Showing 60 changed files with 111 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
package com.mifos.core.common.utils


@Serializable
data class ServerConfig(
val protocol: String,
Expand All @@ -24,4 +23,3 @@ data class ServerConfig(
fun ServerConfig.getInstanceUrl(): String {
return "$protocol$endPoint$apiPath"
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils

actual interface Parcelable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/*
* Copyright 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils


actual interface Parcelable
actual annotation class IgnoredOnParcel
actual annotation class Parcelize
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils

import android.os.Parcel
Expand All @@ -6,7 +15,6 @@ import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parceler
import kotlinx.parcelize.Parcelize
import kotlinx.parcelize.TypeParceler
import javax.annotation.processing.Generated

actual typealias Parcelize = Parcelize

Expand All @@ -18,4 +26,4 @@ actual typealias Parceler<P> = Parceler<P>

actual typealias TypeParceler<T, P> = TypeParceler<T, P>

actual typealias Parcel = Parcel
actual typealias Parcel = Parcel
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/*
* Copyright 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils


actual interface Parcelable
actual annotation class IgnoredOnParcel
actual annotation class Parcelize
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/*
* Copyright 2025 Mifos Initiative
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.core.common.utils


actual interface Parcelable
actual annotation class IgnoredOnParcel
actual annotation class Parcelize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import com.mifos.core.entity.accounts.loan.LoanWithAssociations
import com.mifos.core.entity.accounts.loan.LoanWithAssociations_Table
import com.mifos.core.entity.templates.loans.LoanRepaymentTemplate
import com.mifos.core.entity.templates.loans.LoanRepaymentTemplate_Table
import core.mifos.core.model.objects.account.loan.LoanRepaymentResponse
import com.raizlabs.android.dbflow.sql.language.Delete
import com.raizlabs.android.dbflow.sql.language.SQLite
import core.mifos.core.model.objects.account.loan.LoanRepaymentResponse
import rx.Observable
import rx.functions.Func0
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
package com.mifos.core.entity.accounts.loan

import com.mifos.core.objects.account.loan.AmortizationType
import core.mifos.core.model.objects.account.loan.Currency
import com.mifos.core.objects.account.loan.InterestCalculationPeriodType
import com.mifos.core.objects.account.loan.InterestRateFrequencyType
import com.mifos.core.objects.account.loan.InterestType
import com.mifos.core.objects.account.loan.RepaymentFrequencyType
import core.mifos.core.model.objects.account.loan.Currency
import core.mifos.core.model.objects.account.loan.TermPeriodFrequencyType

data class Loan(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import com.raizlabs.android.dbflow.annotation.ModelContainer
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import kotlinx.parcelize.Parcelize
import java.sql.Timestamp

/**
* Created by ishankhanna on 22/05/14.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ import android.os.Parcelable
import com.mifos.core.database.MifosDatabase
import com.mifos.core.model.MifosBaseModel
import com.mifos.core.objects.account.loan.AmortizationType
import core.mifos.core.model.objects.account.loan.Currency
import com.mifos.core.objects.account.loan.InterestCalculationPeriodType
import com.mifos.core.objects.account.loan.InterestRateFrequencyType
import com.mifos.core.objects.account.loan.InterestType
import com.mifos.core.objects.account.loan.RepaymentFrequencyType
import com.mifos.core.objects.account.loan.RepaymentSchedule
import core.mifos.core.model.objects.account.loan.TermPeriodFrequencyType
import com.mifos.core.objects.account.loan.Transaction
import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.ForeignKey
import com.raizlabs.android.dbflow.annotation.ModelContainer
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import core.mifos.core.model.objects.account.loan.Currency
import core.mifos.core.model.objects.account.loan.TermPeriodFrequencyType
import kotlinx.parcelize.Parcelize

@Table(database = MifosDatabase::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ package com.mifos.core.entity.accounts.loan

import android.os.Parcelable
import com.mifos.core.objects.account.loan.AmortizationType
import core.mifos.core.model.objects.account.loan.Currency
import com.mifos.core.objects.account.loan.InterestCalculationPeriodType
import com.mifos.core.objects.account.loan.InterestRateFrequencyType
import com.mifos.core.objects.account.loan.InterestType
import com.mifos.core.objects.account.loan.RepaymentFrequencyType
import core.mifos.core.model.objects.account.loan.Currency
import core.mifos.core.model.objects.account.loan.TermPeriodFrequencyType
import kotlinx.parcelize.Parcelize

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ package com.mifos.core.entity.accounts.loan
import android.os.Parcelable
import com.mifos.core.database.MifosDatabase
import com.mifos.core.model.MifosBaseModel
import core.mifos.core.model.objects.account.loan.Currency
import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.ModelContainer
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import core.mifos.core.model.objects.account.loan.Currency
import kotlinx.parcelize.Parcelize

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ import android.os.Parcelable
import com.mifos.core.database.MifosDatabase
import com.mifos.core.model.MifosBaseModel
import com.mifos.core.objects.account.saving.InterestCalculationDaysInYearType
import core.mifos.core.model.objects.account.saving.InterestCalculationType
import core.mifos.core.model.objects.account.saving.InterestCompoundingPeriodType
import core.mifos.core.model.objects.account.saving.InterestPostingPeriodType
import com.mifos.core.objects.account.saving.LockinPeriodFrequencyType
import core.mifos.core.model.objects.account.saving.Timeline
import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.ForeignKey
import com.raizlabs.android.dbflow.annotation.ModelContainer
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import core.mifos.core.model.objects.account.saving.InterestCalculationType
import core.mifos.core.model.objects.account.saving.InterestCompoundingPeriodType
import core.mifos.core.model.objects.account.saving.InterestPostingPeriodType
import core.mifos.core.model.objects.account.saving.Timeline
import kotlinx.parcelize.Parcelize

@Parcelize
Expand Down Expand Up @@ -93,4 +93,4 @@ data class SavingsAccountWithAssociations(

var charges: List<Charge?> = ArrayList(),

) : MifosBaseModel(), Parcelable
) : MifosBaseModel(), Parcelable
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ package com.mifos.core.entity.templates.loans

import android.os.Parcelable
import com.mifos.core.entity.noncore.DataTable
import core.mifos.core.model.objects.account.loan.AccountLinkingOptions
import com.mifos.core.objects.template.loan.AmortizationType
import com.mifos.core.objects.template.loan.AmortizationTypeOptions
import com.mifos.core.objects.template.loan.ChargeOptions
import com.mifos.core.objects.template.loan.Currency
import com.mifos.core.objects.template.loan.DaysInMonthType
import core.mifos.core.model.objects.template.loan.DaysInYearType
import com.mifos.core.objects.template.loan.FundOptions
import com.mifos.core.objects.template.loan.InterestCalculationPeriodType
import core.mifos.core.model.objects.template.loan.InterestRateFrequencyType
import com.mifos.core.objects.template.loan.InterestRateFrequencyTypeOptions
import core.mifos.core.model.objects.template.loan.InterestType
import core.mifos.core.model.objects.template.loan.InterestTypeOptions
import core.mifos.core.model.objects.template.loan.LoanCollateralOptions
import com.mifos.core.objects.template.loan.LoanOfficerOptions
import com.mifos.core.objects.template.loan.LoanPurposeOptions
import core.mifos.core.model.objects.template.loan.Product
import core.mifos.core.model.objects.template.loan.ProductOptions
import com.mifos.core.objects.template.loan.RepaymentFrequencyDaysOfWeekTypeOptions
import com.mifos.core.objects.template.loan.RepaymentFrequencyNthDayTypeOptions
import com.mifos.core.objects.template.loan.RepaymentFrequencyType
import com.mifos.core.objects.template.loan.RepaymentFrequencyTypeOptions
import core.mifos.core.model.objects.template.loan.TermFrequencyTypeOptions
import com.mifos.core.objects.template.loan.TermPeriodFrequencyType
import com.mifos.core.objects.template.loan.Timeline
import com.mifos.core.objects.template.loan.TransactionProcessingStrategyOptions
import core.mifos.core.model.objects.account.loan.AccountLinkingOptions
import core.mifos.core.model.objects.template.loan.DaysInYearType
import core.mifos.core.model.objects.template.loan.InterestRateFrequencyType
import core.mifos.core.model.objects.template.loan.InterestType
import core.mifos.core.model.objects.template.loan.InterestTypeOptions
import core.mifos.core.model.objects.template.loan.LoanCollateralOptions
import core.mifos.core.model.objects.template.loan.Product
import core.mifos.core.model.objects.template.loan.ProductOptions
import core.mifos.core.model.objects.template.loan.TermFrequencyTypeOptions
import kotlinx.parcelize.Parcelize

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize
import kotlinx.serialization.Serializable


@Parcelize
@Serializable
class Changes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data class SearchedEntity(

var entityStatus: InterestType? = null,

) : Parcelable {
) : Parcelable {
val description: String
get() = "#$entityId - $entityName"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ package core.mifos.core.model.objects.account.loan

import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize
import kotlinx.serialization.Serializable

/**
* Created by Tarun on 12/16/2016.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.account.loan
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


@Parcelize
class AmortizationType(
var id: Int? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.account.loan
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


@Parcelize
data class InterestCalculationPeriodType(
var id: Int? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.account.loan
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


@Parcelize
data class PaymentType(
var id: Int? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ package core.mifos.core.model.objects.account.saving
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


@Parcelize
//@Generated("org.jsonschema2pojo")
// @Generated("org.jsonschema2pojo")
data class ChargeTimeType(
var id: Int? = null,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
*/
package core.mifos.core.model.objects.account.saving

import com.mifos.core.common.utils.Parcelize
import core.mifos.core.model.objects.Changes
import kotlinx.serialization.Serializable


/**
* Created by ishankhanna on 12/06/14.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.clients
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


/**
* Created by Rajan Maurya on 09/02/17.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
*/
package core.mifos.core.model.objects.collectionsheets

import Currency
import com.mifos.core.common.utils.Parcel
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parceler
import com.mifos.core.common.utils.Parcelize
import Currency

/**
* Created by Tarun on 06-07-2017.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.databaseobjects
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


@Parcelize
data class OfflineCenter(
var staffId: Int = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.groups
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


/**
* Created by Rajan Maurya on 05/02/17.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import com.mifos.core.common.utils.Parcelize
class IdentifierTemplate(
var allowedDocumentTypes: List<DocumentType>? = ArrayList(),

) : Parcelable
) : Parcelable
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.template.client
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


/**
* Created by mayankjindal on 13/12/16.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.template.loan
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


/**
* Created by Rajan Maurya on 16/07/16.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package core.mifos.core.model.objects.template.loan
import com.mifos.core.common.utils.Parcelable
import com.mifos.core.common.utils.Parcelize


/**
* Created by Rajan Maurya on 16/07/16.
*/
Expand Down
Loading

0 comments on commit 65131e3

Please sign in to comment.