diff --git a/app/build.gradle b/app/build.gradle index dbce613..260d7f8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 @@ -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' -} \ No newline at end of file +}