2025-12-28 07:47:12 -06:00
|
|
|
/*
|
2026-01-09 09:40:00 -06:00
|
|
|
* Copyright (c) 2025-2026 Meshtastic LLC
|
2025-12-28 07:47:12 -06:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-03-02 12:15:33 -06:00
|
|
|
plugins {
|
2026-03-06 20:43:45 -06:00
|
|
|
alias(libs.plugins.meshtastic.kmp.library)
|
2026-03-09 20:19:46 -05:00
|
|
|
id("meshtastic.koin")
|
2026-03-02 12:15:33 -06:00
|
|
|
}
|
2025-08-08 16:59:54 -05:00
|
|
|
|
2026-03-06 20:43:45 -06:00
|
|
|
kotlin {
|
|
|
|
|
@Suppress("UnstableApiUsage")
|
|
|
|
|
android {
|
|
|
|
|
namespace = "org.meshtastic.core.service"
|
|
|
|
|
androidResources.enable = false
|
2026-03-16 15:05:50 -05:00
|
|
|
withHostTest { isIncludeAndroidResources = true }
|
2026-03-06 20:43:45 -06:00
|
|
|
}
|
2026-01-19 18:58:26 -06:00
|
|
|
|
2026-03-06 20:43:45 -06:00
|
|
|
sourceSets {
|
|
|
|
|
commonMain.dependencies {
|
2026-03-20 16:40:08 -05:00
|
|
|
api(projects.core.repository)
|
2026-03-06 20:43:45 -06:00
|
|
|
implementation(projects.core.common)
|
|
|
|
|
implementation(projects.core.data)
|
|
|
|
|
implementation(projects.core.database)
|
2026-03-20 16:40:08 -05:00
|
|
|
implementation(projects.core.di)
|
2026-03-06 20:43:45 -06:00
|
|
|
implementation(projects.core.model)
|
2026-03-17 14:06:01 -05:00
|
|
|
implementation(projects.core.navigation)
|
2026-03-20 16:40:08 -05:00
|
|
|
implementation(projects.core.network)
|
|
|
|
|
implementation(projects.core.ble)
|
2026-03-06 20:43:45 -06:00
|
|
|
implementation(projects.core.prefs)
|
|
|
|
|
implementation(projects.core.proto)
|
2026-04-01 15:21:25 -05:00
|
|
|
implementation(projects.core.takserver)
|
2026-03-09 20:19:46 -05:00
|
|
|
|
2026-03-20 16:40:08 -05:00
|
|
|
implementation(libs.jetbrains.lifecycle.runtime)
|
2026-03-21 18:19:13 -05:00
|
|
|
implementation(libs.kotlinx.atomicfu)
|
2026-03-06 20:43:45 -06:00
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
implementation(libs.kermit)
|
|
|
|
|
}
|
2025-08-08 16:59:54 -05:00
|
|
|
|
2026-03-16 15:05:50 -05:00
|
|
|
androidMain.dependencies {
|
|
|
|
|
api(projects.core.api)
|
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
|
|
|
implementation(libs.androidx.work.runtime.ktx)
|
|
|
|
|
implementation(libs.koin.android)
|
|
|
|
|
implementation(libs.koin.androidx.workmanager)
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-20 17:58:47 -05:00
|
|
|
val androidHostTest by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(projects.core.testing)
|
|
|
|
|
implementation(libs.robolectric)
|
|
|
|
|
implementation(libs.androidx.test.core)
|
|
|
|
|
implementation(libs.androidx.test.ext.junit)
|
|
|
|
|
implementation(libs.androidx.work.testing)
|
|
|
|
|
}
|
2026-03-16 15:05:50 -05:00
|
|
|
}
|
2026-01-15 15:23:33 -08:00
|
|
|
|
2026-04-09 13:21:46 -05:00
|
|
|
commonTest.dependencies { implementation(libs.kotlinx.coroutines.test) }
|
2026-03-06 20:43:45 -06:00
|
|
|
}
|
2025-08-08 16:59:54 -05:00
|
|
|
}
|