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/>.
|
|
|
|
|
*/
|
|
|
|
|
import com.android.build.api.dsl.LibraryExtension
|
|
|
|
|
|
2025-09-17 06:46:43 -04:00
|
|
|
plugins {
|
2025-09-19 15:53:43 -04:00
|
|
|
alias(libs.plugins.meshtastic.android.library)
|
|
|
|
|
alias(libs.plugins.meshtastic.kotlinx.serialization)
|
2025-09-24 11:43:46 -04:00
|
|
|
alias(libs.plugins.kotlin.parcelize)
|
2026-01-29 13:45:00 -06:00
|
|
|
`maven-publish`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply(from = rootProject.file("gradle/publishing.gradle.kts"))
|
|
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
create<MavenPublication>("release") {
|
|
|
|
|
from(components["googleRelease"])
|
|
|
|
|
artifactId = "core-model"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-17 06:46:43 -04:00
|
|
|
}
|
|
|
|
|
|
2025-12-28 07:47:12 -06:00
|
|
|
configure<LibraryExtension> {
|
2025-09-24 11:43:46 -04:00
|
|
|
buildFeatures {
|
|
|
|
|
buildConfig = true
|
|
|
|
|
aidl = true
|
|
|
|
|
}
|
|
|
|
|
namespace = "org.meshtastic.core.model"
|
2026-01-29 20:04:30 -06:00
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
// Lowering minSdk to 21 for better compatibility with ATAK and other plugins
|
|
|
|
|
minSdk = 21
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-29 13:45:00 -06:00
|
|
|
publishing { singleVariant("googleRelease") { withSourcesJar() } }
|
2025-09-24 11:43:46 -04:00
|
|
|
}
|
2025-09-17 06:46:43 -04:00
|
|
|
|
2025-09-24 11:43:46 -04:00
|
|
|
dependencies {
|
2026-01-29 15:04:45 -06:00
|
|
|
api(projects.core.proto)
|
2025-10-06 23:51:32 -04:00
|
|
|
|
2026-01-29 15:04:45 -06:00
|
|
|
api(libs.androidx.annotation)
|
|
|
|
|
api(libs.kotlinx.serialization.json)
|
2025-12-28 08:30:15 -06:00
|
|
|
implementation(libs.kermit)
|
2025-09-26 17:45:11 -04:00
|
|
|
implementation(libs.zxing.android.embedded) { isTransitive = false }
|
|
|
|
|
implementation(libs.zxing.core)
|
2025-10-07 12:23:41 -04:00
|
|
|
|
|
|
|
|
testImplementation(libs.androidx.core.ktx)
|
2025-10-07 20:08:48 -04:00
|
|
|
testImplementation(libs.junit)
|
2025-10-07 17:37:03 -04:00
|
|
|
|
|
|
|
|
androidTestImplementation(libs.androidx.test.ext.junit)
|
2026-01-15 18:47:45 -06:00
|
|
|
androidTestImplementation(libs.androidx.test.runner)
|
2025-09-24 11:43:46 -04:00
|
|
|
}
|