Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
docs/ | 12-May-2024 | - | 112 | 59 | ||
resources/ | 12-May-2024 | - | 46 | 22 | ||
src/com/sk/service/ | 12-May-2024 | - | 1,560 | 1,012 | ||
README_zh.md | D | 12-May-2024 | 2.6 KiB | 95 | 57 |
README_zh.md
1# SERVICE框架生成工具IntelliJ插件说明(暂不支持) 2 3## 简介 4 5SERVICE框架生成工具,根据用户提供的.h头文件,工具会自动生成整个Service框架的代码。目前工具支持可执行文件、VS Code插件、IntelliJ插件三种入口,本文主要介绍IntelliJ插件使用说明。 6 7## 目录 8 9 ├── service # SERVICE框架生成工具 10 │ ├── ... # 其他文件 11 │ ├── service_IntelliJ_plugin # IntelliJ插件代码 12 │ │ ├── docs # IntelliJ插件说明 13 │ │ ├── resources # IntelliJ插件说明 14 │ │ ├── src # IntelliJ插件源码 15 │ │ └── README_zh # IntelliJ插件说明 16 17## 约束 18 19系统:不限 20 21依赖版本:JDK 11 22 23开发工具:DevEco stdio、IDEA Community 2021.3.3 24 25## 使用方法 26 27### 使用对象 28 29系统开发者 30 31### 使用场景 32 331)移植CMakeLists.txt编译方式的三方库到OpenHarmony源码中。 34 35### 工具使用 36 37插件下载路径如下: 38 39[下载链接](暂无) 40 41具体的工具使用步骤,可以左键单击以下链接了解: 42 43[工具使用说明](https://gitee.com/openharmony/napi_generator/tree/master/hdc/service/service_IntelliJ_plugin/docs/INSTRUCTION_ZH.md) 44 45### 工具输出 46 47根据使用者指定的.h头文件,工具会输出SERVICE框架代码。为了方便使用者快速上手工具,可供测试的.h文件内容如下所示: 48 49``` 50 51 #ifndef EXAM_H 52 #define EXAM_H 53 using namespace std; 54 55 namespace OHOS{ 56 namespace Example{ 57 class Exam{ 58 public: 59 std::string getServName(); 60 int32_t doSum(int32_t num1, int32_t num2); 61 }; 62 } 63 } 64 #endif 65``` 66 67在window环境下的,根据输入.h文件生成的输出文件,如下所示: 68 69 70 71## 开发说明 72 73### 对象 74 75工具的开发者 76 77### 开发场景 78 79若当前工具的功能已经不能满足开发者的全部需求,则开发者可以基于已有的源码对工具进行二次开发,来增强工具的能力,编译打包生成自定义的可执行文件和插件。 80 81### 开发步骤 82 83开发者可以根据如下的步骤来完成对工具IntelliJ插件的开发: 84 85[工具开发说明](https://gitee.com/openharmony/napi_generator/tree/master/hdc/service/service_IntelliJ_plugin/docs/DEVELOP_ZH.md) 86 87## FAQ 88 89对于常见问题解决方法指导如下: 90 91[FAQ](https://gitee.com/openharmony/napi_generator/tree/master/hdc/service/FAQ.md) 92 93## 相关仓 94 95暂无