settings.gradle 627 B

123456789101112131415
  1. // Copyright 2014 The Flutter Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. include ':app'
  5. def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
  6. def properties = new Properties()
  7. assert localPropertiesFile.exists()
  8. localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
  9. def flutterSdkPath = properties.getProperty("flutter.sdk")
  10. assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
  11. apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"