{"name":"@react-native-community/cli-platform-android","version":"20.0.0","license":"MIT","_id":"@react-native-community/cli-platform-android@20.0.0","maintainers":[{"name":"bartoszklonowski","email":"bartosz.klonowski@cxcode.pl"},{"name":"titozzz","email":"malbranche.thibault@gmail.com"},{"name":"empyrical","email":"empyrical@outlook.com"},{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"mattoakes","email":"hello@mattoakes.net"},{"name":"ferrannp","email":"fnp.developer@gmail.com"},{"name":"mike866","email":"michal.chudziak@gmail.com"},{"name":"krizzu","email":"dev@kborowy.com"},{"name":"trensik","email":"dawid.urbaniak.dev@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"nicholaslee119","email":"nicholaslee119@gmail.com"},{"name":"mmazzarolo","email":"me@mazzarolomatteo.com"},{"name":"rewieer","email":"ancyr@pm.me"},{"name":"janicduplessis","email":"janicduplessis@gmail.com"},{"name":"swaagie","email":"martijn@swaagman.online"},{"name":"kelset","email":"notkelset@kelset.dev"},{"name":"johandutoit","email":"jdutoit.dev@gmail.com"},{"name":"vonovak","email":"vonovak@gmail.com"},{"name":"wojteg1337","email":"feelun132@gmail.com"},{"name":"naturalclar","email":"jesse.katsumata@gmail.com"},{"name":"connectdotz","email":"vsun@connectdotz.com"},{"name":"pvinis","email":"pvinis@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"eliwhite","email":"npm@eli-white.com"},{"name":"alloy","email":"eloy.de.enige@gmail.com"},{"name":"cortinico","email":"corti.nico@gmail.com"},{"name":"safaiyeh","email":"safaiyeh@protonmail.com"},{"name":"dmitryrykun","email":"dmitry.rykun@gmail.com"},{"name":"lunaleaps","email":"lunaleaps@gmail.com"},{"name":"wootwootwoot","email":"platcool@gmail.com"},{"name":"react-native-bot","email":"opensource+react-native-bot@fb.com"},{"name":"szymonrybczak","email":"szymon.rybczak@gmail.com"},{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},{"name":"okwasniewski","email":"oskarkwasniewski@icloud.com"}],"homepage":"https://github.com/react-native-community/cli/tree/main/packages/cli-platform-android","bugs":{"url":"https://github.com/react-native-community/cli/issues"},"dist":{"shasum":"f2f6c666e8c878abf39bde1f3281198ba6e3d5b3","tarball":"http://registry-npm.ywwl.com/@react-native-community/cli-platform-android/download/@react-native-community/cli-platform-android-20.0.0.tgz","fileCount":73,"integrity":"sha512-th3ji1GRcV6ACelgC0wJtt9daDZ+63/52KTwL39xXGoqczFjml4qERK90/ppcXU0Ilgq55ANF8Pr+UotQ2AB/A==","signatures":[{"sig":"MEUCIQD7bILVViJ2cqENjW3lQ8tfSP7Kcro0K6JfmkbXCvQ7twIgA/Z/FqV9QXlI2cjmkJoeO8oqQ03xsxXFLZvlOWlGQHw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":144616,"size":38109,"noattachment":false,"key":"/@react-native-community/cli-platform-android/-/@react-native-community/cli-platform-android-20.0.0.tgz"},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"eea99b9af0d7a73b4f189dec20f20c03ecfc7574","_npmUser":{"name":"thymikee","email":"thymikee@gmail.com"},"repository":{"url":"git+https://github.com/react-native-community/cli.git","type":"git","directory":"packages/platform-android"},"_npmVersion":"lerna/7.1.5/node@v23.9.0+arm64 (darwin)","description":"This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.","directories":{},"_nodeVersion":"23.9.0","dependencies":{"chalk":"^4.1.2","execa":"^5.0.0","logkitty":"^0.7.1","@react-native-community/cli-tools":"20.0.0","@react-native-community/cli-config-android":"20.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@react-native-community/cli-types":"20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-platform-android_20.0.0_1754903740036_0.1071963574475936","host":"s3://npm-registry-packages-npm-production"},"readme":"# @react-native-community/cli-platform-android\n\nThis package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.\n\n## Installation\n\n```sh\nyarn add @react-native-community/cli-platform-android\n```\n\n## Commands\n\n### `run-android`\n\nUsage:\n\n```sh\nnpx react-native run-android [options]\n```\n\nBuilds your app and starts it on a connected Android emulator or device.\n\n#### Options\n\n#### `--appId <string>`\n\nSpecify an `applicationId` to launch after build. If not specified, `package` from AndroidManifest.xml will be used.\n\n#### `--appIdSuffix <string>`\n\nSpecify an `applicationIdSuffix` to launch after build.\n\n#### `--main-activity <string>`\n\n> default: 'MainActivity'\n\nName of the activity to start.\n\n#### `--device <string>`\n\nExplicitly set the device to use by name. The value is not required if you have a single device connected.\n\n#### `--deviceId <string>`\n\n> **DEPRECATED** - use `--device <string>` instead\n\nBuilds your app and starts it on a specific device with the given device id (listed by running \"adb devices\" on the command line).\n\n#### `--no-packager`\n\nDo not launch packager while building.\n\n#### `--port <number>`\n\n> default: process.env.RCT_METRO_PORT || 8081\n\n#### `--terminal <string>`\n\n> default: process.env.REACT_TERMINAL || process.env.TERM_PROGRAM\n\nLaunches the Metro Bundler in a new window using the specified terminal path.\n\n#### `--tasks <list>`\n\n> default: 'installDebug'\n\nRun custom gradle tasks. If this argument is provided, then `--mode` option is ignored.\nExample: `yarn react-native run-android --tasks clean,installDebug`.\n\n#### `--active-arch-only`\n\n> default: false\n\nBuild native libraries only for the current device architecture for debug builds.\n\n#### `--list-devices`\n\n> default: false\n\nList all available Android devices and simulators and let you choose one to run the app.\n\n#### `--interactive`, `-i`\n\nManually select a task and device/simulator you want to run your app on.\n\n> [!WARNING]  \n> This flag is running `./gradlew tasks` under the hood, which might take some time for more complex apps. If that affects your project, consider using `--mode` and `--deviceId` flags instead.\n\n### `build-android`\n\nUsage:\n\n```sh\nnpx react-native build-android [options]\n```\n\nBuilds Android app.\n\n#### Options\n\n#### `--mode <string>`\n\n> default: debug\n\nMode to build the app. Either 'debug' (default) or 'release'.\n\n#### `--extra-params <string>`\n\nCustom params that will be passed to gradle build command.\nExample:\n\n```sh\nnpx react-native build-android --extra-params \"-x lint -x test\"\n```\n\n#### `--binary-path <path>`\n\nInstalls passed binary instead of building a fresh one. This command is not compatible with `--tasks`.\n\n#### `--user` <number | string>\n\nId of the User Profile you want to install the app on.\n\n### `log-android`\n\nUsage:\n\n```sh\nnpx react-native log-android\n```\n\nStarts [`logkitty`](https://github.com/zamotany/logkitty) displaying pretty Android logs.\n","publish_time":1754903740199,"_cnpm_publish_time":1754903740199,"dist-tags":{"11.x":"11.4.1","12.x":"12.3.7","14.x":"14.1.2","16.x":"16.0.3","17.x":"17.0.1","18.x":"18.0.1","19.x":"19.1.2","7.x":"6.3.1","9.x":"9.3.4","latest":"20.2.0","next":"21.0.0-alpha.1","v7.0.1":"7.0.1"}}