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,
com.google.common.base.Optional<SigningOptions> signingOptions,
java.lang.String builtBy,
java.lang.String createdBy)
Creates a new zip file configured as an apk, based on a given file.
|
static ZFile |
apk(java.io.File f,
ZFileOptions options,
com.google.common.base.Optional<SigningOptions> signingOptions,
java.lang.String builtBy,
java.lang.String createdBy,
boolean writeManifest)
Deprecated.
|
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, com.google.common.base.Optional<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@Deprecated public static ZFile apk(java.io.File f, ZFileOptions options, com.google.common.base.Optional<SigningOptions> signingOptions, @Nullable java.lang.String builtBy, @Nullable java.lang.String createdBy, boolean writeManifest) 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 manifestwriteManifest - a migration parameter that forces keeping (useless) manifest.mf file in
apk file in order to prevent breaking changes. Clients of the previous interface will still
get apk with manifest.mf because the flag is true by defaultjava.io.IOException - failed to create the zip file