Class ApkCreatorFactory.CreationData
- java.lang.Object
-
- com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
- Enclosing interface:
- ApkCreatorFactory
public abstract static class ApkCreatorFactory.CreationData extends java.lang.ObjectData structure with the required information to initiate the creation of an APK. SeeApkCreatorFactory.make(CreationData).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApkCreatorFactory.CreationData.BuilderAn implementation of builder pattern to create aApkCreatorFactory.CreationDataobject.
-
Constructor Summary
Constructors Constructor Description CreationData()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ApkCreatorFactory.CreationData.Builderbuilder()abstract java.io.FilegetApkPath()Obtains the path where the APK should be located.abstract java.lang.StringgetBuiltBy()Obtains the "built-by" text for the APK.abstract java.lang.StringgetCreatedBy()Obtains the "created-by" text for the APK.abstract NativeLibrariesPackagingModegetNativeLibrariesPackagingMode()Returns the packaging policy that theApkCreatorshould use for native libraries.abstract com.google.common.base.Predicate<java.lang.String>getNoCompressPredicate()Returns the predicate to decide which file paths should be uncompressed.abstract com.google.common.base.Optional<SigningOptions>getSigningOptions()Obtains the data used to sign the APK.abstract booleanisIncremental()Returns if this apk build is incremental.
-
-
-
Method Detail
-
builder
public static ApkCreatorFactory.CreationData.Builder builder()
-
getApkPath
public abstract java.io.File getApkPath()
Obtains the path where the APK should be located. If the path already exists, then the APK may be updated instead of re-created.- Returns:
- the path that may already exist or not
-
getSigningOptions
@Nonnull public abstract com.google.common.base.Optional<SigningOptions> getSigningOptions()
Obtains the data used to sign the APK.- Returns:
- the SigningOptions
-
getBuiltBy
@Nullable public abstract java.lang.String getBuiltBy()
Obtains the "built-by" text for the APK.- Returns:
- the text or
nullif the default should be used
-
getCreatedBy
@Nullable public abstract java.lang.String getCreatedBy()
Obtains the "created-by" text for the APK.- Returns:
- the text or
nullif the default should be used
-
getNativeLibrariesPackagingMode
public abstract NativeLibrariesPackagingMode getNativeLibrariesPackagingMode()
Returns the packaging policy that theApkCreatorshould use for native libraries.
-
getNoCompressPredicate
public abstract com.google.common.base.Predicate<java.lang.String> getNoCompressPredicate()
Returns the predicate to decide which file paths should be uncompressed.
-
isIncremental
public abstract boolean isIncremental()
Returns if this apk build is incremental. As mentioned ingetApkPath()description, we may already have an existing apk in place. This is the case when e.g. building APK via build system and this is not the first build. In that case the build is called incremental and internal APK data might be reused speeding the build up.
-
-