flutter/packages/flutter_tools/test/integration.shard/isolated
Daco Harkes 0d64c7292c
[native assets] Support user-defines in pubspec (#166940)
This PR is the dual of
https://dart-review.googlesource.com/c/sdk/+/420700 in the Dart SDK.

This PR adds support for user-defines for hooks in the root package
`pubspec.yaml`.

```yaml
hooks:
  user_defines:
    hook_user_defines: # package name
      magic_value: 1000
```

For more design considerations see:

* https://github.com/dart-lang/native/issues/39

### Testing

This PR is covered by
`test/integration.shard/isolated/native_assets_test.dart`.

In this PR, we add a new test project
`dev/integration_tests/hook_user_defines/` and add a dependency on that
project in the mentioned test.

The integration test already covers `flutter run`, `flutter test`, and
`flutter build`.
2025-04-11 06:20:42 +00:00
..
native_assets_agp_version_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
native_assets_test_utils.dart [native assets] Support user-defines in pubspec (#166940) 2025-04-11 06:20:42 +00:00
native_assets_test.dart [native assets] Support user-defines in pubspec (#166940) 2025-04-11 06:20:42 +00:00
native_assets_without_cbuild_assemble_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00