Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
puboe committed Sep 24, 2020
1 parent 06c8f5c commit 33419d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/src/main/groovy/com/kezong/fataar/RProcessor.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RProcessor {
mGradlePluginVersion = version
mVersionAdapter = new VersionAdapter(project, variant, version)
// Aar output file
mAarOutputFile = mVersionAdapter.getOutputPath()
mAarOutputFile = mVersionAdapter.getOutputFile()
// R.java dir
mJavaDir = mProject.file("${mProject.getBuildDir()}/intermediates/${Constants.INTERMEDIATES_TEMP_FOLDER}/r/${mVariant.name}")
// R.class compile dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class VariantProcessor {
outputs.dir(outputDir)

doFirst {
// Delete previous output.
// Extract relative paths and delete previous output.
def pathsToDelete = new ArrayList<Path>()
mProject.fileTree(outputDir).forEach {
pathsToDelete.add(Paths.get(outputDir.absolutePath).relativize(Paths.get(it.absolutePath)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class VersionAdapter {
}
}

File getOutputPath() {
File getOutputFile() {
if (Utils.compareVersion(mGradlePluginVersion, "3.3.0") >= 0) {
String fileName = mVariant.outputs.first().outputFileName
if (Utils.compareVersion(mProject.gradle.gradleVersion, "6.0.1") >= 0) {
Expand Down

0 comments on commit 33419d8

Please sign in to comment.