Reputation: 12874
Currently whenever I made changes to React Native applications, I will have to change version number in multiple places
{
"name": "My Awesome App",
"version": "1.2.0",
...
}
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
defaultConfig {
...
versionCode 1
versionName "1.2.0"
Is there a much simpler way to handle updating versioning like for example configuring in such a way where Info.plist and build.gradle automatically pointing to package.json?
Upvotes: 5
Views: 2870
Reputation: 2078
You could use react-native-version-up which allows you to bump the version in different ways in your package.json, build.gradle and info.plist.
Personally, I do not go with the approach of keeping all in sync. Since I'm following semver for all my JS-based projects, it can happen that some changes (i.e. a bugfix) affect only one platform and in that case, I would need to bump the version only for that one platform.
Upvotes: 7