Moved FLUTTER_HOME to FLUTTER_ROOT in gradle plugin (#10100)

This commit is contained in:
Rafal Wachol 2017-05-22 23:50:31 +09:00 committed by Todd Volkert
parent 40b67bb187
commit ee34516491

View File

@ -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) {
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)
if (!flutterRoot.isDirectory()) {