Нема описа

settings.gradle 930B

12345678910111213141516171819202122232425
  1. include ':app'
  2. def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
  3. def properties = new Properties()
  4. assert localPropertiesFile.exists()
  5. localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
  6. def flutterSdkPath = properties.getProperty("flutter.sdk")
  7. assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
  8. apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
  9. def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
  10. def plugins = new Properties()
  11. def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
  12. if (pluginsFile.exists()) {
  13. pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
  14. }
  15. plugins.each { name, path ->
  16. def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
  17. include ":$name"
  18. project(":$name").projectDir = pluginDirectory
  19. }