An implementation of Lint's com.android.tools.lint.detector.api.Project class wrapping a Gradle model (project or library)
Modifiers | Name | Description |
---|---|---|
protected com.android.sdklib.AndroidVersion |
mMinSdkVersion |
|
protected com.android.sdklib.AndroidVersion |
mTargetSdkVersion |
Type | Name and description |
---|---|
static com.android.utils.Pair<LintGradleProject, List<File>> |
create(LintGradleClient client, com.android.builder.model.AndroidProject project, com.android.builder.model.Variant variant, org.gradle.api.Project gradleProject) Creates a LintGradleProject from the given com.android.builder.model.AndroidProject definition for a given com.android.builder.model.Variant, and returns it along with a set of lint custom rule jars applicable for the given model project. |
protected static boolean |
dependsOn(com.android.builder.model.Dependencies dependencies, String artifact) |
protected static boolean |
dependsOn(com.android.builder.model.AndroidLibrary library, String artifact) |
protected void |
initialize() |
boolean |
isGradleProject() |
protected void |
readManifest(File manifest) |
Methods inherited from class | Name |
---|---|
class com.android.tools.lint.detector.api.Project |
com.android.tools.lint.detector.api.Project#equals(java.lang.Object), com.android.tools.lint.detector.api.Project#toString(), com.android.tools.lint.detector.api.Project#hashCode(), com.android.tools.lint.detector.api.Project#getName(), com.android.tools.lint.detector.api.Project#getPackage(), com.android.tools.lint.detector.api.Project#setName(java.lang.String), com.android.tools.lint.detector.api.Project#create(com.android.tools.lint.client.api.LintClient, java.io.File, java.io.File), com.android.tools.lint.detector.api.Project#getConfiguration(), com.android.tools.lint.detector.api.Project#getRelativePath(java.io.File), com.android.tools.lint.detector.api.Project#dependsOn(java.lang.String), com.android.tools.lint.detector.api.Project#getDir(), com.android.tools.lint.detector.api.Project#addFile(java.io.File), com.android.tools.lint.detector.api.Project#getMinSdkVersion(), com.android.tools.lint.detector.api.Project#getTargetSdkVersion(), com.android.tools.lint.detector.api.Project#getProguardFiles(), com.android.tools.lint.detector.api.Project#getSdkInfo(), com.android.tools.lint.detector.api.Project#getGradleProjectModel(), com.android.tools.lint.detector.api.Project#getSubset(), com.android.tools.lint.detector.api.Project#getJavaLibraries(), com.android.tools.lint.detector.api.Project#isLibrary(), com.android.tools.lint.detector.api.Project#getResourceFolders(), com.android.tools.lint.detector.api.Project#getDisplayPath(java.io.File), com.android.tools.lint.detector.api.Project#getReferenceDir(), com.android.tools.lint.detector.api.Project#getJavaSourceFolders(), com.android.tools.lint.detector.api.Project#getJavaClassFolders(), com.android.tools.lint.detector.api.Project#isGradleProject(), com.android.tools.lint.detector.api.Project#getBuildSdk(), com.android.tools.lint.detector.api.Project#isAospFrameworksProject(java.io.File), com.android.tools.lint.detector.api.Project#getBuildTarget(), com.android.tools.lint.detector.api.Project#getAllLibraries(), com.android.tools.lint.detector.api.Project#isAndroidProject(), com.android.tools.lint.detector.api.Project#getGradleLibraryModel(), com.android.tools.lint.detector.api.Project#getCurrentVariant(), com.android.tools.lint.detector.api.Project#getMinSdk(), com.android.tools.lint.detector.api.Project#getTargetSdk(), com.android.tools.lint.detector.api.Project#readManifest(org.w3c.dom.Document), com.android.tools.lint.detector.api.Project#getDirectLibraries(), com.android.tools.lint.detector.api.Project#getManifestFiles(), com.android.tools.lint.detector.api.Project#getGradleBuildScripts(), com.android.tools.lint.detector.api.Project#setReportIssues(boolean), com.android.tools.lint.detector.api.Project#getReportIssues(), com.android.tools.lint.detector.api.Project#setMergingManifests(boolean), com.android.tools.lint.detector.api.Project#isMergingManifests(), com.android.tools.lint.detector.api.Project#wait(), com.android.tools.lint.detector.api.Project#wait(long), com.android.tools.lint.detector.api.Project#wait(long, int), com.android.tools.lint.detector.api.Project#getClass(), com.android.tools.lint.detector.api.Project#notify(), com.android.tools.lint.detector.api.Project#notifyAll() |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a LintGradleProject from the given com.android.builder.model.AndroidProject definition for a given com.android.builder.model.Variant, and returns it along with a set of lint custom rule jars applicable for the given model project.
client
- the clientproject
- the model projectvariant
- the variantgradleProject
- the gradle project