diff --git a/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 b/ArkUIKit/NdkEventDistribution/InjectTouchEvent/oh-package.json5 index 543bc290dcfdb64d249a363a0c1d3e4a756ef0f0..a9894f87f471f3cf854c964fdb1820a1b702e216 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 0b215785067027309eb743cae4a71fb67823260d..ff76a2e38c8a83f78d6167773714a5a814ff6437 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 543bc290dcfdb64d249a363a0c1d3e4a756ef0f0..a9894f87f471f3cf854c964fdb1820a1b702e216 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" } }