public static class ResourceVisibilityLookup.Provider
extends java.lang.Object
ResourceVisibilityLookup
instances around for
repeated queries, including from different libraries that may share dependenciesConstructor and Description |
---|
Provider() |
Modifier and Type | Method and Description |
---|---|
ResourceVisibilityLookup |
get(com.android.builder.model.AndroidArtifact artifact)
Looks up a (possibly cached)
ResourceVisibilityLookup for the given AndroidArtifact |
ResourceVisibilityLookup |
get(com.android.builder.model.AndroidLibrary library)
Looks up a (possibly cached)
ResourceVisibilityLookup for the given AndroidLibrary |
ResourceVisibilityLookup |
get(com.android.builder.model.AndroidProject project,
com.android.builder.model.Variant variant)
Looks up a (possibly cached)
ResourceVisibilityLookup for the given AndroidArtifact |
static boolean |
isVisibilityAwareModel(com.android.builder.model.AndroidProject project)
Returns true if the given Gradle model is compatible with public resources.
|
@NonNull public ResourceVisibilityLookup get(@NonNull com.android.builder.model.AndroidLibrary library)
ResourceVisibilityLookup
for the given AndroidLibrary
library
- the libraryResourceVisibilityLookup
@NonNull public ResourceVisibilityLookup get(@NonNull com.android.builder.model.AndroidArtifact artifact)
ResourceVisibilityLookup
for the given AndroidArtifact
artifact
- the artifactResourceVisibilityLookup
public static boolean isVisibilityAwareModel(@NonNull com.android.builder.model.AndroidProject project)
project
- the project to check@NonNull public ResourceVisibilityLookup get(@NonNull com.android.builder.model.AndroidProject project, @NonNull com.android.builder.model.Variant variant)
ResourceVisibilityLookup
for the given AndroidArtifact
project
- the projectResourceVisibilityLookup