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-community/cli-platform-apple
Advanced tools
Readme
This package is part of the React Native CLI. It contains utilities for building reusable commands targetting Apple platforms.
yarn add @react-native-community/cli-platform-apple
This package is intended to be used internally in React Native CLI and by out of tree platforms.
It exports builder commands that can be used to create custom run-
, log-
and build-
commands for example: yarn run-<oot-platform>
.
Inside of <oot-platform>/packages/react-native/react-native.config.js
:
const {
getBuildOptions,
createBuild,
} = require('@react-native-community/cli-platform-apple');
const buildVisionOS = {
name: 'build-visionos',
description: 'builds your app for visionOS platform',
func: createBuild({platformName: 'visionos'}),
examples: [
{
desc: 'Build the app for visionOS in Release mode',
cmd: 'npx react-native build-visionos --mode "Release"',
},
],
options: getBuildOptions({platformName: 'visionos'}),
};
module.exports = {
commands: [buildVisionOS], // <- Add command here
//..
};
cli-platform-apple
also exports utilities to create OOT platform config.
getProjectConfig()
- creates project config for given platformgetDependencyConfg()
- creates dependency config for given platformExample (<oot-platform>/packages/react-native/react-native.config.js
):
platforms: {
visionos: {
npmPackageName: '@callstack/react-native-visionos',
projectConfig: getProjectConfig({platformName: 'visionos'}),
dependencyConfig: getDependencyConfg({platformName: 'visionos'}),
},
..
},
FAQs
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targetting Apple platforms.
The npm package @react-native-community/cli-platform-apple receives a total of 207,711 weekly downloads. As such, @react-native-community/cli-platform-apple popularity was classified as popular.
We found that @react-native-community/cli-platform-apple demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 30 open source maintainers 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.