Flutter tool assumes impeller is enabled by default (#156540)
... because it is.
This commit is contained in:
parent
6790525ce6
commit
9a9b9218ee
@ -881,8 +881,7 @@ $javaGradleCompatUrl
|
||||
return AndroidEmbeddingVersionResult(AndroidEmbeddingVersion.v1, 'No `<meta-data android:name="flutterEmbedding" android:value="2"/>` in ${appManifestFile.absolute.path}');
|
||||
}
|
||||
|
||||
// TODO(matanlurey): Flip to true when on by default, https://github.com/flutter/flutter/issues/132712.
|
||||
static const bool _impellerEnabledByDefault = false;
|
||||
static const bool _impellerEnabledByDefault = true;
|
||||
|
||||
/// Returns the `io.flutter.embedding.android.EnableImpeller` manifest value.
|
||||
///
|
||||
|
@ -330,7 +330,7 @@ void main() {
|
||||
globals.fs.file(manifestPath).writeAsStringSync(newManifest);
|
||||
}
|
||||
|
||||
testUsingContext('a default AAR build reports Impeller as disabled', () async {
|
||||
testUsingContext('a default AAR build reports Impeller as enabled', () async {
|
||||
final String projectPath = await createProject(
|
||||
tempDir,
|
||||
arguments: <String>['--no-pub', '--template=module']
|
||||
@ -342,7 +342,7 @@ void main() {
|
||||
fakeAnalytics.sentEvents,
|
||||
contains(
|
||||
Event.flutterBuildInfo(
|
||||
label: 'manifest-aar-impeller-disabled',
|
||||
label: 'manifest-aar-impeller-enabled',
|
||||
buildType: 'android',
|
||||
),
|
||||
),
|
||||
|
@ -320,7 +320,7 @@ void main() {
|
||||
globals.fs.file(manifestPath).writeAsStringSync(newManifest);
|
||||
}
|
||||
|
||||
testUsingContext('a default APK build reports Impeller as disabled', () async {
|
||||
testUsingContext('a default APK build reports Impeller as enabled', () async {
|
||||
final String projectPath = await createProject(
|
||||
tempDir,
|
||||
arguments: <String>['--no-pub', '--template=app', '--platform=android']
|
||||
@ -332,7 +332,7 @@ void main() {
|
||||
fakeAnalytics.sentEvents,
|
||||
contains(
|
||||
Event.flutterBuildInfo(
|
||||
label: 'manifest-impeller-disabled',
|
||||
label: 'manifest-impeller-enabled',
|
||||
buildType: 'android',
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user