// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// This file is included from `<app>/android/settings.gradle`,// so it can be versioned with the Flutter SDK.importgroovy.json.JsonSlurperdefflutterProjectRoot=rootProject.projectDir.parentFile// Note: if this logic is changed, also change the logic in module_plugin_loader.gradle.defpluginsFile=newFile(flutterProjectRoot,'.flutter-plugins-dependencies')if(!pluginsFile.exists()){return}defobject=newJsonSlurper().parseText(pluginsFile.text)assertobjectinstanceofMapassertobject.pluginsinstanceofMapassertobject.plugins.androidinstanceofList// Includes the Flutter plugins that support the Android platform.object.plugins.android.each{androidPlugin->assertandroidPlugin.nameinstanceofStringassertandroidPlugin.pathinstanceofStringdefpluginDirectory=newFile(androidPlugin.path,'android')assertpluginDirectory.exists()include":${androidPlugin.name}"project(":${androidPlugin.name}").projectDir=pluginDirectory}