android-version-actions icon indicating copy to clipboard operation
android-version-actions copied to clipboard

BuildConfig.VERSION_CODE is still set to default value.

Open dtokar-pcty opened this issue 1 year ago • 0 comments

Hello,

I want to show the current build version code on the login screen of my application. I am showing the BuildConfig.VERSION_CODE to get the value, but it is still set to default value and is not overridden during build of the apk on Github:

Row {
        Text(text = "App version: ${BuildConfig.VERSION_CODE}")
}

I am using this to increment the version code in github action workflow, which works fine and the version code is incremented:

- name: Set version code and version name
        uses: chkfung/[email protected]
        with:
          gradlePath: app/build.gradle.kts
          versionCode: ${{github.run_number}}
          versionName: app_1.0.0_${{github.run_number}}

Thank you.

dtokar-pcty avatar Mar 16 '23 11:03 dtokar-pcty