diff --git a/build-logic/convention/src/main/kotlin/org/mifos/Badging.kt b/build-logic/convention/src/main/kotlin/org/mifos/Badging.kt index aab84c3ce21..b8ce7497b23 100644 --- a/build-logic/convention/src/main/kotlin/org/mifos/Badging.kt +++ b/build-logic/convention/src/main/kotlin/org/mifos/Badging.kt @@ -19,7 +19,7 @@ import org.gradle.api.tasks.OutputFile import org.gradle.api.tasks.PathSensitive import org.gradle.api.tasks.PathSensitivity import org.gradle.api.tasks.TaskAction -import org.gradle.configurationcache.extensions.capitalized +import org.gradle.internal.extensions.stdlib.capitalized import org.gradle.kotlin.dsl.register import org.gradle.language.base.plugins.LifecycleBasePlugin import org.gradle.process.ExecOperations diff --git a/core/model/build.gradle.kts b/core/model/build.gradle.kts index c4808f117ba..cf6c1a6bc27 100644 --- a/core/model/build.gradle.kts +++ b/core/model/build.gradle.kts @@ -1,7 +1,19 @@ +/* + * 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 + */ plugins { - alias(libs.plugins.mifos.jvm.library) + alias(libs.plugins.mifos.android.library) } +android{ + namespace = "com.mifos.core.model" +} dependencies { implementation(libs.converter.gson) -} \ No newline at end of file +} diff --git a/core/model/src/main/AndroidManifest.xml b/core/model/src/main/AndroidManifest.xml index 44008a4332e..b1f5dbb779f 100644 --- a/core/model/src/main/AndroidManifest.xml +++ b/core/model/src/main/AndroidManifest.xml @@ -1,4 +1,13 @@ + \ No newline at end of file diff --git a/core/model/src/main/kotlin/com/mifos/core/model/ServerConfig.kt b/core/model/src/main/kotlin/com/mifos/core/model/ServerConfig.kt index e35892f3012..03a55d62ccd 100644 --- a/core/model/src/main/kotlin/com/mifos/core/model/ServerConfig.kt +++ b/core/model/src/main/kotlin/com/mifos/core/model/ServerConfig.kt @@ -1,3 +1,12 @@ +/* + * 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.model import com.google.gson.annotations.SerializedName @@ -9,9 +18,9 @@ data class ServerConfig( @SerializedName("api_path") val apiPath: String, val port: String, - val tenant: String + val tenant: String, ) fun ServerConfig.getInstanceUrl(): String { return "$protocol$endPoint$apiPath" -} \ No newline at end of file +}