@Immutable
public final class ProjectOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_TEST_RUNNER_ARGS |
| Constructor and Description |
|---|
ProjectOptions(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> properties) |
ProjectOptions(org.gradle.api.Project project)
Constructor used to obtain Project Options from the project's properties.
|
ProjectOptions(org.gradle.api.Project project,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> overwrites)
Constructor used to obtain Project Options from the project's properties and modify them by
applying all the flags from the given map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(BooleanOption option) |
java.lang.Integer |
get(IntegerOption option) |
java.lang.Long |
get(LongOption option) |
java.lang.Boolean |
get(OptionalBooleanOption option) |
java.lang.String |
get(StringOption option) |
com.google.common.collect.ImmutableTable<java.lang.String,java.lang.String,com.android.build.gradle.internal.errors.DeprecationReporter.DeprecationTarget> |
getDeprecatedOptions() |
EnumOptions |
getEnumOptions() |
com.google.common.collect.ImmutableMap<BooleanOption,java.lang.Boolean> |
getExplicitlySetBooleanOptions() |
com.google.common.collect.ImmutableMap<IntegerOption,java.lang.Integer> |
getExplicitlySetIntegerOptions() |
com.google.common.collect.ImmutableMap<LongOption,java.lang.Long> |
getExplicitlySetLongOptions() |
com.google.common.collect.ImmutableMap<OptionalBooleanOption,java.lang.Boolean> |
getExplicitlySetOptionalBooleanOptions() |
com.google.common.collect.ImmutableMap<StringOption,java.lang.String> |
getExplicitlySetStringOptions() |
java.util.Map<java.lang.String,java.lang.String> |
getExtraInstrumentationTestRunnerArgs() |
java.util.Set<com.android.builder.model.OptionalCompilationStep> |
getOptionalCompilationSteps() |
java.lang.String |
getRemovedOptionsErrorMessage() |
boolean |
hasDeprecatedOptions() |
boolean |
hasRemovedOptions() |
public static final java.lang.String PROPERTY_TEST_RUNNER_ARGS
public ProjectOptions(@NonNull
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> properties)
public ProjectOptions(@NonNull
org.gradle.api.Project project)
project - the project containing the propertiespublic ProjectOptions(@NonNull
org.gradle.api.Project project,
@NonNull
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> overwrites)
project - the project containing the propertiesoverwrites - a map of flags overwriting project properties' valuespublic boolean get(BooleanOption option)
@Nullable public java.lang.Boolean get(OptionalBooleanOption option)
@Nullable public java.lang.Integer get(IntegerOption option)
@Nullable public java.lang.Long get(LongOption option)
@Nullable public java.lang.String get(StringOption option)
@NonNull public java.util.Map<java.lang.String,java.lang.String> getExtraInstrumentationTestRunnerArgs()
@NonNull public java.util.Set<com.android.builder.model.OptionalCompilationStep> getOptionalCompilationSteps()
public EnumOptions getEnumOptions()
public boolean hasRemovedOptions()
@NonNull public java.lang.String getRemovedOptionsErrorMessage()
public com.google.common.collect.ImmutableMap<BooleanOption,java.lang.Boolean> getExplicitlySetBooleanOptions()
public com.google.common.collect.ImmutableMap<OptionalBooleanOption,java.lang.Boolean> getExplicitlySetOptionalBooleanOptions()
public com.google.common.collect.ImmutableMap<IntegerOption,java.lang.Integer> getExplicitlySetIntegerOptions()
public com.google.common.collect.ImmutableMap<LongOption,java.lang.Long> getExplicitlySetLongOptions()
public com.google.common.collect.ImmutableMap<StringOption,java.lang.String> getExplicitlySetStringOptions()
public boolean hasDeprecatedOptions()
public com.google.common.collect.ImmutableTable<java.lang.String,java.lang.String,com.android.build.gradle.internal.errors.DeprecationReporter.DeprecationTarget> getDeprecatedOptions()