rnx-kit/packages/tools-android
renovate[bot] 57013d2191
fix(deps): update eslint (major) (#3394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2024-10-17 14:41:52 +00:00
..
src
CHANGELOG.md RELEASING: Releasing 44 package(s) (#3342) 2024-09-11 08:59:50 +02:00
README.md
eslint.config.js
package.json fix(deps): update eslint (major) (#3394) 2024-10-17 14:41:52 +00:00
tsconfig.json

README.md

@rnx-kit/tools-android

Build npm version

@rnx-kit/tools-android is a collection of functions for deploying apps on Android.

Usage:

import * as tools from "@rnx-kit/tools-android";
Category Function Description
apk getPackageName(apk) Returns the package name and the first launchable activity of the specified APK.
apk install(device, apk, packageName) Installs the specified APK on specified emulator or physical device.
apk start(options, packageName, activityName) Starts the specified activity on specified emulator or physical device.
device getDevices() Returns a list of attached physical Android devices.
device getEmulators() Returns a list of available Android virtual devices.
device launchEmulator(emulatorName) Launches the emulator with the specified name.
device selectDevice(emulatorName, logger) Returns the emulator or physical device with the specified name.
gradle assemble(projectDir, buildParams) Invokes Gradle build.
gradle findOutputFile(projectDir, buildConfiguration) Tries to find Gradle build output file.
sdk getBuildToolsPath() Returns the path to Android SDK Build-Tools.