mirror of
https://github.com/openMF/mifos-mobile.git
synced 2026-02-06 11:26:51 +00:00
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
/*
|
|
* Copyright 2026 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/mobile-mobile/blob/master/LICENSE.md
|
|
*/
|
|
|
|
plugins {
|
|
alias(libs.plugins.kmp.library.convention)
|
|
alias(libs.plugins.ktorfit)
|
|
id("kotlinx-serialization")
|
|
id("com.google.devtools.ksp")
|
|
}
|
|
|
|
android {
|
|
namespace = "org.mifos.mobile.core.network"
|
|
defaultConfig {
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
testOptions {
|
|
unitTests {
|
|
isReturnDefaultValues = true
|
|
isIncludeAndroidResources = true
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
api(projects.core.common)
|
|
implementation(projects.core.datastore)
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.ktor.client.core)
|
|
implementation(libs.ktor.client.json)
|
|
implementation(libs.ktor.client.logging)
|
|
implementation(libs.ktor.client.serialization)
|
|
implementation(libs.ktor.client.content.negotiation)
|
|
implementation(libs.ktor.client.auth)
|
|
implementation(libs.ktor.serialization.kotlinx.json)
|
|
implementation(libs.ktorfit.lib)
|
|
implementation(libs.squareup.okio)
|
|
}
|
|
androidMain.dependencies {
|
|
implementation(libs.ktor.client.okhttp)
|
|
implementation(libs.koin.android)
|
|
}
|
|
|
|
nativeMain.dependencies {
|
|
implementation(libs.ktor.client.darwin)
|
|
}
|
|
|
|
desktopMain.dependencies {
|
|
implementation(libs.ktor.client.okhttp)
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
add("kspCommonMainMetadata", libs.ktorfit.ksp)
|
|
add("kspAndroid", libs.ktorfit.ksp)
|
|
add("kspJs", libs.ktorfit.ksp)
|
|
add("kspWasmJs", libs.ktorfit.ksp)
|
|
add("kspDesktop", libs.ktorfit.ksp)
|
|
add("kspIosX64", libs.ktorfit.ksp)
|
|
add("kspIosArm64", libs.ktorfit.ksp)
|
|
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
|
|
}
|