Wizard: fix Android minifyEnabled call for groovy
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ android {
|
|||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
'release' {
|
'release' {
|
||||||
isMinifyEnabled false
|
minifyEnabled false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+6
-1
@@ -27,7 +27,12 @@ data class AndroidConfigIR(val javaPackage: JavaPackage?) : AndroidIR, FreeIR {
|
|||||||
GradlePrinter.GradleDsl.GROOVY -> "release".quotified
|
GradlePrinter.GradleDsl.GROOVY -> "release".quotified
|
||||||
}
|
}
|
||||||
sectionCall(sectionIdentifier, needIndent = true) {
|
sectionCall(sectionIdentifier, needIndent = true) {
|
||||||
assignmentOrCall("isMinifyEnabled") { +"false" }
|
val minifyCallName = when (dsl) {
|
||||||
|
GradlePrinter.GradleDsl.KOTLIN -> "isMinifyEnabled"
|
||||||
|
GradlePrinter.GradleDsl.GROOVY -> "minifyEnabled"
|
||||||
|
}
|
||||||
|
|
||||||
|
assignmentOrCall(minifyCallName) { +"false" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user