Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
16 righe
484 B
16 righe
484 B
4 anni fa
|
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
|
||
|
}
|