A Build variant and all its public data.
Type | Name and description |
---|---|
Collection<File> |
getApkLibraries() Returns the list of jar files that are packaged in the APK. |
Collection<File> |
getCompileLibraries() Returns the list of jar files that are on the compile classpath. |
Dex |
getDex() Returns the Dex task. |
org.gradle.api.DefaultTask |
getInstall() Returns the install task for the variant. |
com.android.builder.model.SigningConfig |
getSigningConfig() Returns the com.android.builder.model.SigningConfig for this build variant, if one has been specified. |
org.gradle.api.DefaultTask |
getUninstall() Returns the uninstallation task. |
int |
getVersionCode() Return the app versionCode. |
String |
getVersionName() Return the app versionName or null if none found. |
boolean |
isSigningReady() Returns true if this variant has the information it needs to create a signed APK. |
Returns the list of jar files that are packaged in the APK.
Returns the list of jar files that are on the compile classpath. This does not include the runtime.
Returns the Dex task.
Returns the install task for the variant.
Returns the com.android.builder.model.SigningConfig for this build variant, if one has been specified.
Returns the uninstallation task. For non-library project this is always true even if the APK is not created because signing isn't setup.
Return the app versionCode. Even the value is not found, then 1 is returned as this is the implicit value that the platform would use. If not output define its own variant override then this is used for all outputs.
Return the app versionName or null if none found.
Returns true if this variant has the information it needs to create a signed APK.