Reverts "Reverts "Added a warning if flutter.groovy
uses a .flutter-plugins
file. (#157388)" (#157541)" (#157549)
Reverts: flutter/flutter#157541 Initiated by: matanlurey Reason for reverting: Was _not_ the cause of failure, see https://github.com/flutter/flutter/issues/157542. Original PR Author: auto-submit[bot] Reviewed By: {fluttergithubbot} This change reverts the following previous change: Reverts: flutter/flutter#157388 Initiated by: matanlurey Reason for reverting: We have `--fatal-warnings` on postsubmit and this breaks the tree. Original PR Author: matanlurey Reviewed By: {reidbaker} This change reverts the following previous change: Work towards https://github.com/flutter/flutter/issues/48918. This file was soft deprecated in _2020_, but the code was never removed. This warning message will serve as a warning and we'll rip out support for `flutter-plugins` after the _next_ stable release (i.e. after the mid-November branch cut).
This commit is contained in:
parent
8cc862c727
commit
73f66a7ea4
@ -688,6 +688,10 @@ class FlutterPlugin implements Plugin<Project> {
|
||||
} catch (FileNotFoundException ignored) {
|
||||
throw new GradleException("settings.gradle/settings.gradle.kts does not exist: ${settingsGradleFile(project).absolutePath}")
|
||||
}
|
||||
// TODO(matanlurey): https://github.com/flutter/flutter/issues/48918.
|
||||
project.logger.quiet("Warning: This project is still reading the deprecated '.flutter-plugins. file.")
|
||||
project.logger.quiet("In an upcoming stable release support for this file will be completely removed and your build will fail.")
|
||||
project.logger.quiet("See https:/flutter.dev/to/flutter-plugins-configuration.")
|
||||
List<Map<String, Object>> deps = getPluginDependencies(project)
|
||||
List<String> plugins = getPluginList(project).collect { it.name as String }
|
||||
deps.removeIf { plugins.contains(it.name) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user