You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using UnityEngine;namespacePuertsTest{publicclassJsCallCs:MonoBehaviour{voidStart(){
Debug.Log(">>>>>>>>>>>>>>>> hello world;");varjsEnv=new Puerts.JsEnv();
jsEnv.Eval(@" let gameObject = new CS.UnityEngine.GameObject('testObject'); CS.UnityEngine.Debug.Log(gameObject.name); throw new Error('aaaaa'); ");
jsEnv.Dispose();}voidOnDestroy(){}}}
v8以及quickjs的冒烟测试已经通过,测试代码如下:
1、Plugins下目录名为OpenHarmony,并且so设置好平台和架构(目录结构和设置的meta信息已经提交到github)
2、发该issue前,puerts尚未出含鸿蒙库的正式release,可以fork一份puerts的仓库,在github上的actions/unity publish那点击“Run workflow”自行构建;
3、Asserts目录下的.d.ts文件需删除,比如这个:https://github.com/Tencent/puerts/blob/master/unity/Assets/core/upm/Typing/puerts/index.d.ts ,否则可能导致出包报错
The text was updated successfully, but these errors were encountered: