Do not show v1 Android embedding message for non-Android commands (#96148)
This commit is contained in:
@@ -182,7 +182,7 @@ void main() {
|
||||
// v1 embedding, as opposed to having <meta-data
|
||||
// android:name="flutterEmbedding" android:value="2" />.
|
||||
|
||||
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.none);
|
||||
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.ignore);
|
||||
expect(testLogger.statusText, contains('https://flutter.dev/go/android-project-migration'));
|
||||
});
|
||||
_testInMemory('Android project not on v2 embedding exits', () async {
|
||||
@@ -198,6 +198,15 @@ void main() {
|
||||
expect(testLogger.statusText, contains('https://flutter.dev/go/android-project-migration'));
|
||||
expect(testLogger.statusText, contains('No `<meta-data android:name="flutterEmbedding" android:value="2"/>` in '));
|
||||
});
|
||||
_testInMemory('Project not on v2 embedding does not warn if deprecation status is irrelevant', () async {
|
||||
final FlutterProject project = await someProject();
|
||||
// The default someProject with an empty <manifest> already indicates
|
||||
// v1 embedding, as opposed to having <meta-data
|
||||
// android:name="flutterEmbedding" android:value="2" />.
|
||||
|
||||
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.none);
|
||||
expect(testLogger.statusText, isEmpty);
|
||||
});
|
||||
_testInMemory('Android project not on v2 embedding ignore continues', () async {
|
||||
final FlutterProject project = await someProject();
|
||||
// The default someProject with an empty <manifest> already indicates
|
||||
|
||||
Reference in New Issue
Block a user