saker.android Documentation TaskDoc JavaDoc Packages
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
Parameters
AlignmentSets the alignment argument for zipalign.
Input
Required parameter.
The input APK (or any kind of ZIP archive) that should be aligned.
OutputSpecifies an output path for the aligned APK.
PageAlignSharedObjectsSets if the uncompressed .so files should be page aligned.
RecompressWithZopfliRecompresses the data with Zopfli.
SDKsSpecifies the SDKs (Software Development Kits) used by the task.
VerboseTurns 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.
Sets if the uncompressed .so files should be page aligned. Page aligning uncompressed .so files makes them suitable for mmap(2). The default value is true. Corresponds to the -p flag of zipalign.
Recompresses the data with Zopfli. The default value is false. Corresponds to the -z flag of zipalign.
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.
Turns on verbose output of the zipalign process. The default value is false. Corresponds to the -v flag of zipalign.