1# Integrated HSP
2
3The integrated HSP is an intermediate build product of the intra-app HSP. It aims to solve the strong coupling between the bundle name and signature of the user.
4> **NOTE**
5> The HSP can be used only by projects with the same bundle name, but the integrated HSP can be used by projects with different bundle names.
6
7## Development Instructions
81. Project configuration for creators: Normalized OHMUrl format should be used in the integrated HSP. Creator needs to modify the project-level build configuration file **build-profile.json5** and set **useNormalizedOHMUrl** to **true** to enable the normalized OHMUrl format.
9
10    ```json
11    // created_party_project/build-profile.json5
12    {
13      "app": {
14        "products": {
15          "name": "default",
16          "signingConfig": "default",
17          "compatibleSdkVersion": "5.0.0(12)",
18          "runtimeOS": "HarmonyOS",
19          "buildOption": {
20            "strictMode": {
21              "useNormalizedOHMUrl": true
22            }
23          }
24        }
25      }
26    }
27    ```
282. Module configuration for creators: Modify the module-level build configuration file **build-profile.json5** and set **integratedHsp** to **true** to specify the HSP module to be built as the integrated HSP module.
29
30    ```json
31    // created_party_project/library/build-profile.json5
32    {
33      "apiType": "stageMode",
34      "buildOption": {
35        "arkOptions": {
36          "integratedHsp": true
37        }
38      }
39    }
40    ```
41
423. Packing configuration for creators (.tgz Package)
43
44    3.1 Configure project signature information. For details, see [Application/Service Signature](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V5/ide-signing-0000001587684945-V5).
45
46    3.2 Configure the release mode.
47
48    ![](./figures/ide-release-setting.png)
49
50    3.3 Select the **library** directory in **Build** -> **Make Module 'library'**.
51
524. Project dependency configuration for users: Add dependencies to the **oh-package.json5** configuration file in the main module.
53
54    ```json
55    // user_project/entry/oh-package.json5
56      "dependencies": {
57        "hsp": "./lib/library-default.tgz"
58      }
59    ```
60
615. Project configuration for users: Normalized OHMUrl format should be used in the integrated HSP. User needs to modify the project-level build configuration file **build-profile.json5** and set **useNormalizedOHMUrl** to **true** to enable the normalized OHMUrl format.
62
63    ```json
64    // user_project/build-profile.json5
65    {
66      "app": {
67        "products": {
68          "name": "default",
69          "signingConfig": "default",
70          "compatibleSdkVersion": "5.0.0(12)",
71          "runtimeOS": "HarmonyOS",
72          "buildOption": {
73            "strictMode": {
74              "useNormalizedOHMUrl": true
75            }
76          }
77        }
78      }
79    }
80    ```
81    > **NOTE**
82    > Before installing and running an application, the user must configure the project signature information. For details, see [App/Service Signature](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-signing-0000001587684945-V5).
83