build: Lower JDK to 17 and minSdk to 21 (#4369)

This commit is contained in:
James Rich 2026-01-29 20:04:30 -06:00 committed by GitHub
parent 2b51926e24
commit 039e785a2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 53 additions and 62 deletions

View file

@ -35,6 +35,12 @@ afterEvaluate {
configure<com.android.build.api.dsl.LibraryExtension> {
namespace = "org.meshtastic.core.api"
buildFeatures { aidl = true }
defaultConfig {
// Lowering minSdk to 21 for better compatibility with ATAK and other plugins
minSdk = 21
}
publishing { singleVariant("googleRelease") { withSourcesJar() } }
}

View file

@ -42,6 +42,12 @@ configure<LibraryExtension> {
aidl = true
}
namespace = "org.meshtastic.core.model"
defaultConfig {
// Lowering minSdk to 21 for better compatibility with ATAK and other plugins
minSdk = 21
}
publishing { singleVariant("googleRelease") { withSourcesJar() } }
}

View file

@ -16,22 +16,6 @@
*/
import com.android.build.api.dsl.LibraryExtension
/*
* 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/>.
*/
plugins {
alias(libs.plugins.meshtastic.android.library)
alias(libs.plugins.protobuf)
@ -53,6 +37,12 @@ afterEvaluate {
configure<LibraryExtension> {
namespace = "org.meshtastic.core.proto"
defaultConfig {
// Lowering minSdk to 21 for better compatibility with ATAK and other plugins
minSdk = 21
}
publishing { singleVariant("googleRelease") { withSourcesJar() } }
}