import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; void main() { test('Impeller opt-out is application-scoped', () { final manifest = File('android/app/src/main/AndroidManifest.xml') .readAsStringSync(); final applicationStart = manifest.indexOf(''); final activityStart = manifest.indexOf(''); final impeller = manifest.indexOf( 'io.flutter.embedding.android.EnableImpeller', ); expect(applicationStart, greaterThanOrEqualTo(0)); expect(applicationEnd, greaterThan(applicationStart)); expect(activityStart, greaterThan(applicationStart)); expect(activityEnd, greaterThan(activityStart)); expect(impeller, greaterThan(applicationStart)); expect(impeller, lessThan(applicationEnd)); // Flutter ignores this key under ; keep it out of that block. expect(impeller < activityStart || impeller > activityEnd, isTrue); }); }