Package com.android.build.gradle.options
Class SyncOptions
- java.lang.Object
-
- com.android.build.gradle.options.SyncOptions
-
public final class SyncOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncOptions.ErrorFormatModestatic classSyncOptions.EvaluationMode
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.IntegerbuildModelOnlyVersion(ProjectOptions options, org.gradle.api.Project project)Returns the level of model-only mode.static SyncOptions.ErrorFormatModegetErrorFormatMode(ProjectOptions options)static SyncOptions.EvaluationModegetModelQueryMode(ProjectOptions options)
-
-
-
Method Detail
-
getModelQueryMode
public static SyncOptions.EvaluationMode getModelQueryMode(@NonNull ProjectOptions options)
-
getErrorFormatMode
public static SyncOptions.ErrorFormatMode getErrorFormatMode(@NonNull ProjectOptions options)
-
buildModelOnlyVersion
@Nullable public static java.lang.Integer buildModelOnlyVersion(@NonNull ProjectOptions options, @NonNull org.gradle.api.Project project)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 optionsproject- the project instance- Returns:
- an integer or null if we are not in model-only mode.
- See Also:
AndroidProject.MODEL_LEVEL_0_ORIGINAL,AndroidProject.MODEL_LEVEL_1_SYNC_ISSUE,AndroidProject.MODEL_LEVEL_3_VARIANT_OUTPUT_POST_BUILD,AndroidProject.MODEL_LEVEL_4_NEW_DEP_MODEL
-
-