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 f9f7da6..085496e 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 87d84f2..40110a0 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 +}