2025-12-28 07:47:12 -06:00
|
|
|
/*
|
2026-01-02 14:06:05 -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/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-09-24 16:23:05 -04:00
|
|
|
plugins {
|
2026-03-03 20:44:34 -06:00
|
|
|
alias(libs.plugins.meshtastic.kmp.library)
|
2025-09-24 16:23:05 -04:00
|
|
|
alias(libs.plugins.meshtastic.android.room)
|
|
|
|
|
alias(libs.plugins.meshtastic.kotlinx.serialization)
|
2026-03-03 20:44:34 -06:00
|
|
|
alias(libs.plugins.kotlin.parcelize)
|
2026-03-09 20:19:46 -05:00
|
|
|
id("meshtastic.koin")
|
2025-09-24 16:23:05 -04:00
|
|
|
}
|
2022-08-11 16:43:26 +01:00
|
|
|
|
2026-03-03 20:44:34 -06:00
|
|
|
kotlin {
|
2026-03-12 16:14:49 -05:00
|
|
|
jvm()
|
|
|
|
|
|
2026-03-03 20:44:34 -06:00
|
|
|
android {
|
|
|
|
|
namespace = "org.meshtastic.core.database"
|
|
|
|
|
withHostTest { isIncludeAndroidResources = true }
|
|
|
|
|
withDeviceTest { instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-24 16:23:05 -04:00
|
|
|
sourceSets {
|
2026-03-03 20:44:34 -06:00
|
|
|
commonMain.dependencies {
|
|
|
|
|
implementation(libs.androidx.sqlite.bundled)
|
2026-03-20 16:40:08 -05:00
|
|
|
implementation(libs.androidx.datastore.preferences)
|
|
|
|
|
implementation(libs.okio)
|
2026-03-05 20:37:35 -06:00
|
|
|
|
2026-03-03 20:44:34 -06:00
|
|
|
api(projects.core.common)
|
|
|
|
|
implementation(projects.core.di)
|
|
|
|
|
api(projects.core.model)
|
|
|
|
|
implementation(projects.core.proto)
|
|
|
|
|
implementation(projects.core.resources)
|
|
|
|
|
implementation(libs.androidx.room.paging)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
implementation(libs.kermit)
|
|
|
|
|
}
|
|
|
|
|
commonTest.dependencies {
|
2026-03-25 19:29:24 -05:00
|
|
|
implementation(projects.core.testing)
|
2026-03-03 20:44:34 -06:00
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
|
|
|
implementation(libs.androidx.room.testing)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val androidHostTest by getting {
|
|
|
|
|
dependencies {
|
2026-03-25 19:29:24 -05:00
|
|
|
implementation(libs.androidx.sqlite.bundled)
|
2026-03-03 20:44:34 -06:00
|
|
|
implementation(libs.androidx.room.testing)
|
|
|
|
|
implementation(libs.androidx.test.core)
|
|
|
|
|
implementation(libs.androidx.test.ext.junit)
|
|
|
|
|
implementation(libs.junit)
|
|
|
|
|
implementation(libs.robolectric)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
val androidDeviceTest by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.androidx.room.testing)
|
|
|
|
|
implementation(libs.androidx.test.ext.junit)
|
|
|
|
|
implementation(libs.androidx.test.runner)
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-11 16:43:26 +01:00
|
|
|
}
|
2024-10-13 23:02:05 -03:00
|
|
|
}
|
2025-09-24 16:23:05 -04:00
|
|
|
|
|
|
|
|
dependencies {
|
2026-03-12 16:14:49 -05:00
|
|
|
"kspJvm"(libs.androidx.room.compiler)
|
2026-03-25 19:29:24 -05:00
|
|
|
"kspJvmTest"(libs.androidx.room.compiler)
|
2026-03-03 20:44:34 -06:00
|
|
|
"kspAndroidHostTest"(libs.androidx.room.compiler)
|
|
|
|
|
"kspAndroidDeviceTest"(libs.androidx.room.compiler)
|
2025-09-24 16:23:05 -04:00
|
|
|
}
|