com.android.build
Interface VariantOutput

All Known Subinterfaces:
AndroidArtifactOutput

public interface VariantOutput

basic variant output information


Method Summary
 OutputFile getMainOutputFile()
          Returns the main file for this artifact which can be either the OutputFile.OutputType.MAIN or OutputFile.OutputType.FULL_SPLIT
 java.util.Collection<? extends OutputFile> getOutputs()
          All the output files for this artifacts, contains the main APK and optionally a list of split APKs.
 java.io.File getSplitFolder()
          Returns the folder containing all the split APK files.
 int getVersionCode()
          Returns the version code for this output.
 

Method Detail

getMainOutputFile

@NonNull
OutputFile getMainOutputFile()
Returns the main file for this artifact which can be either the OutputFile.OutputType.MAIN or OutputFile.OutputType.FULL_SPLIT


getOutputs

@NonNull
java.util.Collection<? extends OutputFile> getOutputs()
All the output files for this artifacts, contains the main APK and optionally a list of split APKs.


getSplitFolder

@NonNull
java.io.File getSplitFolder()
Returns the folder containing all the split APK files.


getVersionCode

int getVersionCode()
Returns the version code for this output. This 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.

Returns:
the version code.