forked from github/cordova-android
added optional path to debug
This commit is contained in:
parent
8b908fbad0
commit
fe265ce9e1
@ -16,7 +16,7 @@ PhoneGap/Android Developer Tools
|
|||||||
Commands
|
Commands
|
||||||
|
|
||||||
./bin/create [path package activity] ... create the ./exmaple app or a phonegap/android project
|
./bin/create [path package activity] ... create the ./exmaple app or a phonegap/android project
|
||||||
./bin/debug ............................ install to first device
|
./bin/debug [path] ..................... install to first device
|
||||||
./bin/emulate .......................... start avd (emulator) named default
|
./bin/emulate .......................... start avd (emulator) named default
|
||||||
./bin/log .............................. starts logcat
|
./bin/log .............................. starts logcat
|
||||||
./bin/test ............................. run mobile-spec
|
./bin/test ............................. run mobile-spec
|
||||||
@ -32,8 +32,7 @@ Start avd (emulator) named `default`:
|
|||||||
Create the exmaple project and build it to the first device:
|
Create the exmaple project and build it to the first device:
|
||||||
|
|
||||||
./bin/create
|
./bin/create
|
||||||
cd example
|
./bin/debug ./example
|
||||||
./../bin/debug
|
|
||||||
|
|
||||||
Start adb logcat (console.log calls output here):
|
Start adb logcat (console.log calls output here):
|
||||||
|
|
||||||
|
13
bin/debug
13
bin/debug
@ -1,4 +1,17 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# USAGE
|
||||||
|
# ./debug [path]
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
PROJECT_PATH=${1:-$PWD}
|
||||||
|
|
||||||
|
# go to the proj
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
|
||||||
|
# compile and install to the first device
|
||||||
ant debug install
|
ant debug install
|
||||||
|
|
||||||
|
# start the app
|
||||||
adb shell am start -n $(cat ./package-activity)
|
adb shell am start -n $(cat ./package-activity)
|
||||||
|
Loading…
Reference in New Issue
Block a user