-
Notifications
You must be signed in to change notification settings - Fork 75
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
Not incrementing versions in AndroidManifest #14
Comments
Hey @olegdizus. I think RN updates these values in memory during build time. Looking at RN projects I've worked on, I see that they always stay at their default values: <manifest
android:versionCode="1"
android:versionName="1.0" Why do you need them to be updated? |
It seems to me that they are mandatory for the play store, aren't they? |
@jsdario I don't dispute that. I'm just saying that I've never seen this file updated since doing When you're building an APK for the Play Store, they should be updated during the build process. Or am I missing something? |
I think React Native's behaviour in this case is indeed weird, but it makes sense to update the values only in the Gradle file. Or vice versa, but definitely not in two places. |
But I would still like to know if there's any interesting use case that would warrant updating AndroidManifest.xml, because we could then make an extra option for it. |
@stovmascript @jsdario Updating AndroidManifest.xml will not have any effect since the ones written in build.gradle will replace the ones in AndroidManifest.xml during build. But it might be a good idea to also update the values in AndroidManifest.xml to clear any confusion created by different values of |
The PR above is just a draft on how it was implemented under the organisation I work in. Feel free to copy / paste, improve or close it. Hope it helps. |
@jsdario Ok, thanks. |
I think updating AndroidManifest.xml is out of the scope of this package. RNV's job should be to update the topmost values, which you'd otherwise have to update manually in a RN app. Android manifest files get updated dynamically during build, which is what RN users expect, so updating them with RNV would actually create confusion. |
android:versionCode
andandroid:versionName
fieldsThe text was updated successfully, but these errors were encountered: