2025-05-29 23:18:45 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025 Meshtastic LLC
|
|
|
|
|
*
|
|
|
|
|
* 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-05-22 13:30:08 +00:00
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
|
alias(libs.plugins.hilt)
|
|
|
|
|
alias(libs.plugins.devtools.ksp)
|
|
|
|
|
alias(libs.plugins.detekt)
|
|
|
|
|
id("kotlinx-serialization")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
buildFeatures {
|
|
|
|
|
buildConfig = true
|
|
|
|
|
}
|
2025-06-25 23:16:55 +00:00
|
|
|
compileSdk = Configs.COMPILE_SDK
|
2025-05-22 13:30:08 +00:00
|
|
|
defaultConfig {
|
2025-06-25 23:16:55 +00:00
|
|
|
minSdk = Configs.MIN_SDK_VERSION
|
2025-05-22 13:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace = "com.geeksville.mesh.network"
|
2025-05-22 19:53:00 +00:00
|
|
|
|
|
|
|
|
flavorDimensions += "default"
|
|
|
|
|
productFlavors {
|
|
|
|
|
create("fdroid") {
|
|
|
|
|
dimension = "default"
|
|
|
|
|
}
|
|
|
|
|
create("google") {
|
|
|
|
|
dimension = "default"
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-05-22 13:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2025-06-26 00:18:59 +00:00
|
|
|
jvmToolchain(21)
|
2025-05-22 13:30:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.bundles.hilt)
|
|
|
|
|
implementation(libs.bundles.retrofit)
|
|
|
|
|
implementation(libs.bundles.coil)
|
|
|
|
|
ksp(libs.hilt.compiler)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
detektPlugins(libs.detekt.formatting)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
detekt {
|
|
|
|
|
config.setFrom("../config/detekt/detekt.yml")
|
2025-05-29 23:18:45 +00:00
|
|
|
baseline = file("../config/detekt/detekt-baseline-network.xml")
|
2025-05-22 13:30:08 +00:00
|
|
|
}
|