2 releases

0.1.2 Nov 13, 2021
0.1.1 Oct 29, 2021

#579 in Build Utils

MIT license

14KB
267 lines

crates.io

               (
 (        (    )\ )
 )(    (  )\  (()/(
(()\   )\((_)  ((_))
 ((_) ((_)(_)  _| |
| '_|/ _ \| |/ _` |
|_|  \___/|_|\__,_|

roid 0.1.2
Android Developer Toolkit

USAGE:
    roid [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    build      Build an Android project
    device     Android device management
    help       Prints this message or the help of the given subcommand(s)
    install    Install an APK on a device or emulator

Guide

Install with cargo:

$ cargo install roid

Set up a Roid.toml file @ ~/.config/Roid.toml:

# Path to gradle
# defaults to: gradle
gradle = "/usr/bin/gradle"

# Path to Android SDK emulator cli tool: 
# defaults to: emulator
emulator = "/home/{user}/Android/Sdk/emulator/emulator"

# Path to ADB
# defaults to: adb
adb = "/usr/bin/adb"

Build (compile) project in debug mode

$ roid build --debug

List all devices (both physical and emulators)

$ roid device --list

Install apk on a device

$ roid install --apk ./build/outputs/apk/debug/app-debug.apk

Dependencies

~1.2–2.3MB
~37K SLoC