目录

Creating a Quick App Project

  1. You can access the page for creating a quick app project in any of the following ways:
    • Open Huawei Quick App IDE, and go to New Project > Quick App on the welcome page.
    • On the home page, go to File > New Project > Quick App.
    • On the home page, press Ctrl+Shift+N.

  2. Select a platform and a device, and click Next.
  3. Select a template and click Next.

  4. Configure the quick app project information and click Ok.
    • App Name: The app name is the same as that saved on AppGallery. It is used to display the app name on the home screen and in pop-ups. The app name can be set to a multi-language character string.
    • Package Name: Ensure that the package name is different from that of the native app. The recommended format is com.company.module. The package name consists of digits, letters, and dots (.), and must start with a letter and end with a digit or letter. The package name length cannot exceed 255 bytes.
    • WorkSpace: folder where the project is located after being created.

After the project is initialized successfully, a standard project is generated in the project directory.

|—— .quickapp Directory for storing configuration files.

| |—— launch.json Configuration file.

|—— src Directory for storing source files of the project.

| |—— Common Public resource files and component files.

| |—— logo.png Icon set in manifest.json.

| |—— Hello Page directory.

| |—— hello.ux Page file, whose name does not need to be the same as that of the directory.

| |—— i18n Resource definition files.

| |—— en-US.json Resource definition file for English.

| |—— zh-CN.json Resource definition file for Chinese.

| |—— app.ux App file, which is automatically modified. Do not modify this file.

| |—— manifest.json Configuration file of the project, including the app description, API declaration, and page routing.