update js lib

This commit is contained in:
zhl 2023-05-16 14:56:34 +08:00
parent 75303bcf61
commit a7d7df0b4c
4 changed files with 19 additions and 13 deletions

2
.vscode/tasks.json vendored
View File

@ -82,7 +82,7 @@
{
"label": "ShowDebugLogcat",
"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",
"presentation": {
"reveal": "always"

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@ function promiseCb(funId, promiseFun, dataParser) {
jsb.jcCallback(funId, JSON.stringify({ errcode: 0, data: result }));
})
.catch((err) => {
console.log(JSON.stringify(err));
jsb.jcCallback(funId, JSON.stringify({ errcode: 1, errmsg: err }));
});
}

5
scripts/debug.sh Executable file
View 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)