Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Oct 30, 2024
1 parent 2c3c57e commit 35e35bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
id: version_code
run: |
VERSION_CODE=$(./gradlew printVersionCode -q)
echo "VERSION_CODE=VERSION_CODE" >> $GITHUB_ENV
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: send telegram message
uses: appleboy/telegram-action@master
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
applicationId = "org.michaelbel.template" // Replace with your own applicationId
minSdk = libs.versions.min.sdk.get().toInt()
targetSdk = libs.versions.target.sdk.get().toInt()
versionCode = 1234//gitCommitsCount
versionCode = gitCommitsCount
versionName = "1.0"
setProperty("archivesBaseName", "Template-v$versionName($versionCode)") // Replace with your own app's name
}
Expand Down Expand Up @@ -110,7 +110,7 @@ tasks.register("printVersionName") {

tasks.register("printVersionCode") {
doLast {
println(android.defaultConfig.versionCode)
println(android.defaultConfig.versionCode.toString())
}
}

Expand Down

0 comments on commit 35e35bb

Please sign in to comment.