| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| modules/entry/src/main/ets/ | 06-May-2025 | - | 163 | 110 | ||
| README.md | D | 06-May-2025 | 1.4 KiB | 30 | 23 | |
| filesInfo.rel.txt | D | 06-May-2025 | 543 | 4 | 3 |
README.md
1# DevEco Hello World Application 2 3This application intermediate representation is based on built-in DevEco's `Empty Ability` template. 4 5To reproduce the application scenario, the following steps can be applied: 6- Create new project at DevEco, select `Application -> Empty Ability` template. 7- build HAP (or just module named `entry` if defaults are used during project creation) 8- go to `$PROJECT_ROOT/entry/build/default/cache/default/default@CompileArkTS/esmodule/debug` 9- get `filesInfo.txt` file and `entry` directory contents with intermediate TS files 10- create `modules` directory and copy `entry` directory inside 11- copy `filesInfo.txt`, rename it to `filesInfo.rel.txt` and change absolute path prefix (like `/path/to/project/build/dir`) to relative `modules/` 12 13## Application structure 14 15``` 16|- filesInfo.rel.txt # generated fileInfo.txt with absolute path changed to relatives 17|- modules 18 |- entry # generated intermediate TS files for `entry` module 19``` 20 21## Building the application 22 23```(bash) 24# echo "generate fileInfo.txt for by extending its relative paths to absolute" 25export APP_DIR=`realpath $LIBABCKIT/tests/apps/deveco-hello-world`; BUILD_DIR=build; 26mkdir ${BUILD_DIR} 27awk '{ print ENVIRON["APP_DIR"]"/"$$0 }' ${APP_DIR}/filesInfo.rel.txt > ${BUILD_DIR}/filesInfo.txt 28es2abc --module --merge-abc --enable-annotations --output ${BUILD_DIR}/app.abc @${BUILD_DIR}/filesInfo.txt 29``` 30