Skip to content

Commit

Permalink
[DEV][print version name task added]
Browse files Browse the repository at this point in the history
  • Loading branch information
emreesen27 authored Feb 12, 2024
1 parent f4085b7 commit 7971d85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ task installCommitMsgHook(type: Copy) {
fileMode 0777
}

task printVersionName {
doLast {
println android.defaultConfig.versionName
}
}

tasks.getByPath(':app:preBuild').dependsOn installGitHooks
tasks.getByPath(':app:preBuild').dependsOn installCommitMsgHook

Expand Down Expand Up @@ -115,4 +121,4 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
}

0 comments on commit 7971d85

Please sign in to comment.