-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applied spotless and detekt rename
- Loading branch information
Showing
268 changed files
with
1,141 additions
and
916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
core/common/src/commonMain/kotlin/com/mifos/core/common/utils/Parcelize.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2024 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 | ||
|
||
expect annotation class Parcelize() | ||
|
||
expect interface Parcelable | ||
|
||
expect annotation class IgnoredOnParcel() | ||
|
||
expect interface Parceler<P> { | ||
fun create(parcel: Parcel): P | ||
|
||
fun P.write(parcel: Parcel, flags: Int) | ||
} | ||
|
||
expect annotation class TypeParceler<T, P : Parceler<in T>>() | ||
|
||
expect class Parcel { | ||
fun readByte(): Byte | ||
fun readInt(): Int | ||
|
||
fun readFloat(): Float | ||
fun readDouble(): Double | ||
fun readString(): String? | ||
|
||
fun writeByte(value: Byte) | ||
fun writeInt(value: Int) | ||
|
||
fun writeFloat(value: Float) | ||
|
||
fun writeDouble(value: Double) | ||
fun writeString(value: String?) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
core/common/src/desktopMain/kotlin/com/mifos/core/common/utils/Parcelize.desktop.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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 | ||
actual interface Parceler<P> { | ||
actual fun create(parcel: Parcel): P | ||
actual fun P.write(parcel: Parcel, flags: Int) | ||
} | ||
|
||
actual annotation class TypeParceler<T, P : Parceler<in T>> | ||
|
||
actual class Parcel { | ||
actual fun readString(): String? = null | ||
actual fun readByte(): Byte = 1 | ||
|
||
actual fun readInt(): Int = 1 | ||
|
||
actual fun readFloat(): Float = 1f | ||
|
||
actual fun readDouble(): Double = 1.0 | ||
|
||
actual fun writeByte(value: Byte) { | ||
} | ||
|
||
actual fun writeInt(value: Int) { | ||
} | ||
|
||
actual fun writeFloat(value: Float) { | ||
} | ||
|
||
actual fun writeDouble(value: Double) { | ||
} | ||
|
||
actual fun writeString(value: String?) { | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
core/common/src/jsMain/kotlin/com/mifos/core/common/utils/Parcelize.js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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 | ||
actual interface Parceler<P> { | ||
actual fun create(parcel: Parcel): P | ||
actual fun P.write(parcel: Parcel, flags: Int) | ||
} | ||
|
||
actual annotation class TypeParceler<T, P : Parceler<in T>> | ||
|
||
actual class Parcel { | ||
actual fun readString(): String? = null | ||
actual fun readByte(): Byte = 1 | ||
|
||
actual fun readInt(): Int = 1 | ||
|
||
actual fun readFloat(): Float = 1f | ||
|
||
actual fun readDouble(): Double = 1.0 | ||
|
||
actual fun writeByte(value: Byte) { | ||
} | ||
|
||
actual fun writeInt(value: Int) { | ||
} | ||
|
||
actual fun writeFloat(value: Float) { | ||
} | ||
|
||
actual fun writeDouble(value: Double) { | ||
} | ||
|
||
actual fun writeString(value: String?) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
core/common/src/main/java/com/mifos/core/common/utils/Parcelize.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* 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 | ||
import android.os.Parcelable | ||
import kotlinx.parcelize.IgnoredOnParcel | ||
import kotlinx.parcelize.Parceler | ||
import kotlinx.parcelize.Parcelize | ||
import kotlinx.parcelize.TypeParceler | ||
|
||
actual typealias Parcelize = Parcelize | ||
|
||
actual typealias Parcelable = Parcelable | ||
|
||
actual typealias IgnoredOnParcel = IgnoredOnParcel | ||
|
||
actual typealias Parceler<P> = Parceler<P> | ||
|
||
actual typealias TypeParceler<T, P> = TypeParceler<T, P> | ||
|
||
actual typealias Parcel = Parcel |
46 changes: 46 additions & 0 deletions
46
core/common/src/nativeMain/kotlin/com/mifos/core/common/utils/Parcelize.native.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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 | ||
actual interface Parceler<P> { | ||
actual fun create(parcel: Parcel): P | ||
actual fun P.write(parcel: Parcel, flags: Int) | ||
} | ||
|
||
actual annotation class TypeParceler<T, P : Parceler<in T>> | ||
|
||
actual class Parcel { | ||
actual fun readString(): String? = null | ||
actual fun readByte(): Byte = 1 | ||
|
||
actual fun readInt(): Int = 1 | ||
|
||
actual fun readFloat(): Float = 1f | ||
|
||
actual fun readDouble(): Double = 1.0 | ||
|
||
actual fun writeByte(value: Byte) { | ||
} | ||
|
||
actual fun writeInt(value: Int) { | ||
} | ||
|
||
actual fun writeFloat(value: Float) { | ||
} | ||
|
||
actual fun writeDouble(value: Double) { | ||
} | ||
|
||
actual fun writeString(value: String?) { | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
core/common/src/wasmJsMain/kotlin/com/mifos/core/common/utils/Parcelize.wasmJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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 | ||
actual interface Parceler<P> { | ||
actual fun create(parcel: Parcel): P | ||
actual fun P.write(parcel: Parcel, flags: Int) | ||
} | ||
|
||
actual annotation class TypeParceler<T, P : Parceler<in T>> | ||
|
||
actual class Parcel { | ||
actual fun readString(): String? = null | ||
actual fun readByte(): Byte = 1 | ||
|
||
actual fun readInt(): Int = 1 | ||
|
||
actual fun readFloat(): Float = 1f | ||
|
||
actual fun readDouble(): Double = 1.0 | ||
|
||
actual fun writeByte(value: Byte) { | ||
} | ||
|
||
actual fun writeInt(value: Int) { | ||
} | ||
|
||
actual fun writeFloat(value: Float) { | ||
} | ||
|
||
actual fun writeDouble(value: Double) { | ||
} | ||
|
||
actual fun writeString(value: String?) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.