Unverified Commit f29524a1 authored by Emmanuel Garcia's avatar Emmanuel Garcia Committed by GitHub

Rename useProguard method, so Gradle doesn't get confused (#40440)

parent 6ba8fa99
......@@ -154,7 +154,7 @@ class FlutterPlugin implements Plugin<Project> {
}
}
if (useProguard(project)) {
if (shouldUseProguard(project)) {
String flutterProguardRules = Paths.get(flutterRoot.absolutePath, "packages", "flutter_tools",
"gradle", "flutter_proguard_rules.pro")
project.android.buildTypes {
......@@ -389,8 +389,7 @@ class FlutterPlugin implements Plugin<Project> {
return false
}
private static Boolean useProguard(Project project) {
private static Boolean shouldUseProguard(Project project) {
if (project.hasProperty('proguard')) {
return project.property('proguard').toBoolean()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment