mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
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:
parent
15cdb04dba
commit
46282c3aec
4 changed files with 90 additions and 75 deletions
|
|
@ -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"))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue