• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Application Package Structure in FA Model
2
3
4To develop an application based on the [FA model](application-configuration-file-overview-fa.md), it is essential to understand the application package structure in this model.
5
6
7The difference between the application package structures in the FA model and stage model lies in where the internal files of a HAP file are stored. In the FA model, all the resource files, library files, and code files are stored in the **assets** folder, where the files are further organized.
8
9
10- **config.json** is an application configuration file, where the template code is automatically created by DevEco Studio. You can modify the configuration as required. For details about the fields in this file, see [Internal Structure of the app Tag](app-structure.md).
11
12- The **assets** folder is a collection of all the resource files, library files, and code files in a HAP file. It can be further organized into the **entry** folder and the **js** folder. The **entry** folder stores the **resources** folder and the **resources.index** file.
13
14- The **resources** folder stores resource files (such as strings and images) of the application. For details, see [Resource Categories and Access](resource-categories-and-access.md).
15
16- The **resources.index** file provides a resource index table, which is generated by DevEco Studio invoking the specific SDK tool.
17
18- The **js** folder stores code files created after compilation.
19
20- The **pack.info** file describes the HAP attributes in the bundle, for example, **bundleName** and **versionCode** in **app** and **name**, **type**, and **abilities** in **module**. The file is automatically generated when DevEco Studio generates the bundle.
21
22**Figure 1** Application package structure in FA model
23
24![app-pack-fa](figures/app-pack-fa.png)