Skip to content

Commit a446e95

Browse files
committed
migrate :core:common to KMP part-3
1 parent f37a3fb commit a446e95

File tree

16 files changed

+59
-82
lines changed

16 files changed

+59
-82
lines changed

core/common/src/androidMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.android.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
9+
*/
110
package org.mifos.mobile.core.common
211

3-
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()
12+
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/CurrencyUtil.kt

Lines changed: 0 additions & 67 deletions
This file was deleted.

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifospay.core.common
1111

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/DataStateExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifospay.core.common
1111

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/FileUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

core/common/src/commonMain/kotlin/org/mifos/mobile/core/common/Utils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ object Utils {
2323
try {
2424
type?.lowercase()?.split("_")?.forEach { str ->
2525
builder.append(
26-
str[0].uppercaseChar() + str.substring(1)
26+
str[0].uppercaseChar() + str.substring(1),
2727
).append(" ")
2828
}
2929
} catch (_: Exception) {
3030
}
3131
return builder.toString().trim()
3232
}
3333
}
34-

core/common/src/desktopMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.jvm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
9+
*/
110
package org.mifos.mobile.core.common
211

3-
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()
12+
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()

core/common/src/jsMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.js.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
9+
*/
110
package org.mifos.mobile.core.common
211

3-
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()
12+
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()

core/common/src/nativeMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.native.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

core/common/src/nativeMain/kotlin/org/mifos/mobile/core/common/FileUtils.native.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
9+
*/
110
package org.mifos.mobile.core.common
211

312
import kotlinx.cinterop.BetaInteropApi

core/common/src/wasmJsMain/kotlin/org/mifos/mobile/core/common/CurrencyFormatter.js.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
99
*/
1010
package org.mifos.mobile.core.common
1111

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Copyright 2025 Mifos Initiative
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
9+
*/
110
package org.mifos.mobile.core.common
211

3-
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()
12+
actual fun createPlatformFileUtils(): FileUtils = CommonFileUtils()

0 commit comments

Comments
 (0)