From 7a7bff565972d2f6f7161151de544ac0c1d67d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=81=AA?= Date: Fri, 21 Nov 2025 18:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵聪 --- .../NdkEventDistribution/InjectTouchEvent/oh-package.json5 | 2 +- .../KeyEventFilter/entry/src/main/ets/pages/Index.ets | 4 ++-- ArkUIKit/NdkEventDistribution/KeyEventFilter/oh-package.json5 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 b/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 index 543bc290d..a9894f87f 100644 --- a/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 +++ b/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 @@ -5,6 +5,6 @@ }, "devDependencies": { "@ohos/hypium": "1.0.24", - "@ohos/hamock": "1.0.1-rc2" + "@ohos/hamock": "1.0.0" } } diff --git a/ArkUIKit/NdkEventDistribution/KeyEventFilter/entry/src/main/ets/pages/Index.ets b/ArkUIKit/NdkEventDistribution/KeyEventFilter/entry/src/main/ets/pages/Index.ets index 0b2157850..ff76a2e38 100644 --- a/ArkUIKit/NdkEventDistribution/KeyEventFilter/entry/src/main/ets/pages/Index.ets +++ b/ArkUIKit/NdkEventDistribution/KeyEventFilter/entry/src/main/ets/pages/Index.ets @@ -24,14 +24,14 @@ struct Index { Button('注册过滤回调函数') .width('100%') .onClick(() => { - let ret = testNapi.registerFilter(this.windowId); + let ret: number = testNapi.registerFilter(this.windowId!); this.registerResult = ret == 0? 'success' : 'fail'; hilog.info(0x0000, 'testTag', 'registerFilter ret:', ret); }) Button('取消过滤回调函数') .width('100%') .onClick(() => { - let ret = testNapi.clearFilter(this.windowId); + let ret: number = testNapi.clearFilter(this.windowId!); this.clearResult = ret == 0? 'success' : 'fail'; hilog.info(0x0000, 'testTag', 'clearFilter ret:', ret); }) diff --git a/ArkUIKit/NdkEventDistribution/KeyEventFilter/oh-package.json5 b/ArkUIKit/NdkEventDistribution/KeyEventFilter/oh-package.json5 index 543bc290d..a9894f87f 100644 --- a/ArkUIKit/NdkEventDistribution/KeyEventFilter/oh-package.json5 +++ b/ArkUIKit/NdkEventDistribution/KeyEventFilter/oh-package.json5 @@ -5,6 +5,6 @@ }, "devDependencies": { "@ohos/hypium": "1.0.24", - "@ohos/hamock": "1.0.1-rc2" + "@ohos/hamock": "1.0.0" } } -- Gitee