Skip to content

Commit

Permalink
Add support for linting confs added by AGP
Browse files Browse the repository at this point in the history
  • Loading branch information
tresat committed Oct 24, 2024
1 parent 9d78f58 commit 2c5cdf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ protected void linkCommonDependencies(AndroidSoftwareDependencies dependencies,
configurations.getByName("implementation").fromDependencyCollector(dependencies.getImplementation());
configurations.getByName("compileOnly").fromDependencyCollector(dependencies.getCompileOnly());
configurations.getByName("runtimeOnly").fromDependencyCollector(dependencies.getRuntimeOnly());
configurations.getByName("lintChecks").fromDependencyCollector(dependencies.getLintChecks());
configurations.getByName("lintPublish").fromDependencyCollector(dependencies.getLintPublish());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ public interface AndroidSoftwareDependencies extends Dependencies {
DependencyCollector getImplementation();
DependencyCollector getRuntimeOnly();
DependencyCollector getCompileOnly();

// Added by Android Gradle Plugin https://googlesamples.github.io/android-custom-lint-rules/api-guide/publishing.md.html
DependencyCollector getLintChecks();
DependencyCollector getLintPublish();
}

0 comments on commit 2c5cdf3

Please sign in to comment.