1
0
mirror of https://github.com/stonega/tsacdop synced 2024-12-12 08:27:07 +01:00
tsacdop-podcast-app-android/android/settings.gradle
2020-02-09 20:29:09 +08:00

16 lines
484 B
Groovy

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
}