1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-29 19:16:54 +00:00

Moving Shrine into a material_studies subdirectory (#128)

This commit is contained in:
Andrew Brogdon
2019-08-14 16:27:59 -07:00
committed by GitHub
parent c68165e8a5
commit cf270c32f3
84 changed files with 25 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
include ':app'
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}
plugins.each { name, path ->
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
include ":$name"
project(":$name").projectDir = pluginDirectory
}