flutter/packages/flutter_tools/test/general.shard/ios
Matan Lurey 78cfc1ae9b
Plugin.isDevDependency if exclusively in dev_dependencies (#157462)
Work towards https://github.com/flutter/flutter/issues/56591.

I explicitly want an LGTM from @andrewkolos @jmagman @jonahwilliams before merging.

---

After this PR, `<Plugin>.isDevDependency` is resolved based on the following logic, IFF:

- The plugin comes from a package _A_ listed in the app's package's `dev_dependencies: ...`
- The package _A_ is not a normal dependency of any transitive non-dev dependency of the app

See [`compute_dev_dependencies_test.dart`](51676093a3/packages/flutter_tools/test/general.shard/compute_dev_dependencies_test.dart) for probably the best specification of this behavior.

We (still) do not write the property to disk (i.e. it never makes it to `.flutter-plugins-dependencies`), so there is no impact to build artifacts at this time; that would come in a follow-up PR (and then follow-up follow-up PRs for the various build systems in both Gradle and Xcode to actually use that value to omit dependencies).

Some tests had to be updated; for the most part it was updating the default `ProcessManager` because a call to `dart pub deps --json` is now made in code that computes what plugins are available, but there should be no change in behavior.

_/cc @jonasfj @sigurdm for FYI only (we talked on an internal thread about this; see https://github.com/dart-lang/sdk/issues/56968)._

_/cc @camsim99 @cbracken @johnmccutchan for visibility on the change._
2024-11-07 18:09:22 +00:00
..
code_signing_test.dart [tool] when writing to openssl as a part of macOS/iOS code-signing, flush the stdin stream before closing it (#150120) 2024-06-28 22:01:04 +00:00
core_devices_test.dart [flutter_tools] add debugging to ios/core_devices.dart (#142187) 2024-01-31 15:36:15 -08:00
devices_test.dart Fixed race condition in PollingDeviceDiscovery. (#145506) 2024-03-21 22:37:08 +00:00
ios_deploy_test.dart Make ios_deploy_test.dart more robust (#153147) 2024-08-09 12:53:15 +02:00
ios_device_install_test.dart Print warning and exit when iOS device is unpaired (#144551) 2024-03-04 23:01:11 +00:00
ios_device_logger_test.dart [flutter_tools] catch SocketException writing to ios-deploy stdin (#139784) 2023-12-12 00:32:18 +00:00
ios_device_port_forwarder_test.dart
ios_device_project_test.dart Stop reading .packages from flutter_tools. (#154912) 2024-09-13 13:53:05 +02:00
ios_device_start_nonprebuilt_test.dart Plugin.isDevDependency if exclusively in dev_dependencies (#157462) 2024-11-07 18:09:22 +00:00
ios_device_start_prebuilt_test.dart Print warning and exit when iOS device is unpaired (#144551) 2024-03-04 23:01:11 +00:00
ios_project_migration_test.dart [tool] Remove some usages of deprecated usage package (#151359) 2024-07-09 18:17:21 +00:00
ios_workflow_test.dart
mac_test.dart Plugin.isDevDependency if exclusively in dev_dependencies (#157462) 2024-11-07 18:09:22 +00:00
simulators_test.dart Stop reading .packages from flutter_tools. (#154912) 2024-09-13 13:53:05 +02:00
xcode_debug_test.dart chore: fix some comments (#145397) 2024-03-19 17:00:24 +00:00
xcodeproj_test.dart Remove -sdk for watchOS simulator in tool (#152992) 2024-08-08 19:34:20 +00:00
xcresult_test_data.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00
xcresult_test.dart Add xcresulttool --legacy flag for deprecated usage (#152988) 2024-08-07 19:59:11 +00:00