ci: fix android build
Some checks reported warnings
arcad/arcast/pipeline/head This commit is unstable

This commit is contained in:
2024-04-26 15:28:24 +02:00
parent d15ce3eabd
commit c1fdd2373b
3 changed files with 10 additions and 10 deletions

View File

@ -3,10 +3,8 @@ plugins {
id 'org.jetbrains.kotlin.android'
}
def gitVersion() {
def counter = 0
def process = "git rev-list master --first-parent --count".execute()
return process.text.toInteger()
def versionCode() {
return System.env.VERSION_CODE ? System.env.VERSION_CODE.toInteger() : 0
}
def versionName() {
@ -21,7 +19,7 @@ android {
applicationId "com.cadoles.arcast_player"
minSdk 24
targetSdk 34
versionCode gitVersion()
versionCode versionCode()
versionName versionName()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"