Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
react-native-apply-version
Advanced tools
Apply the version in package.json to android/app/build.gradle and info.plist
This tool allows you to easily apply the version of a React Native application specified in package.json to the android and ios app source. It will update the following files if found:
In order to use this package, your project version must comply with the format: {versionName}+{versionCode}, versionName should be in format as described on semver.org.
There are two ways to install react-native-apply-version: globally and locally.
This is the recommended way to install react-native-apply-version.
npm:
npm install react-native-apply-version --save-dev
You can then use this command in your project directory to run react-native-apply-version:
npm:
$ npm run applyVersion
-- or --
$ npm run apply-version
This installation method allows you to use react-native-apply-version in any project.
npm:
npm install -g react-native-apply-version
You can then use this command in your project directory to run react-native-apply-version:
applyVersion
-- or --
apply-version
When invoked, react-native-apply-version will read the version specified in package.json and make the following changes to your project files:
It will update the version name and the version code in both build.gradle
and AndroidManifest.xml
.
Version information should not be in the AndroidManifest.xml
since this information is overridden by build.gradle
.
See https://developer.android.com/studio/publish/versioning for further informations.
For that reason react-native-apply-version
will only write in the AndroidManifest.xml
if android:versionCode
and/or android:versionName
are already in the file.
It will update the CFBundleShortVersionString and the CFBundleVersion in Info.plist
,
using the versionName and versionCode respectively,
these will be extracted from the versin field in your package.json, using the format specified above.
This software uses the MIT license.
You must use the following style guide:
This project contains a linting config, you should setup eslint
into your IDE with .eslintrc.js
.
FAQs
Apply the version in package.json to android/app/build.gradle and info.plist
The npm package react-native-apply-version receives a total of 0 weekly downloads. As such, react-native-apply-version popularity was classified as not popular.
We found that react-native-apply-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.