Configure PreEmptive Protection™ DashO™ Optimization from three pages in the DashO user interface: Optimization - Options, Optimization - Include, and Optimization - Exclude.
To learn how Optimization works, see Optimization.
Prerequisites
- A DashO project in Standard Mode. The Optimization pages are only available in Standard Mode.
Configure Optimization Options
- In the navigation tree, select Optimization.
- Select or clear Optimize Byte Codes.
- In Make Public, select Automatic, Never, or Always.
- Save your project and build it to apply the changes.
Optimization Options Settings
| Setting | Description |
| Optimize Byte Codes | Enables or disables Bytecode Optimization globally. Use include and exclude rules to limit which code DashO optimizes. |
| Make Public |
Controls when DashO makes classes and members public:
|
For more information, see Optimization.
Choose Which Code to Optimize
Use the Optimization - Include and Optimization - Exclude pages to select the methods, classes, or entire packages DashO optimizes. Both pages use the DashO rules editor. For details on creating, editing, and previewing rules, see Graphical Rules Editor.
- In the navigation tree, select Optimization > Include or Optimization > Exclude.
- Create rules for the methods, classes, or packages to include or exclude. See Graphical Rules Editor.
- Save your project and build it to apply the changes.
For information on how include and exclude rules combine, see Graphical Rules Editor.
Limitations and Troubleshooting
| Issue | Resolution |
| The Optimization pages aren't visible. | They're only available in Standard Mode. In Android Mode, configure R8 instead. |
| Access exceptions occur at runtime. | Set Make Public to Automatic. |