Performs ZIP alignment on the specified archive.
The task uses the zipalign tool on the specified APK (or any other ZIP archive).
The input archive is not overwritten. The output is written to the build directory for the task.
Summary
Alignment | Sets the alignment argument for zipalign. |
Input | Required parameter. The input APK (or any kind of ZIP archive) that should be aligned. |
Output | Specifies an output path for the aligned APK. |
PageAlignSharedObjects | Sets if the uncompressed .so files should be page aligned. |
RecompressWithZopfli | Recompresses the data with Zopfli. |
SDKs | Specifies the SDKs (Software Development Kits) used by the task. |
Verbose | Turns on verbose output of the zipalign process. |
Parameters
Sets the alignment argument for zipalign.
The default value is 4.
The aligment value is passed directly to zipalign.
Required parameter.
The input APK (or any kind of ZIP archive) that should be aligned.Specifies an output path for the aligned APK.
The output path should be forward relative. It will be used to place the aligned APK in the build directory.
Recompresses the data with Zopfli.
The default value is false.
Corresponds to the -z flag of zipalign.
Map of SDKName : SDKDescriptionTaskOption
Specifies the SDKs (Software Development Kits) used by the task.
SDKs represent development kits that are available in the build environment and to the task. They are used to find the necessary tools to perform the necessary operations.
You should specify the AndroidBuildTools and AndroidPlatform SDKs so the build tasks can find the relevant tools to perform their operations.
If you don't specify these SDKs, then the build tasks will attempt to locate them automatically. If they fail to do so, an exception is thrown.
You can use the saker.android.sdk.buildtools() and saker.android.sdk.platform() tasks to retrieve SDKs with specific versions.
The SDK names are compared in a case-insensitive way.