diff --git a/ets2panda/public/es2panda_lib.idl.erb b/ets2panda/public/es2panda_lib.idl.erb index 4b8d6c0261180889855a8d57510e8067e0e0e22b..56f82661069d7e324abdcbecb7775f6e8c8ed467 100644 --- a/ets2panda/public/es2panda_lib.idl.erb +++ b/ets2panda/public/es2panda_lib.idl.erb @@ -148,6 +148,13 @@ dictionary es2panda_PluginDiagnosticType { i32 ES2PANDA_PLUGIN_SUGGESTION = 2; }; +dictionary Es2pandaLanguage { + i32 LANGUAGE_AS = 0; + i32 LANGUAGE_JS = 1; + i32 LANGUAGE_TS = 2; + i32 LANGUAGE_ETS = 3; +}; + [Entity=Class] interface VoidPtr {}; // void * diff --git a/ets2panda/scripts/arkui-setup.sh b/ets2panda/scripts/arkui-setup.sh index fbb054131fd8ab3f8dc75b4f42118d588c4e9f9e..bf486df8c872d31767c8e1c48b6165362ac02c88 100755 --- a/ets2panda/scripts/arkui-setup.sh +++ b/ets2panda/scripts/arkui-setup.sh @@ -159,6 +159,14 @@ function run_script() { fi } +function skip_linker_verification_error() { + npm run $1 | tee out.txt + ERROR_MESSAGE="$(grep 'Error:' out.txt)" + if [[ -n "${ERROR_MESSAGE}" && "${ERROR_MESSAGE}" != *"LinkerVerificationError:"* ]] ; then + exit 1 + fi +} + export ENABLE_BUILD_CACHE=0 # Compile libarkts @@ -174,7 +182,7 @@ popd >/dev/null 2>&1 || exit 1 # run_script "all --prefix ui2abc" run_script "build:all --prefix ui2abc" -run_script "build:deps --prefix ets-tests" +run_script "build:deps --prefix ui2abc/ets-tests" if [ -z "${DEMO}" ] ; then echo "Just compiled ArkUI, but no demo specified." @@ -186,7 +194,7 @@ case "${DEMO}" in run_script "run:node --prefix arkoala-arkts/shopping/user" ;; "trivial") - run_script "run --prefix arkoala-arkts/trivial/user" + skip_linker_verification_error "run --prefix arkoala-arkts/trivial/user" ;; "empty") ;; diff --git a/ets2panda/scripts/arkui.properties b/ets2panda/scripts/arkui.properties index dbe231e9e7b7a434434d10b8795e53132180bb40..7f0cf795d6fc08a4c06153255f150ddd2741e69f 100644 --- a/ets2panda/scripts/arkui.properties +++ b/ets2panda/scripts/arkui.properties @@ -1,3 +1,3 @@ ARKUI_DEV_REPO=https://gitee.com/rri_opensource/koala_projects.git -ARKUI_DEV_BRANCH=panda_rev_10-ani-remove-module-find +ARKUI_DEV_BRANCH=panda_rev_11 ARKUI_DEST=koala-sig