Lines Matching refs:names

5 …ication hacking as well as the application package size by shortening class names and member names.
9 … mode](#usage-description), and obfuscation is limited to parameter names and local variable names.
30 …apabilities deteriorate performance. You can use code obfuscation to obfuscate the following names:
32 * Parameter names and local variable names
33 * Top-level scope names
34 * Property names
35 * Exported names
36 * File names
38names and local variable names will be obfuscated by default. No option needs to be configured. Ob…
95 …tion capabilities, such as obfuscation of top-level scope names, property names, and file names. T…
109 Enables property obfuscation. If this option is used, all property names except the following are o…
111 * Property names of classes and objects that are directly imported or exported by using the **impor…
119 * Property names in ArkUI components. For example, **message** and **data** in the following exampl…
129 * Property names specified by [keep options](#keep-options).
130 * Property names in the SDK API list. The SDK API list is a name set automatically extracted from t…
131 * String literal property names. For example, **"name"** and **"age"** in the following example are…
147 …t to use the **-enable-string-property-obfuscation** option because these names may fail to be kep…
159 …on** option is used, use the keep option if you want to keep the property names of the SDK API str…
163 Enables top-level scope name obfuscation. If this option is used, all names of all top-level scopes…
165 * Top-level scope names imported or exported using the **import** or **export** statement.
166 * Top-level scope names that are not declared in the current file.
167 * Top-level scope names specified by [keep options](#keep-options).
168 * Top-level scope names in the SDK API list.
172 Enables file or folder name obfuscation. If this option is used, all file/folder names will be conf…
183 * File or folder names specified by the **main** and **types** fields in the **oh-package.json5** f…
184 * File or folder names specified by the **srcEntry** field in the **module.json5** file of the modu…
185 * File or folder names specified by [-keep-file-name](#keep-options).
186 * File or folder names in non-ECMAScript module reference mode. An ECMAScript module example is **i…
187 * File or folder names in non-path reference mode. For example, **json5** in the example **import m…
199names of the compilation entry file, ability component file, and worker multithreaded file cannot …
203 …uscation for names of classes or objects that are directly imported or exported and their property…
205 …s exported from remote HARs (packages whose real paths are in oh_modules) and their property names.
206 * Names and property names specified by [keep options](#keep-options).
211 1. To obfuscate property names in imported or exported classes, use both the **-enable-property-obf…
253 Reuses the specified name cache file. The names will be obfuscated according to the cache mappings.…
268 #### -print-kept-names *filepath*
286 (5) 'export': names and properties exported.
292 The **keptNames.json** file contains the names that are not obfuscated and the reasons why they are…
296 …ed and attribute obfuscation is enabled, the'enum' whitelist collects the member names in the enum.
307 …hen attribute obfuscation is enabled, you need to collect the enum member names as a whitelist. Th…
309 …tribute obfuscation is enabled, the'enum' whitelist collects the variable names contained in the i…
327 Keeps the specified property names from being obfuscated. Name wildcards are supported. An example …
342 What property names should be kept?
365 console.log(obj['t']); // When obfuscation of string literal property names is enabled, both…
368 console.log(obj['v']); // When obfuscation of string literal property names is enabled, 'v' …
371 …f you do not want to obfuscate property names, use [keep options](#keep-options) to keep them. For…
402 … is compiled or the source code contains @ts-ignore and @ts-nocheck). The names of the member vari…
422 Keep the top-level scope names from being obfuscated. Name wildcards are supported. Example:
430 The names exported from the namespace can also be retained using -keep-global-name.
441 … top-level scope names or export names exist in the code, they will not be confused as long as the…
443 What top-level scope names should be kept?
474 Keeps the file or folder names from being obfuscated. You do not need to specify the file name exte…
482 What file names should be kept?
526 …ons, namespaces, enums, structs, interfaces, modules, types, and property names in the declaration…
537names, class names, and attribute names) in the .d.ts file of the specified path are added to the …
541 Keeps all names (such as variable names, class names, and property names) in the specified relative…
553 1. For files retained by -keep filepath, the exported names and attributes in the files on the depe…
569 Keep all property names that start with **a**.
576 Keep all single-character property names.
583 Keep all property names.
660 In this example, * indicates any number of characters, and all property names are kept (not obfusca…
674 -keep-property-name # white list for dynamic property names
771 The function names of an application project after obfuscation are changed. As a result, the stack …
790 | -enable-string-property-obfuscation | Enables obfuscation for string literal property names.| 4.0…
793 | -enable-export-obfuscation | Enables obfuscation for imported or exported names.| 4.1.5.3 |
799 | -keep-property-name | Keeps property names from being obfuscated.| 4.0.9.2 |
800 | -keep-global-name | Keeps top-level scope names from being obfuscated.| 4.0.9.2 |
801 …name | Keeps file or folder names in the HAR from being obfuscated.<br> Keeps file or…
802 | -keep-dts | Keeps the names in the .d.ts file in the specified path from being…
804 | -keep | Keeps all names in the specified path from being obfuscated.| 5.0.…
813 …, named **nameCache.json**, records the mappings between source code names and names after obfusca…
814 …ustlist file, named **systemApiCache.json**, records the APIs and property names that will be kept.
823 …erty-name](#keep-options) to configure a trustlist for specified property names in scenarios where…
824names from being obfuscated. Generally, this option is used together with the preceding two option…
825 …: keeps file names from being obfuscated. You need to use [-keep-file-name](#keep-options) to conf…
830 … advised to check the build product based on the crash stack, analyze the names that cannot be obf…
864 …the code. During obfuscation, the field names in the SQL statements are obfuscated, but the origin…
874 | HAP/HSP | HSP | The HSP and main module are built independently, and different names are gene…
875 …| The local HAR is built together with the main module. After obfuscation, the names are the same.|
876 | HAP/HSP | Third-party library | The names and properties exported from a third-party library are …
993 …code HAR module, the same file name may be obfuscated into different file names in the HAP and HSP…
994 …ecuted independently. In the local source code HAR module, different file names may be obfuscated …
996 …osed in the HAR module of the local source code are obfuscated into different names in HAP and HSP.