Skip to content

Commit

Permalink
rename r-classes.jar with applicationId
Browse files Browse the repository at this point in the history
  • Loading branch information
kezong committed Nov 6, 2020
1 parent b2b6ea0 commit 5848e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/src/main/groovy/com/kezong/fataar/RProcessor.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ class RProcessor {
// The destinationDir property has been deprecated.
// This is scheduled to be removed in Gradle 7.0. Please use the destinationDirectory property instead.
if (Utils.compareVersion(mProject.gradle.gradleVersion, "5.1") >= 0) {
it.getArchiveFileName().set("${mVariant.mergedFlavor.applicationId}-r-classes.jar")
it.getArchiveFileName().set("${mVariant.properties.applicationId}-r-classes.jar")
it.getDestinationDirectory().set(desFile)
} else {
it.archiveName = "${mVariant.mergedFlavor.applicationId}-r-classes.jar"
it.archiveName = "${mVariant.properties.applicationId}-r-classes.jar"
it.destinationDir = desFile
}
doFirst {
Expand Down

0 comments on commit 5848e3f

Please sign in to comment.