Skip to content

Commit e6f69ad

Browse files
authored
[flutter_tools] Replace android v2 embedding broken doc link (#107456)
1 parent 16038ac commit e6f69ad

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/flutter_tools/lib/src/flutter_plugins.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Future<void> _writeAndroidPluginRegistrant(FlutterProject project, List<Plugin>
436436
if (!supportsEmbeddingV1 && supportsEmbeddingV2) {
437437
throwToolExit(
438438
'The plugin `${plugin['name']}` requires your app to be migrated to '
439-
'the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration '
439+
'the Android embedding v2. Follow the steps on the migration doc above '
440440
'and re-run this command.'
441441
);
442442
}

packages/flutter_tools/lib/src/project.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Your Flutter application is created using an older version of the Android
602602
embedding. It is being deprecated in favor of Android embedding v2. Follow the
603603
steps at
604604
605-
https://flutter.dev/go/android-project-migration
605+
https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
606606
607607
to migrate your project. You may also pass the --ignore-deprecation flag to
608608
ignore this check and continue with the deprecated v1 embedding. However,

packages/flutter_tools/test/commands.shard/permeable/create_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ void main() {
786786
// Import for the new embedding class.
787787
expect(mainActivity.contains('import io.flutter.embedding.android.FlutterActivity'), true);
788788

789-
expect(logger.statusText, isNot(contains('https://flutter.dev/go/android-project-migration')));
789+
expect(logger.statusText, isNot(contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects')));
790790
}, overrides: <Type, Generator>{
791791
Logger: () => logger,
792792
});

packages/flutter_tools/test/general.shard/plugins_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ dependencies:
762762
},
763763
throwsToolExit(
764764
message: 'The plugin `plugin1` requires your app to be migrated to the Android embedding v2. '
765-
'Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.'
765+
'Follow the steps on the migration doc above and re-run this command.'
766766
),
767767
);
768768
}, overrides: <Type, Generator>{

packages/flutter_tools/test/general.shard/project_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void main() {
195195
// android:name="flutterEmbedding" android:value="2" />.
196196

197197
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.ignore);
198-
expect(testLogger.statusText, contains('https://flutter.dev/go/android-project-migration'));
198+
expect(testLogger.statusText, contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects'));
199199
});
200200
_testInMemory('Android project not on v2 embedding exits', () async {
201201
final FlutterProject project = await someProject();
@@ -207,7 +207,7 @@ void main() {
207207
Future<dynamic>.sync(() => project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.exit)),
208208
contains('Build failed due to use of deprecated Android v1 embedding.')
209209
);
210-
expect(testLogger.statusText, contains('https://flutter.dev/go/android-project-migration'));
210+
expect(testLogger.statusText, contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects'));
211211
expect(testLogger.statusText, contains('No `<meta-data android:name="flutterEmbedding" android:value="2"/>` in '));
212212
});
213213
_testInMemory('Project not on v2 embedding does not warn if deprecation status is irrelevant', () async {
@@ -226,21 +226,21 @@ void main() {
226226
// android:name="flutterEmbedding" android:value="2" />.
227227

228228
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.ignore);
229-
expect(testLogger.statusText, contains('https://flutter.dev/go/android-project-migration'));
229+
expect(testLogger.statusText, contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects'));
230230
});
231231
_testInMemory('Android plugin project does not throw v1 embedding deprecation warning', () async {
232232
final FlutterProject project = await aPluginProject();
233233

234234
project.checkForDeprecation(deprecationBehavior: DeprecationBehavior.exit);
235-
expect(testLogger.statusText, isNot(contains('https://flutter.dev/go/android-project-migration')));
235+
expect(testLogger.statusText, isNot(contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects')));
236236
expect(testLogger.statusText, isNot(contains('No `<meta-data android:name="flutterEmbedding" android:value="2"/>` in ')));
237237
});
238238
_testInMemory('Android plugin without example app does not show a warning', () async {
239239
final FlutterProject project = await aPluginProject();
240240
project.example.directory.deleteSync();
241241

242242
await project.regeneratePlatformSpecificTooling();
243-
expect(testLogger.statusText, isNot(contains('https://flutter.dev/go/android-project-migration')));
243+
expect(testLogger.statusText, isNot(contains('https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects')));
244244
});
245245
_testInMemory('updates local properties for Android', () async {
246246
final FlutterProject project = await someProject();

0 commit comments

Comments
 (0)