public static class ApkCreatorFactory.CreationData
extends java.lang.Object
ApkCreatorFactory.make(CreationData).| Constructor and Description |
|---|
CreationData(java.io.File apkPath,
com.google.common.base.Optional<SigningOptions> signingOptions,
java.lang.String builtBy,
java.lang.String createdBy,
NativeLibrariesPackagingMode nativeLibrariesPackagingMode,
com.google.common.base.Predicate<java.lang.String> noCompressPredicate) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getApkPath()
Obtains the path where the APK should be located.
|
java.lang.String |
getBuiltBy()
Obtains the "built-by" text for the APK.
|
java.lang.String |
getCreatedBy()
Obtains the "created-by" text for the APK.
|
NativeLibrariesPackagingMode |
getNativeLibrariesPackagingMode()
Returns the packaging policy that the
ApkCreator should use for native libraries. |
com.google.common.base.Predicate<java.lang.String> |
getNoCompressPredicate()
Returns the predicate to decide which file paths should be uncompressed.
|
com.google.common.base.Optional<SigningOptions> |
getSigningOptions()
Obtains the data used to sign the APK.
|
public CreationData(java.io.File apkPath,
@Nonnull
com.google.common.base.Optional<SigningOptions> signingOptions,
@Nullable
java.lang.String builtBy,
@Nullable
java.lang.String createdBy,
NativeLibrariesPackagingMode nativeLibrariesPackagingMode,
com.google.common.base.Predicate<java.lang.String> noCompressPredicate)
apkPath - the path where the APK should be located. May already exist or not (if it
does, then the APK may be updated instead of created)builtBy - built-by information for the APK, if any; if null then the default
should be usedcreatedBy - created-by information for the APK, if any; if null then the default
should be usednativeLibrariesPackagingMode - packaging mode for native librariesnoCompressPredicate - predicate to decide which file paths should be uncompressed;
returns true for files that should not be compressedpublic java.io.File getApkPath()
@Nonnull public com.google.common.base.Optional<SigningOptions> getSigningOptions()
@Nullable public java.lang.String getBuiltBy()
null if the default should be used@Nullable public java.lang.String getCreatedBy()
null if the default should be usedpublic NativeLibrariesPackagingMode getNativeLibrariesPackagingMode()
ApkCreator should use for native libraries.public com.google.common.base.Predicate<java.lang.String> getNoCompressPredicate()