• Home
Name Date Size #Lines LOC

..--

AppScope/06-May-2025-4138

entry/06-May-2025-3,0952,882

hvigor/06-May-2025-55

screenshot/device/06-May-2025-

signature/06-May-2025-2828

.gitignoreD06-May-2025127 88

README.mdD06-May-2025953 3725

README_zh.mdD06-May-20253.5 KiB12089

build-profile.json5D06-May-20251.1 KiB4342

hvigorfile.jsD06-May-2025168 21

oh-package.json5D06-May-2025258 1313

README.md

1# kikainput
2
3#### Description
4{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
5
6#### Software Architecture
7Software architecture description
8
9#### Installation
10
111.  xxxx
122.  xxxx
133.  xxxx
14
15#### Instructions
16
171.  xxxx
182.  xxxx
193.  xxxx
20
21#### Contribution
22
231.  Fork the repository
242.  Create Feat_xxx branch
253.  Commit your code
264.  Create Pull Request
27
28
29#### Gitee Feature
30
311.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
322.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
333.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
344.  The most valuable open source project [GVP](https://gitee.com/gvp)
355.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
366.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
37

README_zh.md

1# 轻量级输入法
2
3### 简介
4
5kikainput是一个轻量级的输入法应用,支持在运行OpenHarmony OS的智能终端上。
6
7实现效果如下:
8
9![](screenshot/device/main.png)
10
11### 目录
12
13```
14├─AppScope
15│  │  app.json5                                        #应用配置文件
16│  └─resources
17│      └─base
18│          ├─element
19│          │      string.json
20│          │
21│          └─media
22app_icon.png
2324├─entry
25│  │  .gitignore
26│  │  build-profile.json5
27│  │  hvigorfile.js
28│  │  package.json
29│  │
30│  └─src
31│      └─main
32│          │  module.json5                             #项目配置文件
33│          │
34│          ├─ets
35│          │   ├─Application
36│          │   │     │  AbilityStage.ts
37│          │   │
38│          │   ├─model
39│          │   │     │  HardKeyUtils.ets
40│          │   │     │  KeyboardController.ets
41│          │   │     │  KeyboardKeyData.ets
42│          │   │
43│          │   ├─pages
44│          │   │    └─service
45│          │   │        └─pages
46│          │   │            │  index.ets
47│          │   │
48│          │   ├─ServiceExtAbility
49│          │   │     │  service.ts
50│          │   │     │  ServiceExtAbility.ts
51│          │   │
52│          │   └─test
53│          │       │  Ability.test.ets
54│          │       │  List.test.ets
55│          │
56│          └─resources
57│              ├─base
58│              │   ├─element
59│              │   │      string.json
60│              │   │
61│              │   ├─media
62│              │   │        icon.png
63│              │   │
64│              │   └─profile
65│              │           main_pages.json
66│              └─rawfile
67│                  │    delete.png
68│                  │    down.png
69│                  │    return.png
70│                  │    shift.png
71│                  │    shift light.png
72│                  │    shift light long.png
73
74```
75
76### 使用场景
77
78**支持语言:** JavaScript
79
80**操作系统限制:** OpenHarmony操作系统
81
82**模型限制:** Stage模型
83
84### 相关权限
85
86不涉及。
87
88### 开发步骤
89
90**1.样式布局,以及逻辑修改**
91
92找到pages/service/pages/index.ets文件进行布局修改。
93
94找到model/KeyboardController.ets文件进行逻辑修改。
95
96**2.配置签名文件然后进行打包**
97
98配置签名文件可以参照:[https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/hapsigntool-guidelines.md]
99
100### 约束与限制
101
1021.本示例仅支持在标准系统上运行。
103
1042.本示例为Stage模型,从API version 9开始支持。
105
1063.本示例已适配API version 14版本SDK,SDK版本号(API Version 14 Release),镜像版本号(5.0.2Release)。
107
1084.本示例需要使用DevEco Studio 版本号(5.0.2Release)及以上版本才可编译运行。
109
1105.如果安装本示例报错为error:install sign info inconsistent,则有可能本应用被设置为系统预置应用,已安装在系统中,此时需使用命令进行替换安装,并在替换安装后对设备进行重启操作,具体命令如下:
111
112hdc shell mount -o rw,remount /
113
114hdc file send ./entry-default-signed.hap /system/app/com.example.kikakeyboard/kikaInput.hap
115
116hdc shell  reboot
117
118等设备重启后即可完成应用的替换安装,无需其他操作。
119
120