mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_tools] make flutter.gradle compatible with 7 rc1 (#79167)
This commit is contained in:
parent
beb62a663d
commit
c89d57f652
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user