Package com.android.build.gradle.options
Class SyncOptions
java.lang.Object
com.android.build.gradle.options.SyncOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerbuildModelOnlyVersion(ProjectOptions options) Returns the level of model-only mode.static SyncOptions.ErrorFormatModegetErrorFormatMode(ProjectOptions options) static SyncOptions.EvaluationModegetModelQueryMode(ProjectOptions options)
-
Method Details
-
getModelQueryMode
-
getErrorFormatMode
-
buildModelOnlyVersion
Returns the level of model-only mode.The model-only mode is triggered when the IDE does a sync, and therefore we do things a bit differently (don't throw exceptions for instance). Things evolved a bit over versions and the behavior changes. This reflects the mode to use.
- Parameters:
options- the project options- Returns:
- an integer or null if we are not in model-only mode.
- See Also:
-
AndroidProject.MODEL_LEVEL_0_ORIGINALAndroidProject.MODEL_LEVEL_1_SYNC_ISSUEAndroidProject.MODEL_LEVEL_3_VARIANT_OUTPUT_POST_BUILDAndroidProject.MODEL_LEVEL_4_NEW_DEP_MODEL
-