fix(release): Simplify Play Store deployment to upload-only (#3027)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-09-08 20:52:34 -05:00 committed by GitHub
parent 15cdb04dba
commit 46282c3aec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 90 additions and 75 deletions

View file

@ -42,6 +42,8 @@ if (keystorePropertiesFile.exists()) {
FileInputStream(keystorePropertiesFile).use { keystoreProperties.load(it) }
}
val gitVersionProvider = providers.of(GitVersionValueSource::class.java) {}
android {
namespace = "com.geeksville.mesh"
@ -58,10 +60,8 @@ android {
applicationId = Configs.APPLICATION_ID
minSdk = Configs.MIN_SDK
targetSdk = Configs.TARGET_SDK
// Prioritize ENV, then fallback for versionCode
versionCode =
System.getenv("VERSION_CODE")?.toIntOrNull()
?: (System.currentTimeMillis() / 1000).toInt() // Meshtastic Development Build
// Prioritize ENV, then fallback to git commit count for versionCode
versionCode = (System.getenv("VERSION_CODE") ?: gitVersionProvider.get()).toInt()
versionName = System.getenv("VERSION_NAME") ?: Configs.VERSION_NAME_BASE
testInstrumentationRunner = "com.geeksville.mesh.TestRunner"
buildConfigField("String", "MIN_FW_VERSION", "\"${Configs.MIN_FW_VERSION}\"")
@ -221,6 +221,8 @@ androidComponents {
}
}
project.afterEvaluate { logger.lifecycle("Version code is set to: ${android.defaultConfig.versionCode}") }
dependencies {
implementation(project(":network"))
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))