@@ -5,19 +5,39 @@ Reproducible, project-local development environments for Android, iOS, and React
55## Quick Start
66
77``` bash
8- # Add Android plugin to your project
9- echo ' {
10- "include": ["github:segment-integrations/devbox-plugins?dir=plugins/android"]
11- }' > devbox.json
8+ # Initialize devbox in your project
9+ devbox init
10+
11+ # Add the Android plugin include to your devbox.json
12+ # (devbox add only works for packages, not plugins — edit devbox.json manually)
13+ ```
1214
15+ Add the plugin to your ` devbox.json ` :
16+
17+ ``` json
18+ {
19+ "include" : [" github:segment-integrations/devbox-plugins?dir=plugins/android" ],
20+ "packages" : {
21+ "jdk17" : " latest" ,
22+ "gradle" : " latest"
23+ },
24+ "env" : {
25+ "ANDROID_APP_APK" : " app/build/outputs/apk/debug/app-debug.apk"
26+ }
27+ }
28+ ```
29+
30+ ``` bash
1331# Enter development environment
1432devbox shell
1533
1634# Start emulator and run app
17- devbox run start- emu
18- devbox run start-app
35+ devbox run start: emu
36+ devbox run start
1937```
2038
39+ The app's package name is auto-detected from the APK at install time.
40+
2141** New to devbox-plugins?** Check out the [ Quick Start Guide] ( wiki/guides/quick-start.md ) for detailed setup instructions.
2242
2343## Features
@@ -103,14 +123,14 @@ Each example includes device definitions, test suites, and build scripts.
103123
104124``` bash
105125# Android
106- devbox run start- emu # Start Android emulator
107- devbox run start-app # Build and launch app
108- devbox run stop- emu # Stop emulator
126+ devbox run start: emu # Start Android emulator
127+ devbox run start # Build, install, and launch app
128+ devbox run stop: emu # Stop emulator
109129
110130# iOS
111- devbox run start- sim # Start iOS simulator
112- devbox run start- ios # Build and launch app
113- devbox run stop- sim # Stop simulator
131+ devbox run start: sim # Start iOS simulator
132+ devbox run start: ios # Build and launch app
133+ devbox run stop: sim # Stop simulator
114134
115135# Device management
116136devbox run android.sh devices list
0 commit comments