• Home
Name Date Size #Lines LOC

..--

AppScope/12-May-2024-4138

entry/12-May-2024-2,8862,559

screenshot/device/12-May-2024-

signature/12-May-2024-2828

.gitignoreD12-May-2024121 88

README.mdD12-May-2024953 3725

README_zh.mdD12-May-20243.8 KiB12290

build-profile.json5D12-May-20241 KiB4140

hvigorfile.jsD12-May-2024169 21

package.jsonD12-May-2024389 1818

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允许应用查询其他应用的信息:ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
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.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
107
1084.本示例由于接口问题暂时去除编译校验检验。
109
1105.本示例需要使用@ohos.application.InputMethodExtensionAbility系统权限的系统接口。使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)111
1126.如果安装本示例报错为error:install sign info inconsistent,则有可能本应用被设置为系统预置应用,已安装在系统中,此时需使用命令进行替换安装,并在替换安装后对设备进行重启操作,具体命令如下:
113
114hdc shell mount -o rw,remount /
115
116hdc file send ./entry-default-signed.hap /system/app/com.example.kikakeyboard/kikaInput.hap
117
118hdc shell  reboot
119
120等设备重启后即可完成应用的替换安装,无需其他操作。
121
122