Refactor Flutter Gradle Plugin so it can be applied using the declarative plugins {} block (#123511)
This PR aims to resolve #121552. Resources used: - [Developing Plugins](https://docs.gradle.org/current/userguide/custom_plugins.html) - [Using Gradle Plugins](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block) - [Composite Builds Plugin Development Sample](https://docs.gradle.org/current/samples/sample_composite_builds_plugin_development.html) This PR also paves way for #121541, because apps will no longer have: ```groovy apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" ``` hardcoded. Instead, they'll use: ```groovy plugins { // ... id "dev.flutter.flutter-gradle-plugin" // the exact name is tentative } ```
This commit is contained in:
@@ -7,7 +7,6 @@ import 'package:process/process.dart';
|
||||
|
||||
import '../base/common.dart';
|
||||
import '../base/file_system.dart';
|
||||
|
||||
import '../base/logger.dart';
|
||||
import '../base/os.dart';
|
||||
import '../base/platform.dart';
|
||||
@@ -33,7 +32,7 @@ const String templateAndroidGradlePluginVersion = '7.3.0';
|
||||
const String templateDefaultGradleVersionForModule = '7.3.0';
|
||||
const String templateKotlinGradlePluginVersion = '1.7.10';
|
||||
|
||||
// These versions should match the values in flutter.gradle (FlutterExtension).
|
||||
// These versions should match the values in Flutter Gradle Plugin (FlutterExtension).
|
||||
// The Flutter Gradle plugin is only applied to app projects, and modules that are built from source
|
||||
// using (include_flutter.groovy).
|
||||
// The remaining projects are: plugins, and modules compiled as AARs. In modules, the ephemeral directory
|
||||
|
||||
Reference in New Issue
Block a user