mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Re land of https://github.com/flutter/flutter/pull/142000. Differences: 1. Fixed the test that was failing in postsubmit. The reason was that the Flutter Gradle Plugin was being applied after KGP in that test, so we couldn't find the KGP version. This caused a log, and the test expects no logs. I moved FGP to after KGP 2. Added to the logs for when we can't find AGP. Change is from > "Warning: unable to detect project AGP version. Skipping version checking." to > ~"Warning: unable to detect project AGP version. Skipping version checking. \nThis may be because you have applied the Flutter Gradle Plugin after AGP."~ update: the above is wrong, changed to > "Warning: unable to detect project KGP version. Skipping version checking. \nThis may be because you have applied AGP after the Flutter Gradle Plugin." 3. Added a note to the app-level build.gradle templates that FGP must go last > // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugin.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
// 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.
|
|
|
|
plugins {
|
|
`java-gradle-plugin`
|
|
`groovy`
|
|
}
|
|
|
|
|
|
group = "dev.flutter.plugin"
|
|
version = "1.0.0"
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
// The "flutterPlugin" name isn't used anywhere.
|
|
create("flutterPlugin") {
|
|
id = "dev.flutter.flutter-gradle-plugin"
|
|
implementationClass = "FlutterPlugin"
|
|
}
|
|
// The "flutterAppPluginLoaderPlugin" name isn't used anywhere.
|
|
create("flutterAppPluginLoaderPlugin") {
|
|
id = "dev.flutter.flutter-plugin-loader"
|
|
implementationClass = "FlutterAppPluginLoaderPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// When bumping, also update:
|
|
// * ndkVersion in FlutterExtension in packages/flutter_tools/gradle/src/main/groovy/flutter.groovy
|
|
// * AGP version in the buildscript block in packages/flutter_tools/gradle/src/main/groovy/flutter.groovy
|
|
// * AGP version in the buildscript block in packages/flutter_tools/gradle/src/main/kotlin/dependency_version_checker.gradle.kts
|
|
// * AGP version constants in packages/flutter_tools/lib/src/android/gradle_utils.dart
|
|
compileOnly("com.android.tools.build:gradle:7.3.0")
|
|
}
|