public class ZFiles
extends java.lang.Object
ZFiles that are specifically configured to be APKs, AARs, ...| Constructor and Description |
|---|
ZFiles() |
| Modifier and Type | Method and Description |
|---|---|
static ZFile |
apk(java.io.File f,
ZFileOptions options)
Creates a new zip file configured as an apk, based on a given file.
|
static ZFile |
apk(java.io.File f,
ZFileOptions options,
SigningOptions signingOptions,
java.lang.String builtBy,
java.lang.String createdBy)
Creates a new zip file configured as an apk, based on a given file.
|
public static ZFile apk(java.io.File f, ZFileOptions options) throws java.io.IOException
f - the file, if this path does not represent an existing path, will create a ZFile based on an non-existing path (a zip will be created when ZFile.close() is
invoked)options - the options to create the ZFilejava.io.IOException - failed to create the zip filepublic static ZFile apk(java.io.File f, ZFileOptions options, SigningOptions signingOptions, @Nullable java.lang.String builtBy, @Nullable java.lang.String createdBy) throws java.io.IOException
f - the file, if this path does not represent an existing path, will create a ZFile based on an non-existing path (a zip will be created when ZFile.close() is
invoked)options - the options to create the ZFilesigningOptions - the options to sign the apkbuiltBy - who to mark as builder in the manifestcreatedBy - who to mark as creator in the manifestjava.io.IOException - failed to create the zip file