Created
August 19, 2020 16:01
-
-
Save rkpontes/247fc55e65eef6069e7984c3d8af2c0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment