From 9275d49dac5b6c81e2e0d35ebfe50bdda5f185a4 Mon Sep 17 00:00:00 2001 From: viktorp Date: Thu, 14 Dec 2023 11:32:51 +0100 Subject: [PATCH] Pass projectPath as method argument in RulerCli --- ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt | 2 +- .../src/main/java/com/spotify/ruler/common/apk/ApkCreator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt b/ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt index f9f7da6e..085496e3 100644 --- a/ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt +++ b/ruler-cli/src/main/java/com/spotify/ruler/cli/RulerCli.kt @@ -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") { diff --git a/ruler-common/src/main/java/com/spotify/ruler/common/apk/ApkCreator.kt b/ruler-common/src/main/java/com/spotify/ruler/common/apk/ApkCreator.kt index 87d84f29..40110a0c 100644 --- a/ruler-common/src/main/java/com/spotify/ruler/common/apk/ApkCreator.kt +++ b/ruler-common/src/main/java/com/spotify/ruler/common/apk/ApkCreator.kt @@ -136,4 +136,4 @@ open class ApkCreator(private val rootDir: File) { class InjectedToolApkCreator(private val aapt2Tool: Path): ApkCreator(File("")) { override fun getAapt2Location(): Path = aapt2Tool -} \ No newline at end of file +}