Packaging
Go Up to Application
Project > Options > Application > Packaging
Embarcadero's packager command-line application always generated .apk
files that contained non-zip-aligned and compressed Dex
and native library
files. However, that is not always the case for Google's bundle tool command-line application, which can generate .apk
files that contain zip-aligned and uncompressed Dex
and native library
files.
To provide more control over the packaging of Dex
and native library
files avoiding discrepancies regarding the application behavior during the development and distribution cycles, the Compress Dex files and Compress native library files options were added to the Application > Packaging options page.
Enabling the Compress Dex files and Compress native library files options means that every generated .apk
file should contain non-zip aligned and compressed Dex
and native library
files. Leaving the Compress Dex files and Compress native library files options disabled has a more complex meaning, as the platform support for uncompressed Dex
and native library
files is tied to API levels.
The Uncompressed native library page alignment option can be used to override the default value used by the packager
and bundletool
command-line applications.