From 150e50a4b5249fc3f525232cd3bebe1ae43001f3 Mon Sep 17 00:00:00 2001 From: Sergey Chuprin Date: Fri, 29 Mar 2019 01:37:14 +0300 Subject: [PATCH] Add property value checking --- .../cleverpumpkin/plugin/ProguardDictionaryGeneratorPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/ru/cleverpumpkin/plugin/ProguardDictionaryGeneratorPlugin.kt b/plugin/src/main/java/ru/cleverpumpkin/plugin/ProguardDictionaryGeneratorPlugin.kt index 6dc6fee..f86617f 100644 --- a/plugin/src/main/java/ru/cleverpumpkin/plugin/ProguardDictionaryGeneratorPlugin.kt +++ b/plugin/src/main/java/ru/cleverpumpkin/plugin/ProguardDictionaryGeneratorPlugin.kt @@ -68,7 +68,7 @@ class ProguardDictionaryGeneratorPlugin : Plugin { } private fun Project.isR8Enabled(): Boolean { - return properties.any { (key) -> key in PROP_R8 } + return properties.any { (key, value) -> key in PROP_R8 && value == "true" } } private fun Project.findTransformTask(taskName: String): Task? {