Unverified Commit c89d57f6 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] make flutter.gradle compatible with 7 rc1 (#79167)

parent beb62a66
......@@ -953,18 +953,21 @@ class FlutterExtension {
}
abstract class BaseFlutterTask extends DefaultTask {
@Internal
File flutterRoot
@Internal
File flutterExecutable
@Input
String buildMode
@Optional @Input
String localEngine
@Optional @Input
String localEngineSrcPath
@Input
@Optional @Input
Boolean fastStart
@Input
String targetPath
@Optional
@Optional @Internal
Boolean verbose
@Optional @Input
String[] fileSystemRoots
......@@ -974,7 +977,9 @@ abstract class BaseFlutterTask extends DefaultTask {
Boolean trackWidgetCreation
@Optional @Input
List<String> targetPlatformValues
@Internal
File sourceDir
@Internal
File intermediateDir
@Optional @Input
String extraFrontEndOptions
......@@ -992,6 +997,7 @@ abstract class BaseFlutterTask extends DefaultTask {
String bundleSkSLPath
@Optional @Input
String codeSizeDirectory;
@Optional @Input
String performanceMeasurementFile;
@Optional @Input
Boolean deferredComponents
......@@ -1091,10 +1097,12 @@ class FlutterTask extends BaseFlutterTask {
return intermediateDir
}
@Internal
String getAssetsDirectory() {
return "${outputDirectory}/flutter_assets"
}
@Internal
CopySpec getAssets() {
return project.copySpec {
from "${intermediateDir}"
......@@ -1102,6 +1110,7 @@ class FlutterTask extends BaseFlutterTask {
}
}
@Internal
CopySpec getSnapshots() {
return project.copySpec {
from "${intermediateDir}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment