Skip to content

Commit

Permalink
Pass projectPath as method argument in RulerCli
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorPetrovski committed Dec 14, 2023
1 parent 321f7c9 commit 9275d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class RulerCli : CliktCommand(), BaseRulerTask {
val apkCreator = if (aapt2Tool != null) {
InjectedToolApkCreator(aapt2Tool!!.toPath())
} else {
ApkCreator(File(config.projectPath))
ApkCreator(File(projectPath))
}

return if (apkFile.extension == "apk") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ open class ApkCreator(private val rootDir: File) {

class InjectedToolApkCreator(private val aapt2Tool: Path): ApkCreator(File("")) {
override fun getAapt2Location(): Path = aapt2Tool
}
}

0 comments on commit 9275d49

Please sign in to comment.