Skip to content

Commit

Permalink
MIFOSAC-289 (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkeye14 authored Dec 23, 2024
1 parent 8667820 commit 52db705
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 14 additions & 2 deletions core/model/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
}
9 changes: 9 additions & 0 deletions core/model/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
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
-->
<manifest>

</manifest>
13 changes: 11 additions & 2 deletions core/model/src/main/kotlin/com/mifos/core/model/ServerConfig.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
}
}

0 comments on commit 52db705

Please sign in to comment.