Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-apply-version
Advanced tools
Readme
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.