settings.gradle 693 B

1234567891011121314151617181920
  1. pluginManagement {
  2. def flutterSdkPath = {
  3. def properties = new Properties()
  4. file("local.properties").withInputStream { properties.load(it) }
  5. def flutterSdkPath = properties.getProperty("flutter.sdk")
  6. assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
  7. return flutterSdkPath
  8. }
  9. settings.ext.flutterSdkPath = flutterSdkPath()
  10. includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
  11. plugins {
  12. id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
  13. }
  14. }
  15. include ":app"
  16. apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"