public static class ResourceVisibilityLookup.Provider
extends java.lang.Object
ResourceVisibilityLookup instances around for
repeated queries, including from different libraries that may share dependencies| Constructor 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 AndroidLibrarylibrary - the libraryResourceVisibilityLookup@NonNull public ResourceVisibilityLookup get(@NonNull com.android.builder.model.AndroidArtifact artifact)
ResourceVisibilityLookup for the given AndroidArtifactartifact - the artifactResourceVisibilityLookuppublic 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 AndroidArtifactproject - the projectResourceVisibilityLookup