public static class ApkInfo.DefaultApkInfo extends java.lang.Object implements ApkInfo
ApkInfo.DefaultApkInfo| Constructor and Description |
|---|
DefaultApkInfo(com.android.build.VariantOutput.OutputType outputType,
java.util.Collection<com.android.build.FilterData> filters,
int versionCode,
java.lang.String versionName,
java.lang.String outputFileName,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilterName() |
java.util.Collection<com.android.build.FilterData> |
getFilters()
Returns all the split information used to create the APK.
|
java.lang.String |
getOutputFileName() |
com.android.build.VariantOutput.OutputType |
getType()
Returns the output type of the referenced APK.
|
int |
getVersionCode()
Returns the version code for this output.
|
java.lang.String |
getVersionName() |
boolean |
isEnabled() |
java.lang.String |
toString() |
public DefaultApkInfo(com.android.build.VariantOutput.OutputType outputType,
java.util.Collection<com.android.build.FilterData> filters,
int versionCode,
java.lang.String versionName,
java.lang.String outputFileName,
boolean enabled)
@NonNull public com.android.build.VariantOutput.OutputType getType()
ApkInfo@NonNull public java.util.Collection<com.android.build.FilterData> getFilters()
ApkInfogetFilters in interface ApkInfo@Nullable public java.lang.String getFilterName()
getFilterName in interface ApkInfopublic int getVersionCode()
ApkInfoThis is convenient method that returns the final version code whether it's coming from the override set in the output or from the variant's merged flavor.
getVersionCode in interface ApkInfo@Nullable public java.lang.String getVersionName()
getVersionName in interface ApkInfo@Nullable public java.lang.String getOutputFileName()
getOutputFileName in interface ApkInfopublic java.lang.String toString()
toString in class java.lang.Object