mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
CB-937 fixing debug
This commit is contained in:
parent
d42489c67a
commit
17ff6be6a9
@ -61,12 +61,15 @@ function log {
|
|||||||
adb logcat
|
adb logcat
|
||||||
}
|
}
|
||||||
|
|
||||||
function debug_install {
|
|
||||||
ant debug install
|
|
||||||
}
|
|
||||||
|
|
||||||
function debug {
|
function debug {
|
||||||
ant debug
|
if [ $(check_devices) == 0 ] ; then
|
||||||
|
ant debug install
|
||||||
|
else
|
||||||
|
ant debug
|
||||||
|
echo "##################################################################"
|
||||||
|
echo "# Plug in your device or launch an emulator with cordova/emulate #"
|
||||||
|
echo "##################################################################"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function launch {
|
function launch {
|
||||||
@ -75,16 +78,7 @@ function launch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function BOOM {
|
function BOOM {
|
||||||
clean
|
clean && debug && launch
|
||||||
if [ $(check_devices) == 0 ] ; then
|
|
||||||
debug_install && launch
|
|
||||||
return
|
|
||||||
else
|
|
||||||
debug
|
|
||||||
echo "##################################################################"
|
|
||||||
echo "# Plug in your device or launch an emulator with cordova/emulate #"
|
|
||||||
echo "##################################################################"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO parse arguments
|
# TODO parse arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user