update js lib
This commit is contained in:
parent
75303bcf61
commit
a7d7df0b4c
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -82,7 +82,7 @@
|
|||||||
{
|
{
|
||||||
"label": "ShowDebugLogcat",
|
"label": "ShowDebugLogcat",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "adb logcat --pid=`adb shell ps | grep com.cege.games.release | awk '{print $2}'`",
|
"command": "adb logcat '*:V AudioManagerExtImpl:S' -b all -v color --pid=$(adb shell pidof -s com.cege.games.release)",
|
||||||
"group": "test",
|
"group": "test",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always"
|
"reveal": "always"
|
||||||
|
File diff suppressed because one or more lines are too long
@ -7,6 +7,7 @@ function promiseCb(funId, promiseFun, dataParser) {
|
|||||||
jsb.jcCallback(funId, JSON.stringify({ errcode: 0, data: result }));
|
jsb.jcCallback(funId, JSON.stringify({ errcode: 0, data: result }));
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.log(JSON.stringify(err));
|
||||||
jsb.jcCallback(funId, JSON.stringify({ errcode: 1, errmsg: err }));
|
jsb.jcCallback(funId, JSON.stringify({ errcode: 1, errmsg: err }));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
5
scripts/debug.sh
Executable file
5
scripts/debug.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
./gradlew assembleDebug
|
||||||
|
./gradlew installDebug
|
||||||
|
adb shell am start com.cege.games.release/.MainActivity
|
||||||
|
sleep 3
|
||||||
|
adb logcat '*:V AudioManagerExtImpl:S' -b all -v color --pid=$(adb shell pidof -s com.cege.games.release)
|
Loading…
x
Reference in New Issue
Block a user