Add rn-build-version to default template for auto upgrade version #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Integrating
rn-build-version
into the React Native community template will streamline the management of Android build versions (versionCode
andversionName
) directly within the development workflow. This tool offers interactive prompts for version increments, automates backups, and updates changelogs, thereby enhancing the efficiency and reliability of the build process for developers.Changelog:
rn-build-version
as a development dependency in the React Native community template to facilitate automated Android version management.Pick one each for the category and type tags:
[ADDED] - Message
Test Plan:
Initialize a New React Native Project Using the Updated Template:
Verify the Installation of
rn-build-version
:cd TestApp
package.json
to confirmrn-build-version
is listed underdevDependencies
.npm install
oryarn install
to ensure all dependencies, includingrn-build-version
, are properly installed.Execute Build Commands Utilizing
rn-build-version
:package.json
under thescripts
section:(if you are not using this git repo)
rn-build-version
prompts for version increment options and updates thebuild.gradle
file accordingly..apk
or.aab
files) are generated successfully in theandroid/app/build/outputs
directory.Validate Changelog and Backup Creation:
build.gradle
file (build.gradle.bak
) is created in theandroid/app
directory.CHANGELOG.md
file to confirm that version details are accurately appended.By following this test plan, we can ensure that integrating
rn-build-version
into the React Native community template enhances the Android build process, providing developers with a more streamlined and automated approach to version management.