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 { ...@@ -953,18 +953,21 @@ class FlutterExtension {
} }
abstract class BaseFlutterTask extends DefaultTask { abstract class BaseFlutterTask extends DefaultTask {
@Internal
File flutterRoot File flutterRoot
@Internal
File flutterExecutable File flutterExecutable
@Input
String buildMode String buildMode
@Optional @Input @Optional @Input
String localEngine String localEngine
@Optional @Input @Optional @Input
String localEngineSrcPath String localEngineSrcPath
@Input @Optional @Input
Boolean fastStart Boolean fastStart
@Input @Input
String targetPath String targetPath
@Optional @Optional @Internal
Boolean verbose Boolean verbose
@Optional @Input @Optional @Input
String[] fileSystemRoots String[] fileSystemRoots
...@@ -974,7 +977,9 @@ abstract class BaseFlutterTask extends DefaultTask { ...@@ -974,7 +977,9 @@ abstract class BaseFlutterTask extends DefaultTask {
Boolean trackWidgetCreation Boolean trackWidgetCreation
@Optional @Input @Optional @Input
List<String> targetPlatformValues List<String> targetPlatformValues
@Internal
File sourceDir File sourceDir
@Internal
File intermediateDir File intermediateDir
@Optional @Input @Optional @Input
String extraFrontEndOptions String extraFrontEndOptions
...@@ -992,6 +997,7 @@ abstract class BaseFlutterTask extends DefaultTask { ...@@ -992,6 +997,7 @@ abstract class BaseFlutterTask extends DefaultTask {
String bundleSkSLPath String bundleSkSLPath
@Optional @Input @Optional @Input
String codeSizeDirectory; String codeSizeDirectory;
@Optional @Input
String performanceMeasurementFile; String performanceMeasurementFile;
@Optional @Input @Optional @Input
Boolean deferredComponents Boolean deferredComponents
...@@ -1091,10 +1097,12 @@ class FlutterTask extends BaseFlutterTask { ...@@ -1091,10 +1097,12 @@ class FlutterTask extends BaseFlutterTask {
return intermediateDir return intermediateDir
} }
@Internal
String getAssetsDirectory() { String getAssetsDirectory() {
return "${outputDirectory}/flutter_assets" return "${outputDirectory}/flutter_assets"
} }
@Internal
CopySpec getAssets() { CopySpec getAssets() {
return project.copySpec { return project.copySpec {
from "${intermediateDir}" from "${intermediateDir}"
...@@ -1102,6 +1110,7 @@ class FlutterTask extends BaseFlutterTask { ...@@ -1102,6 +1110,7 @@ class FlutterTask extends BaseFlutterTask {
} }
} }
@Internal
CopySpec getSnapshots() { CopySpec getSnapshots() {
return project.copySpec { return project.copySpec {
from "${intermediateDir}" 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