@react-native-ohos/react-native-keyboard-controller 1.12.8-rc.6 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony/keyboard_controller/BuildProfile.ets +16 -16
- package/harmony/keyboard_controller/Index.ets +24 -3
- package/harmony/keyboard_controller/oh-package-lock.json5 +2 -3
- package/harmony/keyboard_controller/oh-package.json5 +1 -1
- package/harmony/keyboard_controller/src/main/cpp/EventEmitters.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentDescriptor.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.cpp +122 -6
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.h +30 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewJSIBinder.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentDescriptor.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.cpp +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaJSIBinder.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.cpp +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardControllerPackage.cpp +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardControllerPackage.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.cpp +24 -3
- package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.h +24 -3
- package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.cpp +186 -0
- package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.h +112 -0
- package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.cpp +24 -3
- package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.h +24 -3
- package/harmony/keyboard_controller/src/main/ets/Logger.ts +24 -3
- package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerPackage.ets +29 -5
- package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerTurboModule.ts +38 -3
- package/harmony/keyboard_controller/src/main/ets/RNStatusBarManagerCompatTurboModule.ts +24 -3
- package/harmony/keyboard_controller/src/main/ets/Type.ts +24 -3
- package/harmony/keyboard_controller/ts.ets +24 -3
- package/harmony/keyboard_controller.har +0 -0
- package/lib/commonjs/animated.js +14 -11
- package/lib/commonjs/animated.js.map +1 -1
- package/lib/commonjs/constants.js +2 -0
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/module/animated.js +14 -11
- package/lib/module/animated.js.map +1 -1
- package/lib/module/constants.js +2 -0
- package/lib/module/constants.js.map +1 -1
- package/package.json +3 -2
- package/src/animated.tsx +12 -8
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/.ts_checker_cache +0 -5166
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo.linter +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/compileInfo.json +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Index.ets-96716712ed80a95f9b3cb8c16433a37c.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Logger.ts-21e5e905df1c99fc6e6ca37bbbfcb51e.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RNKeyboardControllerPackage.ets-c2108552e32e54da4e2ee2cd039239a4.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RNKeyboardControllerTurboModule.ts-7c42679e7e488d1a60c8b4d54f079abb.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RNStatusBarManagerCompatTurboModule.ts-c9b80946df3cc584c8042691aeb9fbb1.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Type.ts-8709f2f912199ff74f40eb894b697a77.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/ts.ets-70cab636273e777c0f945b068fe2fec4.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/other/pkgName2SourceRoots.msgpack +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/plugins/plugins.msgpack +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/dep_info.json +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/BuildProfile.ets +0 -17
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/Index.ets +0 -9
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/ResourceTable.txt +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/build-profile.json5 +0 -31
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/consumer-rules.txt +0 -0
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/hvigorfile.ts +0 -6
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/obfuscation-rules.txt +0 -18
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/oh-package-lock.json5 +0 -20
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/oh-package.json5 +0 -1
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/CMakeLists.txt +0 -7
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/EventEmitters.cpp +0 -96
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/EventEmitters.h +0 -90
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardControllerViewComponentDescriptor.h +0 -77
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardControllerViewComponentInstance.cpp +0 -158
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardControllerViewComponentInstance.h +0 -74
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardControllerViewJSIBinder.h +0 -43
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardGestureAreaComponentDescriptor.h +0 -64
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardGestureAreaComponentInstance.cpp +0 -89
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardGestureAreaComponentInstance.h +0 -63
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/KeyboardGestureAreaJSIBinder.h +0 -39
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNKeyboardController.cpp +0 -25
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNKeyboardController.h +0 -27
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNKeyboardControllerPackage.cpp +0 -43
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNKeyboardControllerPackage.h +0 -56
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNStatusBarManagerCompat.cpp +0 -24
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/RNStatusBarManagerCompat.h +0 -28
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/keyboardControllerPackage.cpp +0 -43
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/cpp/keyboardControllerPackage.h +0 -56
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/ets/Logger.ts +0 -46
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/ets/RNKeyboardControllerPackage.ets +0 -46
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/ets/RNKeyboardControllerTurboModule.ts +0 -210
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/ets/RNStatusBarManagerCompatTurboModule.ts +0 -98
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/ets/Type.ts +0 -41
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/module.json +0 -32
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/resources/base/element/string.json +0 -8
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/resources/en_US/element/string.json +0 -8
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/src/main/resources/zh_CN/element/string.json +0 -8
- package/harmony/keyboard_controller/build/default/cache/default/default@PackageHar/ts.ets +0 -9
- package/harmony/keyboard_controller/build/default/generated/pm/default/oh-package.json5 +0 -1
- package/harmony/keyboard_controller/build/default/generated/r/default/ResourceTable.h +0 -24
- package/harmony/keyboard_controller/build/default/intermediates/loader/default/loader.json +0 -28
- package/harmony/keyboard_controller/build/default/intermediates/merge_profile/default/module.json +0 -29
- package/harmony/keyboard_controller/build/default/intermediates/patch/default/base_native_libs.json +0 -1
- package/harmony/keyboard_controller/build/default/intermediates/process_profile/default/module.json +0 -32
- package/harmony/keyboard_controller/build/default/intermediates/res/default/ResourceTable.txt +0 -1
- package/harmony/keyboard_controller/build/default/intermediates/res/default/ark_module.json +0 -1
- package/harmony/keyboard_controller/build/default/intermediates/res/default/ids_map/id_defined.json +0 -7
- package/harmony/keyboard_controller/build/default/intermediates/res/default/module.json +0 -28
- package/harmony/keyboard_controller/build/default/intermediates/res/default/opt-compression.json +0 -1
- package/harmony/keyboard_controller/build/default/intermediates/res/default/resConfig.json +0 -1
- package/harmony/keyboard_controller/build/default/intermediates/res/default/resources.index +0 -0
- package/harmony/keyboard_controller/build/default/outputs/default/keyboard_controller.har +0 -0
- package/react-native-keyboard-controller.podspec +0 -61
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
-
*/
|
|
4
|
-
export const HAR_VERSION = '1.12.
|
|
5
|
-
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
-
export const DEBUG = true;
|
|
7
|
-
export const TARGET_NAME = 'default';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
-
*/
|
|
12
|
-
export default class BuildProfile {
|
|
13
|
-
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
-
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
-
static readonly DEBUG = DEBUG;
|
|
16
|
-
static readonly TARGET_NAME = TARGET_NAME;
|
|
1
|
+
/**
|
|
2
|
+
* Use these variables when you tailor your ArkTS code. They must be of the const type.
|
|
3
|
+
*/
|
|
4
|
+
export const HAR_VERSION = '1.12.7-0.0.5';
|
|
5
|
+
export const BUILD_MODE_NAME = 'debug';
|
|
6
|
+
export const DEBUG = true;
|
|
7
|
+
export const TARGET_NAME = 'default';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* BuildProfile Class is used only for compatibility purposes.
|
|
11
|
+
*/
|
|
12
|
+
export default class BuildProfile {
|
|
13
|
+
static readonly HAR_VERSION = HAR_VERSION;
|
|
14
|
+
static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
|
|
15
|
+
static readonly DEBUG = DEBUG;
|
|
16
|
+
static readonly TARGET_NAME = TARGET_NAME;
|
|
17
17
|
}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
import { RNKeyboardControllerPackage } from './src/main/ets/RNKeyboardControllerPackage'
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"packages": {
|
|
12
12
|
"@rnoh/react-native-openharmony@../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har": {
|
|
13
|
-
"name": "",
|
|
13
|
+
"name": "@rnoh/react-native-openharmony",
|
|
14
14
|
"version": "0.72.59",
|
|
15
|
-
"
|
|
16
|
-
"resolved": "",
|
|
15
|
+
"resolved": "../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har",
|
|
17
16
|
"registryType": "local"
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_EVENTEMITTERS_H
|
package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentDescriptor.h
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_KEYBOARDCONTROLLERVIEWCOMPONENTDESCRIPTOR_H
|
package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.cpp
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#include "KeyboardControllerViewComponentInstance.h"
|
|
8
29
|
#include <folly/dynamic.h>
|
|
9
30
|
#include <iostream>
|
|
31
|
+
#include <arkui/native_interface_focus.h>
|
|
10
32
|
|
|
11
33
|
namespace rnoh {
|
|
12
34
|
using KeyboardControllerStatus = rnoh::KeyboardControllerStatus;
|
|
@@ -62,6 +84,13 @@ void KeyboardControllerViewComponentInstance::onMessageReceived(ArkTSMessage con
|
|
|
62
84
|
if (height > 0) {
|
|
63
85
|
this->keyboardStatus = KeyboardControllerStatus::SHOW;
|
|
64
86
|
this->keyboardHeight = height;
|
|
87
|
+
this->textInputVector.clear();
|
|
88
|
+
this->focusDidSet();
|
|
89
|
+
auto textInputVectorTemp = ViewHierarchyNavigator::getAllInputFields(this->shared_from_this());
|
|
90
|
+
for (size_t i = 0; i < textInputVectorTemp.size(); ++i) {
|
|
91
|
+
auto &input = textInputVectorTemp[i];
|
|
92
|
+
findTextInputComponents(input);
|
|
93
|
+
}
|
|
65
94
|
}
|
|
66
95
|
if (height == 0) {
|
|
67
96
|
this->keyboardStatus = KeyboardControllerStatus::HIDE;
|
|
@@ -69,7 +98,8 @@ void KeyboardControllerViewComponentInstance::onMessageReceived(ArkTSMessage con
|
|
|
69
98
|
this->keyboardHeightChangeHandle();
|
|
70
99
|
}
|
|
71
100
|
if (message.name == "setFocusTo") {
|
|
72
|
-
|
|
101
|
+
std::string direction = message.payload.getString();
|
|
102
|
+
this->setFocusTo(direction);
|
|
73
103
|
}
|
|
74
104
|
}
|
|
75
105
|
void KeyboardControllerViewComponentInstance::setWindowSystemBarEnable() {
|
|
@@ -147,12 +177,98 @@ void KeyboardControllerViewComponentInstance::onChange(std::string text) {
|
|
|
147
177
|
}
|
|
148
178
|
|
|
149
179
|
}
|
|
180
|
+
|
|
181
|
+
void KeyboardControllerViewComponentInstance::onChange(std::string text, std::string extendStr) {
|
|
182
|
+
onChange(std::move(text));
|
|
183
|
+
}
|
|
184
|
+
|
|
150
185
|
void KeyboardControllerViewComponentInstance::onTextSelectionChange(int32_t location, int32_t length) {
|
|
151
186
|
DLOG(INFO) << " onKeyboardControllerView onTextSelectionChange";
|
|
152
187
|
// to do
|
|
153
188
|
};
|
|
154
|
-
void KeyboardControllerViewComponentInstance::onFocus() { DLOG(INFO) << " onKeyboardControllerView onFocus"; }
|
|
155
|
-
void KeyboardControllerViewComponentInstance::onBlur() { DLOG(INFO) << " onKeyboardControllerView onBlur"; }
|
|
156
189
|
|
|
190
|
+
void KeyboardControllerViewComponentInstance::focusDidSet() {
|
|
191
|
+
int currentIndex = -1;
|
|
192
|
+
this->textInputVector = ViewHierarchyNavigator::getAllInputFields(this->shared_from_this());
|
|
193
|
+
int count = static_cast<int>(this->textInputVector.size());
|
|
194
|
+
for (size_t i = 0; i < this->textInputVector.size(); ++i) {
|
|
195
|
+
auto& input = this->textInputVector[i];
|
|
196
|
+
ArkUINode& node = input->getLocalRootArkUINode();
|
|
197
|
+
if (node.isFocused()) {
|
|
198
|
+
currentIndex = static_cast<int>(i);
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
this->textInputVector.clear();
|
|
203
|
+
// 发送 focusDidSet 事件到 JS 层
|
|
204
|
+
if (currentIndex >= 0 && this->enabled) {
|
|
205
|
+
auto rnInstancePtr = this->m_deps->rnInstance.lock();
|
|
206
|
+
if (rnInstancePtr != nullptr) {
|
|
207
|
+
folly::dynamic payload = folly::dynamic::object
|
|
208
|
+
("current", currentIndex)
|
|
209
|
+
("count", count);
|
|
210
|
+
rnInstancePtr->postMessageToArkTS("focusDidSet", payload);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
void KeyboardControllerViewComponentInstance::onFocus() {
|
|
216
|
+
DLOG(INFO) << "onKeyboardControllerView onFocus";
|
|
217
|
+
this->focusDidSet();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
void KeyboardControllerViewComponentInstance::onBlur() { DLOG(INFO) << " onKeyboardControllerView onBlur"; }
|
|
157
221
|
|
|
222
|
+
/**
|
|
223
|
+
* 设置焦点到指定方向的输入框
|
|
224
|
+
* 实现逻辑仿照 iOS ViewHierarchyNavigator.swift
|
|
225
|
+
* @param direction "next" | "prev"
|
|
226
|
+
*/
|
|
227
|
+
void KeyboardControllerViewComponentInstance::setFocusTo(const std::string& direction) {
|
|
228
|
+
// 确定当前焦点组件
|
|
229
|
+
this->textInputVector = ViewHierarchyNavigator::getAllInputFields(this->shared_from_this());
|
|
230
|
+
ComponentInstance::Shared currentFocus = nullptr;
|
|
231
|
+
for (size_t i = 0; i < this->textInputVector.size(); ++i) {
|
|
232
|
+
auto& input = this->textInputVector[i];
|
|
233
|
+
ArkUINode& node = input->getLocalRootArkUINode();
|
|
234
|
+
if (node.isFocused()) {
|
|
235
|
+
currentFocus = input;
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (!currentFocus) {
|
|
240
|
+
DLOG(INFO) << "no current focus available";
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
// 使用 ViewHierarchyNavigator 查找目标输入框
|
|
244
|
+
auto targetInput = ViewHierarchyNavigator::setFocusTo(direction, currentFocus);
|
|
245
|
+
if (targetInput) {
|
|
246
|
+
DLOG(INFO) << "setFocusTo: found target, requesting focus, tag=" << targetInput->getTag();
|
|
247
|
+
// 获取 ArkUI_NodeHandle 并请求焦点
|
|
248
|
+
ArkUINode& node = targetInput->getLocalRootArkUINode();
|
|
249
|
+
ArkUI_NodeHandle nodeHandle = node.getArkUINodeHandle();
|
|
250
|
+
ArkUI_ErrorCode result = ARKUI_ERROR_CODE_NO_ERROR;
|
|
251
|
+
high_lib_handle = dlopen("libace_ndk.z.so", RTLD_LAZY);
|
|
252
|
+
if (high_lib_handle == NULL) {
|
|
253
|
+
DLOG(INFO) << "libace_ndk.z.so not existed";
|
|
254
|
+
dlclose(high_lib_handle);
|
|
255
|
+
} else {
|
|
256
|
+
focusRequestMethod = (ArkUI_ErrorCode(*)(ArkUI_NodeHandle node))dlsym(high_lib_handle, "OH_ArkUI_FocusRequest");
|
|
257
|
+
bool isFocusRequestMethodExisted = focusRequestMethod != NULL;
|
|
258
|
+
if (isFocusRequestMethodExisted) {
|
|
259
|
+
DLOG(INFO) << "OH_ArkUI_FocusRequest method existed";
|
|
260
|
+
result = focusRequestMethod(nodeHandle);
|
|
261
|
+
} else {
|
|
262
|
+
DLOG(INFO) << "OH_ArkUI_FocusRequest method not existed";
|
|
263
|
+
}
|
|
264
|
+
dlclose(high_lib_handle);
|
|
265
|
+
}
|
|
266
|
+
if (!(result == ARKUI_ERROR_CODE_NO_ERROR)) {
|
|
267
|
+
DLOG(WARNING) << "setFocusTo: focus request failed with error code: " << result;
|
|
268
|
+
}
|
|
269
|
+
} else {
|
|
270
|
+
DLOG(INFO) << "setFocusTo: no target input found in direction " << direction;
|
|
271
|
+
}
|
|
272
|
+
this->textInputVector.clear();
|
|
273
|
+
}
|
|
158
274
|
} // namespace rnoh
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef KEYBOARDCONTROLLERVIEWCOMPONENTINSTANCE_H
|
|
@@ -18,6 +39,7 @@
|
|
|
18
39
|
#include "RNOH/ArkTSMessageHub.h"
|
|
19
40
|
#include "RNOH/arkui/TextInputNode.h"
|
|
20
41
|
#include "RNOH/arkui/TextAreaNode.h"
|
|
42
|
+
#include "ViewHierarchyNavigator.h"
|
|
21
43
|
|
|
22
44
|
namespace rnoh {
|
|
23
45
|
enum KeyboardControllerStatus { HIDE = 0, SHOW = 1 };
|
|
@@ -46,6 +68,7 @@ public:
|
|
|
46
68
|
void onClick() override;
|
|
47
69
|
// textArea textInput delegate
|
|
48
70
|
void onChange(std::string text) override;
|
|
71
|
+
void onChange(std::string text, std::string extendStr) override;
|
|
49
72
|
void onBlur() override;
|
|
50
73
|
void onFocus() override;
|
|
51
74
|
void onTextSelectionChange(int32_t location, int32_t length) override;
|
|
@@ -66,6 +89,10 @@ private:
|
|
|
66
89
|
void startKeyboardObserver();
|
|
67
90
|
void closeKeyboardObserver();
|
|
68
91
|
void keyboardHeightChangeHandle();
|
|
92
|
+
void setFocusTo(const std::string& direction);
|
|
93
|
+
void focusDidSet();
|
|
94
|
+
void *high_lib_handle = NULL;
|
|
95
|
+
ArkUI_ErrorCode (*focusRequestMethod)(ArkUI_NodeHandle node);
|
|
69
96
|
};
|
|
70
97
|
} // namespace rnoh
|
|
71
98
|
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_KEYBOARDCONTROLLERVIEWJSIBINDER_H
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_KEYBOARDGESTUREAREACOMPONENTDESCRIPTOR_H
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#include "KeyboardGestureAreaComponentInstance.h"
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef KEYBOARDGESTUREAREACOMPONENTINSTANCE_H
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_KEYBOARDGESTUREAREAJSIBINDER_H
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#ifndef TESTER_HARMONY_KEYBOARD_CONTROLLER_SRC_MAIN_CPP_RNKEYBOARDCONTROLLER_H
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Copyright (C) 2024 Huawei Device Co., Ltd.
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
* furnished to do so, subject to the following conditions:
|
|
15
|
+
*
|
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
* copies or substantial portions of the Software.
|
|
18
|
+
*
|
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
* SOFTWARE.
|
|
5
26
|
*/
|
|
6
27
|
|
|
7
28
|
#include "RNKeyboardControllerPackage.h"
|