ohos: Bump napi-ohos (#34160)

Update napi-ohos and migrate away from deprecated `JsFunction`
and use the new `Function` and `build_threadsafe_function()`
methods.

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
This commit is contained in:
Jonathan Schwender 2024-11-10 04:34:07 +01:00 committed by GitHub
parent 5e2c7908d0
commit dcb9058fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 46 deletions

View file

@ -87,7 +87,7 @@ env_filter = "0.1.2"
ipc-channel = { workspace = true, features = ["force-inprocess"] }
hilog = "0.1.1"
napi-derive-ohos = "1.0.1"
napi-ohos = "0.1"
napi-ohos = "1.0.1"
ohos-sys = { version = "0.4.0", features = ["xcomponent"] }
ohos-vsync = "0.1.2"