| // Copyright 2025 The Flutter Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. | |
| 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 | |
| } |