基础库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

4 年前
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. }