基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.gradle 484 B

4 years ago
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. }