Commit ee345164 authored by Rafal Wachol's avatar Rafal Wachol Committed by Todd Volkert

Moved FLUTTER_HOME to FLUTTER_ROOT in gradle plugin (#10100)

parent 40b67bb1
...@@ -73,9 +73,9 @@ class FlutterPlugin implements Plugin<Project> { ...@@ -73,9 +73,9 @@ class FlutterPlugin implements Plugin<Project> {
} }
} }
String flutterRootPath = resolveProperty(project, "flutter.sdk", System.env.FLUTTER_HOME) String flutterRootPath = resolveProperty(project, "flutter.sdk", System.env.FLUTTER_ROOT)
if (flutterRootPath == null) { if (flutterRootPath == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file or with a FLUTTER_HOME environment variable.") throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file or with a FLUTTER_ROOT environment variable.")
} }
flutterRoot = project.file(flutterRootPath) flutterRoot = project.file(flutterRootPath)
if (!flutterRoot.isDirectory()) { if (!flutterRoot.isDirectory()) {
......
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