aboutsummaryrefslogtreecommitdiffhomepage
path: root/android/settings.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'android/settings.gradle')
-rw-r--r--android/settings.gradle15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..115da6c
--- /dev/null
+++ b/android/settings.gradle
@@ -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.withInputStream { stream -> plugins.load(stream) }
+}
+
+plugins.each { name, path ->
+ def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
+ include ":$name"
+ project(":$name").projectDir = pluginDirectory
+}