From e0de4f5b353df72658d571a401ca646f71254b2b Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Wed, 29 Mar 2023 14:32:49 +0800 Subject: [PATCH] fixed 39ac851 from https://gitee.com/esterzhou/docs/pulls/16655 Update docs (16420) Signed-off-by: ester.zhou --- en/application-dev/quick-start/har-package.md | 2 +- en/application-dev/quick-start/in-app-hsp.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/quick-start/har-package.md b/en/application-dev/quick-start/har-package.md index 71cc22a71f..63b5fcfd10 100644 --- a/en/application-dev/quick-start/har-package.md +++ b/en/application-dev/quick-start/har-package.md @@ -30,7 +30,7 @@ When obfuscation is enabled, DevEco Studio compiles, obfuscates, and compresses - The HAR of the stage model cannot reference content in the **AppScope** folder. This is because the content in the **AppScope** folder is not packaged into the HAR during compilation and building. ## Exporting ArkUI Components, APIs, and Resources of the HAR -The **index.ets** file acts as the entry of the HAR export declaration file and is where the HAR exports APIs. This file is automatically generated by DevEco Studio by default. You can specify another file as the entry declaration file in the **main** field in the **package.json** file of the module. The code snippet is as follows: +The **index.ets** file acts as the entry of the HAR export declaration file and is where the HAR exports APIs. This file is automatically generated by DevEco Studio by default. You can specify another file as the entry declaration file in the **main** field in the **oh-package.json5** file of the module. The code snippet is as follows: ```json { "main": "index.ets" diff --git a/en/application-dev/quick-start/in-app-hsp.md b/en/application-dev/quick-start/in-app-hsp.md index 05380e9c6f..cdd06b5dfb 100644 --- a/en/application-dev/quick-start/in-app-hsp.md +++ b/en/application-dev/quick-start/in-app-hsp.md @@ -15,7 +15,7 @@ library │ │ └── index.ets │ ├── resources │ └── module.json5 -└── package.json +└── oh-package.json5 ``` In the **module.json5** file, set **type** to **shared** for the HSP. ```json @@ -24,7 +24,7 @@ In the **module.json5** file, set **type** to **shared** for the HSP. } ``` -The HSP provides capabilities for external systems by exporting APIs in the entry file. Specify the entry file in **main** in the **package.json** file. For example: +The HSP provides capabilities for external systems by exporting APIs in the entry file. Specify the entry file in **main** in the **oh-package.json5** file. For example: ```json { "main": "./src/main/ets/index.ets" @@ -103,9 +103,9 @@ export { nativeMulti } from './utils/nativeTest' ``` ## Using the In-Application HSP -To use APIs in the HSP, first configure the dependency on the HSP in the **package.json** file of the module that needs to call the APIs (called the invoking module). If the HSP and the invoking module are in the same project, the APIs can be referenced locally. The sample code is as follows: +To use APIs in the HSP, first configure the dependency on the HSP in the **oh-package.json5** file of the module that needs to call the APIs (called the invoking module). If the HSP and the invoking module are in the same project, the APIs can be referenced locally. The sample code is as follows: ```json -// entry/src/main/module.json5 +// entry/oh-package.json5 "dependencies": { "library": "file:../library" } -- GitLab