Don't import plugins that don't support android in settings.gradle (#54407)
This commit is contained in:
@@ -470,8 +470,10 @@ if (pluginsFile.exists()) {
|
||||
|
||||
plugins.each { name, path ->
|
||||
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
|
||||
include ":$name"
|
||||
project(":$name").projectDir = pluginDirectory
|
||||
if (pluginDirectory.exists()) {
|
||||
include ":$name"
|
||||
project(":$name").projectDir = pluginDirectory
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user