Package com.android.builder.model
Interface InstantRun
public interface InstantRun
Model for InstantRun related information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInstant Run is currently disabled for the experimental plugin.static final intInstant Run currently does not support projects with external native build system.static final intInstant Run is not supported when Jack is used.static final intInstant Run is currently disabled for multi-apk applications (http://b/77685496)static final intInstant Run is not supported for non-debug build variants.static final intInstant Run is not supported because the variant is used for testing.static final intInstant Run was removedstatic final intInstant Run is supported. -
Method Summary
Modifier and TypeMethodDescriptionReturns the last incremental build information, including success or failure, verifier reason for requesting a restart, etc...intReturns a status code indicating whether Instant Run is supported and why.booleanWhether the owner artifact supports Instant Run.
-
Field Details
-
STATUS_SUPPORTED
static final int STATUS_SUPPORTEDInstant Run is supported.- See Also:
-
STATUS_NOT_SUPPORTED_FOR_NON_DEBUG_VARIANT
static final int STATUS_NOT_SUPPORTED_FOR_NON_DEBUG_VARIANTInstant Run is not supported for non-debug build variants.- See Also:
-
STATUS_NOT_SUPPORTED_VARIANT_USED_FOR_TESTING
static final int STATUS_NOT_SUPPORTED_VARIANT_USED_FOR_TESTINGInstant Run is not supported because the variant is used for testing.- See Also:
-
STATUS_NOT_SUPPORTED_FOR_JACK
static final int STATUS_NOT_SUPPORTED_FOR_JACKInstant Run is not supported when Jack is used.- See Also:
-
STATUS_NOT_SUPPORTED_FOR_EXTERNAL_NATIVE_BUILD
static final int STATUS_NOT_SUPPORTED_FOR_EXTERNAL_NATIVE_BUILDInstant Run currently does not support projects with external native build system.- See Also:
-
STATUS_NOT_SUPPORTED_FOR_EXPERIMENTAL_PLUGIN
static final int STATUS_NOT_SUPPORTED_FOR_EXPERIMENTAL_PLUGINInstant Run is currently disabled for the experimental plugin.- See Also:
-
STATUS_NOT_SUPPORTED_FOR_MULTI_APK
static final int STATUS_NOT_SUPPORTED_FOR_MULTI_APKInstant Run is currently disabled for multi-apk applications (http://b/77685496)- See Also:
-
STATUS_REMOVED
static final int STATUS_REMOVEDInstant Run was removed- See Also:
-
-
Method Details
-
getInfoFile
Returns the last incremental build information, including success or failure, verifier reason for requesting a restart, etc...- Returns:
- a file location, possibly not existing.
-
isSupportedByArtifact
boolean isSupportedByArtifact()Whether the owner artifact supports Instant Run. This may depend on the toolchain used. -
getSupportStatus
int getSupportStatus()Returns a status code indicating whether Instant Run is supported and why.
-