Lines Matching refs:HAP
15 …mport can also implement partial reflection. In the following example, the HAP dynamically imports…
45 // HAP's oh-package.json5
52 // HAP's src/main/ets/pages/Index.ets
99 …show how to use this type of dynamic import expression to import a module or API into a HAP module.
115 // HAP's src/main/ets/pages/Index.ets
122 // HAP's oh-package.json5
140 // HAP's src/main/ets/pages/Index.ets
147 // HAP's oh-package.json5
165 // HAP's src/main/ets/pages/Index.ets
172 // HAP's oh-package.json5
190 // HAP's src/main/ets/pages/Index.ets
197 // HAP's oh-package.json5
206 // HAP's src/main/ets/pages/Index.ets
213 // HAP's oh-package.json5
222 // HAP's src/main/ets/pages/Index.ets
229 // HAP's oh-package.json5
235 - **Dynamically importing a file of the HAP module itself**
238 // HAP's src/main/ets/Calc.ets
241 console.info('DynamicImport I am a HAP, %d + %d = %d', a, b, c);
247 // HAP's src/main/ets/pages/Index.ets
253 - **Dynamically importing a native library of the HAP module itself**
261 // HAP's src/main/ets/pages/Index.ets
268 // HAP's oh-package.json5
277 // HAP's src/main/ets/pages/Index.ets
287 …local modules) or downloaded (remote modules), but are not built. During a HAP/HSP build, the depe…
292 …meOnly** field under **buildOption** in the **build-profile.json5** file of the HAP/HSP/HAR module.
334 // HAP's src/main/ets/pages/Index.ets
341 // HAP's oh-package.json5
347 // HAP's build-profile.json5
370 // HAP's src/main/ets/pages/Index.ets
377 // HAP's oh-package.json5
383 // HAP's build-profile.json5
398 // HAP's src/main/ets/pages/Index.ets
405 // HAP's oh-package.json5
411 // HAP's build-profile.json5
426 // HAP's src/main/ets/pages/Index.ets
433 // HAP's oh-package.json5
439 // HAP's build-profile.json5
451 - **Dynamically importing a file of the HAP module itself**
454 // HAP's src/main/ets/Calc.ets
457 console.info('DynamicImport I am a HAP, %d + %d = %d', a, b, c);
462 // HAP's src/main/ets/pages/Index.ets
469 // HAP's build-profile.json5
481 - **Dynamically importing a native library of the HAP module itself**
488 // HAP's src/main/ets/pages/Index.ets
495 // HAP's oh-package.json5
501 // HAP's build-profile.json5
516 // HAP's src/main/ets/pages/Index.ets
531 …ert dependency between HAR modules into dependency between HAR modules and HAP/HSP modules. In thi…
537 
544 …mple, in the case of HAP -> HSP1 -> HSP2 -> HSP3, dependency between HSP2 and HSP3 cannot be conve…
545 …HSP module is allowed between HAR modules. An incorrect use is as follows: HAP -> HAR1 -> HAR2 -> …
547 …sferred to a HAP, and the dependency of HAR 3 on HAR 4 can be transferred to an HSP. However, HAR3…
552 In the following example, the HAP dynamically imports HAR module har1 based on the module name vari…
555 // HAP's oh-package.json5
561 // HAP's build-profile.json5
573 // HAP's src/main/ets/pages/Index.ets
627 The **dependencies** and **runtimeOnly** configurations of har1 on har2 are transferred to the HAP.…
630 // HAP's oh-package.json5
637 // HAP's build-profile.json5
650 // HAP's src/main/ets/pages/Index.ets