This tool allows you to easily update the marketing version of a React Native application. Following files will be updated:
- ./package.json
- ./android/app/src/main/AndroidManifest.xml
- ./android/app/build.gradle
- ./ios/<app_name>/Info.plist
There are two ways to install react-native-marketing-version: globally and locally.
This is the recommended way to install react-native-marketing-version.
npm install @qeepsake/react-native-marketing-version --save-dev
-- or --
yarn add @qeepsake/react-native-marketing-version --dev
You can then use this command in your project directory to run react-native-marketing-version:
npm:
$ npm run set-version <version>
-- or --
$ yarn set-version <version>
This installation method allows you to use react-native-marketing-version in any project.
npm install -g react-native-marketing-version
-- or --
yarn global add react-native-marketing-version
You can then use this command in your project directory to run react-native-marketing-version:
set-version <version>
When invoked, react-native-marketing-version will make the following changes to your project files:
- The version attribute in
package.json
will be updated with the specified version. - It will update the version name in both
build.gradle
andAndroidManifest.xml
.react-native-marketing-version
will only write in theAndroidManifest.xml
ifandroid:versionName
is already in the file. - It will update the CFBundleShortVersionString ("Version") in
Info.plist
.
This software uses the MIT license.