settings.gradle 484 B

123456789101112131415
  1. include ':app'
  2. def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
  3. def plugins = new Properties()
  4. def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
  5. if (pluginsFile.exists()) {
  6. pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
  7. }
  8. plugins.each { name, path ->
  9. def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
  10. include ":$name"
  11. project(":$name").projectDir = pluginDirectory
  12. }