Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static versionCode 1 & versionName 0.0.0 instead of updated for each release #175

Open
emanuelb opened this issue Jan 23, 2023 · 0 comments

Comments

@emanuelb
Copy link

in AndroidManifest.xml file of generated APK that is locally built the versionCode is 1 cause in ./android/app/build.gradle it set static value of 1:

versionCode 1
versionName "0.0.0"

while downloading APK from github or playstore will have version value like 48684, and it will be changed for each version.

static versionCode is problematic cause:

  1. won't enable manual apk update of locally built apks (will need to remove apk and then install it again) as all built APKs will have the same version.
  2. fdroid will detect it as error and for workaround will use other assigned number for it that they manage unless it will be specified in the recipe which wont be automatic (but can be if values are updated in the repo and are accurate for each git tag)

thus it make sense to update this value in repo to the correct one used in upcoming version before releasing new app, so for each git checkout of git tag, the values will be accurate for that version.

same apply for versionName to change it from 0.0.0 to the currently release like 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant