Generate a correct .flutter-plugin-dependencies file for iOS/macOS projects (#162834)

Closes https://github.com/flutter/flutter/issues/162704.

/cc @loic-sharma.

I expect I'll have to update some iOS/macOS unit and possibly
integration tests due to this change, but wanted something concrete to
talk about during our 1:1. Feel free to leave comments or questions even
if this PR is in "draft".
This commit is contained in:
Matan Lurey
2025-02-11 19:09:05 -08:00
committed by GitHub
parent b728c4c06a
commit d0a2c02c6b
7 changed files with 53 additions and 4 deletions

View File

@@ -13,6 +13,11 @@ import 'package:path/path.dart' as path;
/// Tests that iOS and macOS .xcframeworks can be built.
Future<void> main() async {
await task(() async {
// TODO(matanlurey): Remove after default.
// https://github.com/flutter/flutter/issues/160257
section('Opt-in to --explicit-package-dependencies');
await flutter('config', options: <String>['--explicit-package-dependencies']);
section('Create module project');
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_module_test.');

View File

@@ -18,6 +18,11 @@ import 'package:path/path.dart' as path;
/// adding Flutter to an existing iOS app.
Future<void> main() async {
await task(() async {
// TODO(matanlurey): Remove after default.
// https://github.com/flutter/flutter/issues/160257
section('Opt-in to --explicit-package-dependencies');
await flutter('config', options: <String>['--explicit-package-dependencies']);
// Update pod repo.
await eval(
'pod',